Struct pax_runtime::engine::node_interface::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 auto_size(&self) -> Option<(f64, f64)>
pub fn with_properties<V, T: ToFromPaxAny>( &self, f: impl FnOnce(&mut T) -> V, ) -> Option<V>
pub fn is_of_type<T: ToFromPaxAny>(&self) -> bool
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>) -> Self
fn from(expanded_node: Rc<ExpandedNode>) -> Self
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 Ord for NodeInterface
impl Ord for NodeInterface
source§impl PartialEq for NodeInterface
impl PartialEq for NodeInterface
source§impl PartialOrd for NodeInterface
impl PartialOrd for NodeInterface
impl Eq for NodeInterface
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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.