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
Clear rectangle
Fields
ConvexFill
Convex fill
ConcaveFill
Concave fill
Stroke
Stroke
StencilStroke
Stencil stroke
Triangles
Triangles
RenderFilteredImage
Render filtered image
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandType
impl RefUnwindSafe for CommandType
impl Send for CommandType
impl Sync for CommandType
impl Unpin for CommandType
impl UnwindSafe for CommandType
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