Struct pax_runtime::api::NodeContext
source · pub struct NodeContext {
pub frames_elapsed: Property<u64>,
pub bounds_parent: Property<(f64, f64)>,
pub bounds_self: Property<(f64, f64)>,
pub platform: Platform,
pub os: OS,
pub slot_children: usize,
/* private fields */
}Fields§
§frames_elapsed: Property<u64>The current global engine tick count
bounds_parent: Property<(f64, f64)>The bounds of this element’s immediate container (parent) in px
bounds_self: Property<(f64, f64)>The bounds of this element in px
platform: PlatformCurrent platform (Web/Native) this app is running on
os: OSCurrent os (Android/Windows/Mac/Linux) this app is running on
slot_children: usizeThe number of slot children provided to this component template
Trait Implementations§
source§impl Clone for NodeContext
impl Clone for NodeContext
source§fn clone(&self) -> NodeContext
fn clone(&self) -> NodeContext
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 moreAuto Trait Implementations§
impl Freeze for NodeContext
impl !RefUnwindSafe for NodeContext
impl !Send for NodeContext
impl !Sync for NodeContext
impl Unpin for NodeContext
impl !UnwindSafe for NodeContext
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.