pub enum Node {
Container(Container),
Sprite(Sprite),
Graphics(Graphics),
Text(Text),
FlexText(FlexText),
Mesh(Mesh),
}Expand description
Scene-graph node — tagged union over the renderable types.
Variants§
Container(Container)
Plain transform-only container (no draw of its own).
Sprite(Sprite)
Textured quad.
Graphics(Graphics)
SDF-based vector graphics (rounded rect, ellipse, gradients, …).
Text(Text)
Bitmap-font text run.
FlexText(FlexText)
Late-pass textured quad — renders after every
Graphics primitive so axis labels / legends / KPI numbers
composed via wisp’s flexible-text path read on top of the
chart. See FlexText.
Mesh(Mesh)
Indexed triangle mesh (currently used for the perspective demo).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl !RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl !UnwindSafe for Node
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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