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,
    },
}
Expand description

Represents command type

Variants

SetRenderTarget(RenderTarget)

Set render target

ClearRect

Fields

x: u32

Rectangle x position

y: u32

Rectangle y position

width: u32

Rectangle width

height: u32

Rectangle height

color: Color

Clear color

Clear rectangle

ConvexFill

Fields

params: Params

Fill parameters

Convex fill

ConcaveFill

Fields

stencil_params: Params

Stencil parameters

fill_params: Params

Fill parameters

Concave fill

Stroke

Fields

params: Params

Stroke parameters

Stroke

StencilStroke

Fields

params1: Params

First parameters

params2: Params

Second parameters

Stencil stroke

Triangles

Fields

params: Params

Triangle parameters

Triangles

RenderFilteredImage

Fields

target_image: ImageId

Target image id

filter: ImageFilter

Image filter

Render filtered image

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.