pub enum DisplayCommand {
FillPath {
path: Path,
fill_rule: FillRule,
transform: Transform,
color: Color,
alpha: f32,
blend_mode: BlendMode,
},
StrokePath {
path: Path,
stroke: Stroke,
transform: Transform,
color: Color,
alpha: f32,
blend_mode: BlendMode,
},
DrawImage {
pixmap: Pixmap,
transform: Transform,
alpha: f32,
blend_mode: BlendMode,
},
PushClip {
path: Path,
fill_rule: FillRule,
transform: Transform,
},
PopClip,
Save,
Restore,
BeginGroup {
opacity: f32,
blend_mode: BlendMode,
isolated: bool,
},
EndGroup,
}Expand description
A single recorded rendering command.
Variants§
FillPath
Fill a path.
Fields
StrokePath
Stroke a path.
DrawImage
Draw an image.
PushClip
Push a clip path.
PopClip
Pop the last clip path.
Save
Save graphics state.
Restore
Restore graphics state.
BeginGroup
Begin a transparency group.
EndGroup
End a transparency group.
Trait Implementations§
Source§impl Clone for DisplayCommand
impl Clone for DisplayCommand
Source§fn clone(&self) -> DisplayCommand
fn clone(&self) -> DisplayCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DisplayCommand
impl RefUnwindSafe for DisplayCommand
impl Send for DisplayCommand
impl Sync for DisplayCommand
impl Unpin for DisplayCommand
impl UnsafeUnpin for DisplayCommand
impl UnwindSafe for DisplayCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more