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

Create new Command with specified flavor

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.