pub trait Painter<'a> {
// 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: ClipBox);
fn pop_clip(&mut self);
fn push_layer(&mut self, mode: CompositeMode);
fn pop_layer(&mut self);
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: ClipBox)
fn push_clip_box(&mut self, clipbox: ClipBox)
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_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.