pub enum HeroDirective {
Normal,
Suppress,
Morph {
dest: Rect,
},
}Expand description
What a reported hero should do this paint — the reply
PaintCtx::report_hero hands back to a tagged (“hero”) wrapper.
Variants§
Normal
Paint normally (no active flight involves this tag) — the default.
Suppress
Skip painting the child: this endpoint is being morphed by the other surface’s matching hero, so it must not also paint at its rest position.
Morph
Paint the child under a transform mapping the hero’s own absolute paint
bounds onto dest (absolute) — the morph overlay for this frame.
Trait Implementations§
Source§impl Clone for HeroDirective
impl Clone for HeroDirective
impl Copy for HeroDirective
Source§impl Debug for HeroDirective
impl Debug for HeroDirective
Source§impl PartialEq for HeroDirective
impl PartialEq for HeroDirective
impl StructuralPartialEq for HeroDirective
Auto Trait Implementations§
impl Freeze for HeroDirective
impl RefUnwindSafe for HeroDirective
impl Send for HeroDirective
impl Sync for HeroDirective
impl Unpin for HeroDirective
impl UnsafeUnpin for HeroDirective
impl UnwindSafe for HeroDirective
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> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.