pub enum DrawCommand {
Behind(DrawCommandFn),
WithContent(DrawCommandFn),
Overlay(DrawCommandFn),
}Expand description
A draw command and the phase of the node’s drawing in which it runs.
Variants§
Behind(DrawCommandFn)
Records drawing that appears behind the node’s content.
WithContent(DrawCommandFn)
Records drawing around the node’s content. A draw_content call in it marks where
the content draws, as in Compose’s drawWithContent.
Overlay(DrawCommandFn)
Records drawing that appears in front of the node’s content.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DrawCommand
impl !Send for DrawCommand
impl !Sync for DrawCommand
impl !UnwindSafe for DrawCommand
impl Freeze for DrawCommand
impl Unpin for DrawCommand
impl UnsafeUnpin for DrawCommand
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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