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 common_properties(&self) -> Properties
pub fn origin(&self) -> Option<Point2<Window>>
pub fn with_properties<V, T>(&self, f: impl FnOnce(&mut T) -> V) -> Vwhere
T: ToFromPaxAny,
pub fn transform(&self) -> Option<Transform2<Window, NodeLocal>>
pub fn bounding_points(&self) -> Option<[Point2<Window>; 4]>
pub fn parent(&self) -> Option<NodeInterface>
pub fn is_descendant_of(&self, node: &NodeInterface) -> bool
Trait Implementations§
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.
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, 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.