pub struct SceneNode { /* private fields */ }Expand description
A retained logical node owned by a Scene.
Implementations§
Source§impl SceneNode
impl SceneNode
Sourcepub fn properties(&self) -> &BTreeMap<PropertyId, WhiskerValue>
pub fn properties(&self) -> &BTreeMap<PropertyId, WhiskerValue>
Returns the current explicitly set element properties.
Sourcepub const fn element_type(&self) -> ElementTypeId
pub const fn element_type(&self) -> ElementTypeId
Returns the registered element type.
Sourcepub const fn layout(&self) -> Option<LayoutGeometry>
pub const fn layout(&self) -> Option<LayoutGeometry>
Returns the retained border-box and content-box geometry.
Sourcepub const fn text(&self) -> Option<&TextContent>
pub const fn text(&self) -> Option<&TextContent>
Returns retained plain-text presentation when this is a text node.
Sourcepub const fn text_style(&self) -> Option<&TextStyleSnapshot>
pub const fn text_style(&self) -> Option<&TextStyleSnapshot>
Returns the resolved inherited text style retained for native content.
Sourcepub const fn accessibility(&self) -> Option<&Accessibility>
pub const fn accessibility(&self) -> Option<&Accessibility>
Returns the retained common accessibility semantics.
Sourcepub const fn box_paint(&self) -> Option<&BoxPaint>
pub const fn box_paint(&self) -> Option<&BoxPaint>
Returns retained background and border paint.
Sourcepub fn background_layers(&self) -> &[BackgroundLayer]
pub fn background_layers(&self) -> &[BackgroundLayer]
Returns retained background image layers in front-to-back order.
Sourcepub const fn visual_effects(&self) -> &VisualEffects
pub const fn visual_effects(&self) -> &VisualEffects
Returns retained visual effects.
Sourcepub const fn transform(&self) -> Option<Transform>
pub const fn transform(&self) -> Option<Transform>
Returns the retained resolved transform matrix.
Sourcepub const fn visibility(&self) -> Option<Visibility>
pub const fn visibility(&self) -> Option<Visibility>
Returns retained paint visibility.
Sourcepub const fn event_mask(&self) -> Option<u64>
pub const fn event_mask(&self) -> Option<u64>
Returns retained event subscription bits.
Sourcepub const fn hit_test(&self) -> Option<HitTestBehavior>
pub const fn hit_test(&self) -> Option<HitTestBehavior>
Returns retained Host hit-test behavior.
Sourcepub const fn cursor(&self) -> Option<&Cursor>
pub const fn cursor(&self) -> Option<&Cursor>
Returns the retained resolved pointing-device cursor.
Sourcepub const fn host_scroll_offset(&self) -> [f32; 2]
pub const fn host_scroll_offset(&self) -> [f32; 2]
Returns the latest Host-owned native scroll position.