pub enum CommandType {
    SetRenderTarget(RenderTarget),
    ClearRect {
        x: u32,
        y: u32,
        width: u32,
        height: u32,
        color: Color,
    },
    ConvexFill {
        params: Params,
    },
    ConcaveFill {
        stencil_params: Params,
        fill_params: Params,
    },
    Stroke {
        params: Params,
    },
    StencilStroke {
        params1: Params,
        params2: Params,
    },
    Triangles {
        params: Params,
    },
    RenderFilteredImage {
        target_image: ImageId,
        filter: ImageFilter,
    },
}

Variants

SetRenderTarget(RenderTarget)

ClearRect

Fields

x: u32
y: u32
width: u32
height: u32
color: Color

ConvexFill

Fields

params: Params

ConcaveFill

Fields

stencil_params: Params
fill_params: Params

Stroke

Fields

params: Params

StencilStroke

Fields

params1: Params
params2: Params

Triangles

Fields

params: Params

RenderFilteredImage

Fields

target_image: ImageId
filter: ImageFilter

Trait Implementations

Formats the value using the given formatter. Read more

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.