pub struct SceneNode { /* private fields */ }Expand description
Retained scene node stored contiguously inside SceneTree.
Implementations§
Source§impl SceneNode
Safe optional accessors for SceneNode.
impl SceneNode
Safe optional accessors for SceneNode.
Sourcepub fn get_handlers(&self) -> &EventHandlers
pub fn get_handlers(&self) -> &EventHandlers
Sourcepub fn get_mut_handlers(&mut self) -> &mut EventHandlers
pub fn get_mut_handlers(&mut self) -> &mut EventHandlers
Sourcepub fn set_handlers(&mut self, value: EventHandlers) -> &mut Self
pub fn set_handlers(&mut self, value: EventHandlers) -> &mut Self
Sourcepub fn hover_paint(&self) -> Option<PaintStyle>
pub fn hover_paint(&self) -> Option<PaintStyle>
Sourcepub fn set_hover_style(&mut self, value: Option<PaintStyle>) -> &mut Self
pub fn set_hover_style(&mut self, value: Option<PaintStyle>) -> &mut Self
Sourcepub fn get_mut_hover_style(&mut self) -> &mut Option<PaintStyle>
pub fn get_mut_hover_style(&mut self) -> &mut Option<PaintStyle>
Sourcepub fn get_mut_key(&mut self) -> &mut Option<String>
pub fn get_mut_key(&mut self) -> &mut Option<String>
Sourcepub fn owned_scope(&self) -> Option<Scope>
pub fn owned_scope(&self) -> Option<Scope>
Sourcepub fn get_mut_scope(&mut self) -> &mut Option<Scope>
pub fn get_mut_scope(&mut self) -> &mut Option<Scope>
Sourcepub fn canvas_callback(&self) -> Option<CanvasDrawCallback>
pub fn canvas_callback(&self) -> Option<CanvasDrawCallback>
Sourcepub fn set_canvas_painter(
&mut self,
value: Option<CanvasDrawCallback>,
) -> &mut Self
pub fn set_canvas_painter( &mut self, value: Option<CanvasDrawCallback>, ) -> &mut Self
Sourcepub fn get_mut_canvas_painter(&mut self) -> &mut Option<CanvasDrawCallback>
pub fn get_mut_canvas_painter(&mut self) -> &mut Option<CanvasDrawCallback>
Sourcepub fn a11y_props_ref(&self) -> Option<&A11yProps>
pub fn a11y_props_ref(&self) -> Option<&A11yProps>
Sourcepub fn a11y_props(&self) -> Option<A11yProps>
pub fn a11y_props(&self) -> Option<A11yProps>
Sourcepub fn get_mut_a11y(&mut self) -> &mut Option<A11yProps>
pub fn get_mut_a11y(&mut self) -> &mut Option<A11yProps>
Sourcepub fn virtual_scroll_metrics(&self) -> Option<(f32, f32)>
pub fn virtual_scroll_metrics(&self) -> Option<(f32, f32)>
Sourcepub fn set_virtual_scroll(&mut self, value: Option<(f32, f32)>) -> &mut Self
pub fn set_virtual_scroll(&mut self, value: Option<(f32, f32)>) -> &mut Self
Sourcepub fn get_mut_virtual_scroll(&mut self) -> &mut Option<(f32, f32)>
pub fn get_mut_virtual_scroll(&mut self) -> &mut Option<(f32, f32)>
Sourcepub fn add_lifecycle(&mut self, hook: Rc<dyn Lifecycle>)
pub fn add_lifecycle(&mut self, hook: Rc<dyn Lifecycle>)
Registers a Lifecycle observer on this scene node.
§Arguments
&Self- Mutable scene node.Rc<dyn Lifecycle>- Shared lifecycle hook observer.
Sourcepub fn get_mut_lifecycles(&mut self) -> &mut Vec<Rc<dyn Lifecycle>>
pub fn get_mut_lifecycles(&mut self) -> &mut Vec<Rc<dyn Lifecycle>>
Sourcepub fn set_lifecycles(&mut self, value: Vec<Rc<dyn Lifecycle>>) -> &mut Self
pub fn set_lifecycles(&mut self, value: Vec<Rc<dyn Lifecycle>>) -> &mut Self
Source§impl SceneNode
impl SceneNode
pub fn get_generation(&self) -> u32
pub fn get_alive(&self) -> bool
pub fn get_kind(&self) -> &NodeKind
pub fn get_mut_kind(&mut self) -> &mut NodeKind
pub fn set_kind(&mut self, val: NodeKind) -> &mut Self
pub fn get_style(&self) -> Style
pub fn get_mut_style(&mut self) -> &mut Style
pub fn set_style(&mut self, val: Style) -> &mut Self
pub fn get_layout_box(&self) -> LayoutBox
pub fn get_mut_layout_box(&mut self) -> &mut LayoutBox
pub fn set_layout_box(&mut self, val: LayoutBox) -> &mut Self
pub fn get_dirty(&self) -> DirtyFlags
pub fn get_mut_dirty(&mut self) -> &mut DirtyFlags
pub fn set_dirty(&mut self, val: DirtyFlags) -> &mut Self
pub fn get_mut_parent(&mut self) -> &mut Option<NodeId>
pub fn set_parent(&mut self, val: Option<NodeId>) -> &mut Self
pub fn get_children(&self) -> &Vec<NodeId>
pub fn get_mut_children(&mut self) -> &mut Vec<NodeId>
pub fn set_children(&mut self, val: Vec<NodeId>) -> &mut Self
pub fn get_interaction(&self) -> InteractionState
pub fn get_mut_interaction(&mut self) -> &mut InteractionState
pub fn set_interaction(&mut self, val: InteractionState) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SceneNode
impl !Send for SceneNode
impl !Sync for SceneNode
impl !UnwindSafe for SceneNode
impl Forget for SceneNode
impl Freeze for SceneNodewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<NodeId>: Freeze,
*const NodeExtras is !null: Freeze,
PhantomData<NodeExtras>: Freeze,
impl Move for SceneNode
impl Unpin for SceneNode
impl UnsafeUnpin for SceneNodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<NodeId>: UnsafeUnpin,
*const NodeExtras is !null: UnsafeUnpin,
PhantomData<NodeExtras>: UnsafeUnpin,
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