Enum vg::renderer::CommandType
source · [−]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
Concave fill
Stroke
Fields
params: Params
Stroke parameters
Stroke
StencilStroke
Stencil stroke
Triangles
Fields
params: Params
Triangle parameters
Triangles
RenderFilteredImage
Render filtered image
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CommandType
impl Send for CommandType
impl Sync for CommandType
impl Unpin for CommandType
impl UnwindSafe for CommandType
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