Struct pax_engine::api::NodeContext
source · pub struct NodeContext {
pub frames_elapsed: usize,
pub bounds_parent: (f64, f64),
pub bounds_self: (f64, f64),
}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 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 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
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.