Struct pax_runtime::api::NodeContext
source · pub struct NodeContext<'a> {
pub frames_elapsed: usize,
pub bounds_parent: (f64, f64),
pub bounds_self: (f64, f64),
/* private fields */
}Fields§
§frames_elapsed: usizeThe current global engine tick count
bounds_parent: (f64, f64)The bounds of this element’s immediate container (parent) in px
bounds_self: (f64, f64)The bounds of this element in px
Trait Implementations§
source§impl<'a> Clone for NodeContext<'a>
impl<'a> Clone for NodeContext<'a>
source§fn clone(&self) -> NodeContext<'a>
fn clone(&self) -> NodeContext<'a>
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<'a> Freeze for NodeContext<'a>
impl<'a> !RefUnwindSafe for NodeContext<'a>
impl<'a> !Send for NodeContext<'a>
impl<'a> !Sync for NodeContext<'a>
impl<'a> Unpin for NodeContext<'a>
impl<'a> !UnwindSafe for NodeContext<'a>
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.