Struct pax_engine::NodeInterface
source · pub struct NodeInterface { /* private fields */ }Implementations§
source§impl NodeInterface
impl NodeInterface
pub fn global_id(&self) -> Option<UniqueTemplateNodeIdentifier>
pub fn layout_properties(&self) -> LayoutProperties
pub fn with_properties<V, T>(&self, f: impl FnOnce(&mut T) -> V) -> Option<V>where
T: ToFromPaxAny,
pub fn is_of_type<T>(&self) -> boolwhere
T: ToFromPaxAny,
pub fn transform_and_bounds( &self, ) -> Property<TransformAndBounds<NodeLocal, Window>>
pub fn render_parent(&self) -> Option<NodeInterface>
pub fn containing_component(&self) -> Option<NodeInterface>
pub fn template_parent(&self) -> Option<NodeInterface>
pub fn is_descendant_of(&self, node: &NodeInterface) -> bool
pub fn children(&self) -> Vec<NodeInterface>
pub fn flattened_slot_children_count(&self) -> Property<usize>
Trait Implementations§
source§impl Clone for NodeInterface
impl Clone for NodeInterface
source§fn clone(&self) -> NodeInterface
fn clone(&self) -> NodeInterface
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for NodeInterface
impl Debug for NodeInterface
source§impl From<Rc<ExpandedNode>> for NodeInterface
impl From<Rc<ExpandedNode>> for NodeInterface
source§fn from(expanded_node: Rc<ExpandedNode>) -> NodeInterface
fn from(expanded_node: Rc<ExpandedNode>) -> NodeInterface
Converts to this type from the input type.
source§impl Interpolatable for NodeInterface
impl Interpolatable for NodeInterface
fn interpolate(&self, _other: &Self, _t: f64) -> Self
source§impl PartialEq for NodeInterface
impl PartialEq for NodeInterface
source§fn eq(&self, other: &NodeInterface) -> bool
fn eq(&self, other: &NodeInterface) -> bool
This method tests for
self and other values to be equal, and is used
by ==.Auto Trait Implementations§
impl Freeze for NodeInterface
impl !RefUnwindSafe for NodeInterface
impl !Send for NodeInterface
impl !Sync for NodeInterface
impl Unpin for NodeInterface
impl !UnwindSafe for NodeInterface
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.