Trait cosmic::iced_winit::graphics::text::cosmic_text::ttf_parser::colr::Painter
source · pub trait Painter<'a> {
Show 13 methods
// Required methods
fn outline_glyph(&mut self, glyph_id: GlyphId);
fn paint(&mut self, paint: Paint<'a>);
fn push_clip(&mut self);
fn push_clip_box(&mut self, clipbox: RectF);
fn pop_clip(&mut self);
fn push_layer(&mut self, mode: CompositeMode);
fn pop_layer(&mut self);
fn push_translate(&mut self, tx: f32, ty: f32);
fn push_scale(&mut self, sx: f32, sy: f32);
fn push_rotate(&mut self, angle: f32);
fn push_skew(&mut self, skew_x: f32, skew_y: f32);
fn push_transform(&mut self, transform: Transform);
fn pop_transform(&mut self);
}
Expand description
A trait for color glyph painting.
See COLR for details.
Required Methods§
sourcefn outline_glyph(&mut self, glyph_id: GlyphId)
fn outline_glyph(&mut self, glyph_id: GlyphId)
Outline a glyph and store it.
sourcefn push_clip_box(&mut self, clipbox: RectF)
fn push_clip_box(&mut self, clipbox: RectF)
Push a new clip path using the clip box.
sourcefn push_layer(&mut self, mode: CompositeMode)
fn push_layer(&mut self, mode: CompositeMode)
Push a new layer with the given composite mode.
sourcefn push_translate(&mut self, tx: f32, ty: f32)
fn push_translate(&mut self, tx: f32, ty: f32)
Push a translation transform.
sourcefn push_scale(&mut self, sx: f32, sy: f32)
fn push_scale(&mut self, sx: f32, sy: f32)
Push a scaling transform.
sourcefn push_rotate(&mut self, angle: f32)
fn push_rotate(&mut self, angle: f32)
Push a rotation transform.
sourcefn push_transform(&mut self, transform: Transform)
fn push_transform(&mut self, transform: Transform)
Push a transform.
sourcefn pop_transform(&mut self)
fn pop_transform(&mut self)
Pop the last transform.