Merge pull request #2958 from pml68/feat/fill-raw
Add `fill_raw` method and `Raw` associated type to text Renderer
This commit is contained in:
commit
c99f4d08f0
6 changed files with 57 additions and 0 deletions
|
|
@ -352,3 +352,9 @@ pub fn to_color(color: Color) -> cosmic_text::Color {
|
|||
|
||||
cosmic_text::Color::rgba(r, g, b, a)
|
||||
}
|
||||
|
||||
/// A text renderer coupled to `iced_graphics`.
|
||||
pub trait Renderer {
|
||||
/// Draws the given [`Raw`] text.
|
||||
fn fill_raw(&mut self, raw: Raw);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue