pub struct Command {
pub cmd_type: CommandType,
pub drawables: Vec<Drawable>,
pub triangles_verts: Option<(usize, usize)>,
pub image: Option<ImageId>,
pub glyph_texture: GlyphTexture,
pub fill_rule: FillRule,
pub composite_operation: CompositeOperationState,
}
Expand description
Represents command
Fields
cmd_type: CommandType
Command type
drawables: Vec<Drawable>
Drawables
triangles_verts: Option<(usize, usize)>
Triangle vertices
image: Option<ImageId>
Image
glyph_texture: GlyphTexture
Glyph texture
fill_rule: FillRule
Fill rule
composite_operation: CompositeOperationState
Compsite operation
Implementations
sourceimpl Command
impl Command
sourcepub fn new(flavor: CommandType) -> Self
pub fn new(flavor: CommandType) -> Self
Create new Command with specified flavor
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more