pub trait ColrRenderer {
// Required methods
fn push_clip_layer(&mut self, clip: &BezPath);
fn push_blend_layer(&mut self, blend_mode: BlendMode);
fn fill_solid(&mut self, color: AlphaColor<Srgb>);
fn fill_gradient(&mut self, gradient: Gradient);
fn set_paint_transform(&mut self, affine: Affine);
fn pop_layer(&mut self);
}
Expand description
A trait for clients capable of rendering COLR glyphs.
Required Methods§
Sourcefn push_clip_layer(&mut self, clip: &BezPath)
fn push_clip_layer(&mut self, clip: &BezPath)
Push a new clip layer.
Sourcefn push_blend_layer(&mut self, blend_mode: BlendMode)
fn push_blend_layer(&mut self, blend_mode: BlendMode)
Push a new blend layer.
Sourcefn fill_solid(&mut self, color: AlphaColor<Srgb>)
fn fill_solid(&mut self, color: AlphaColor<Srgb>)
Fill the current area with the given solid color.
Sourcefn fill_gradient(&mut self, gradient: Gradient)
fn fill_gradient(&mut self, gradient: Gradient)
Fill the current area with the given gradient color.
Sourcefn set_paint_transform(&mut self, affine: Affine)
fn set_paint_transform(&mut self, affine: Affine)
Set the transform for paints.