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:
Héctor 2025-11-26 00:56:18 +01:00 committed by GitHub
commit c99f4d08f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 57 additions and 0 deletions

View file

@ -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);
}