Skip to main content

euv_core/scene/kind/
enum.rs

1use super::*;
2
3/// Semantic kind of a node in the cross-platform retained scene graph.
4#[derive(Clone, Debug, Default, Eq, PartialEq)]
5pub enum NodeKind {
6    /// Generic layout and paint box container.
7    #[default]
8    View,
9    /// Text run node carrying UTF-8 content.
10    Text(String),
11    /// Decoded bitmap image node.
12    Image(ImageBuffer),
13    /// Custom vector/2D canvas surface invoking a draw callback.
14    Canvas,
15    /// Editable text input node with caret and IME support.
16    Input(InputNodeState),
17    /// Clipped scrollable container node.
18    ScrollView,
19    /// Overlay layer rendered above normal document flow.
20    Portal,
21    /// Logical grouping container without its own box paint.
22    Fragment,
23}