pub struct AtlasCommandRecorder {
pub page_index: u32,
pub commands: Vec<AtlasCommand>,
pub(crate) width: u16,
pub(crate) height: u16,
}Expand description
Records atlas draw commands for a single atlas page.
The recorder exposes the same method API as the actual renderers
(RenderContext, Scene). It also implements DrawSink so
that the COLR glyph painter can write into it directly.
Fields§
§page_index: u32Which atlas page these commands target.
commands: Vec<AtlasCommand>The recorded commands.
width: u16Width of the glyph renderer / atlas page (pixels).
height: u16Height of the glyph renderer / atlas page (pixels).
Implementations§
Trait Implementations§
Source§impl Debug for AtlasCommandRecorder
impl Debug for AtlasCommandRecorder
Source§impl DrawSink for AtlasCommandRecorder
impl DrawSink for AtlasCommandRecorder
Source§fn set_transform(&mut self, t: Affine)
fn set_transform(&mut self, t: Affine)
Set the current transform.
Source§fn set_paint(&mut self, paint: AtlasPaint)
fn set_paint(&mut self, paint: AtlasPaint)
Set the current paint.
Source§fn set_paint_transform(&mut self, t: Affine)
fn set_paint_transform(&mut self, t: Affine)
Set the paint transform.
Source§fn push_clip_layer(&mut self, clip: &BezPath)
fn push_clip_layer(&mut self, clip: &BezPath)
Push a clip layer defined by a path.
Source§fn push_clip_path(&mut self, clip: &BezPath)
fn push_clip_path(&mut self, clip: &BezPath)
Push a clip path. Read more
Source§fn push_blend_layer(&mut self, blend_mode: BlendMode)
fn push_blend_layer(&mut self, blend_mode: BlendMode)
Push a blend/compositing layer.
Source§fn pop_clip_path(&mut self)
fn pop_clip_path(&mut self)
Pop the most recent clip path. Read more
Auto Trait Implementations§
impl Freeze for AtlasCommandRecorder
impl RefUnwindSafe for AtlasCommandRecorder
impl Send for AtlasCommandRecorder
impl Sync for AtlasCommandRecorder
impl Unpin for AtlasCommandRecorder
impl UnsafeUnpin for AtlasCommandRecorder
impl UnwindSafe for AtlasCommandRecorder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more