pub enum NodeKind {
View,
Text(String),
Image(ImageBuffer),
Canvas,
Input(InputNodeState),
ScrollView,
Portal,
Fragment,
}Expand description
Semantic kind of a node in the cross-platform retained scene graph.
Variants§
View
Generic layout and paint box container.
Text(String)
Text run node carrying UTF-8 content.
Image(ImageBuffer)
Decoded bitmap image node.
Canvas
Custom vector/2D canvas surface invoking a draw callback.
Input(InputNodeState)
Editable text input node with caret and IME support.
ScrollView
Clipped scrollable container node.
Portal
Overlay layer rendered above normal document flow.
Fragment
Logical grouping container without its own box paint.
Trait Implementations§
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Forget for NodeKind
impl Freeze for NodeKind
impl Move for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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