pub enum Cmd {
Fill(CmdFill),
AlphaFill(CmdAlphaFill),
PushBuf,
PopBuf,
ClipFill(CmdClipFill),
ClipStrip(CmdClipAlphaFill),
Blend(BlendMode),
Opacity(f32),
Mask(Mask),
}
Expand description
A drawing command.
Variants§
Fill(CmdFill)
A fill command.
AlphaFill(CmdAlphaFill)
A fill command with alpha mask.
PushBuf
Pushes a new buffer for drawing.
PopBuf
Pops the most recent buffer.
ClipFill(CmdClipFill)
A fill command within a clipping region.
This command will blend the contents of the current buffer within the clip fill region into the previous buffer in the stack.
ClipStrip(CmdClipAlphaFill)
A fill command with alpha mask within a clipping region.
This command will blend the contents of the current buffer within the clip fill region into the previous buffer in the stack, with an additional alpha mask.
Blend(BlendMode)
Apply a blend.
This command will blend the contents of the current buffer into the previous buffer in the stack.
Opacity(f32)
Apply an opacity mask to the current buffer.
Mask(Mask)
Apply a mask to the current buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cmd
impl RefUnwindSafe for Cmd
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnwindSafe for Cmd
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