Skip to main content

PlaceCx

Struct PlaceCx 

Source
pub struct PlaceCx<'a, C: Context> { /* private fields */ }
Expand description

resolves an out of flow node after all flow layout

Implementations§

Source§

impl<C: Context> PlaceCx<'_, C>

Source

pub fn node(&self) -> NodeId

Source

pub fn parent(&self) -> Size<C::Scalar>

the visual parent’s size

Source

pub fn screen(&self) -> Rect<C::Scalar>

Source

pub fn resolve(&mut self, bounds: Constraints<C::Scalar>) -> Size<C::Scalar>

lays out this node and returns its current size

Source

pub fn request_frame(&mut self)

Source

pub fn context(&self) -> &C

Source

pub fn context_mut(&mut self) -> &mut C

Auto Trait Implementations§

§

impl<'a, C> !RefUnwindSafe for PlaceCx<'a, C>

§

impl<'a, C> !Send for PlaceCx<'a, C>

§

impl<'a, C> !Sync for PlaceCx<'a, C>

§

impl<'a, C> !UnwindSafe for PlaceCx<'a, C>

§

impl<'a, C> Forget for PlaceCx<'a, C>

§

impl<'a, C> Freeze for PlaceCx<'a, C>
where &'a Tree<C>: Freeze, &'a BumpArena: Freeze, &'a mut [Rect<<C as Context>::Scalar>]: Freeze, &'a mut Vec<i16>: Freeze, &'a mut bool: Freeze, &'a mut C: Freeze, &'a [MotionProps]: Freeze, <C as Context>::Scalar: Freeze,

§

impl<'a, C> Move for PlaceCx<'a, C>

§

impl<'a, C> Unpin for PlaceCx<'a, C>
where &'a Tree<C>: Unpin, &'a BumpArena: Unpin, &'a mut [Rect<<C as Context>::Scalar>]: Unpin, &'a mut Vec<i16>: Unpin, &'a mut bool: Unpin, &'a mut C: Unpin, &'a [MotionProps]: Unpin, <C as Context>::Scalar: Unpin,

§

impl<'a, C> UnsafeUnpin for PlaceCx<'a, C>
where &'a Tree<C>: UnsafeUnpin, &'a BumpArena: UnsafeUnpin, &'a mut [Rect<<C as Context>::Scalar>]: UnsafeUnpin, &'a mut Vec<i16>: UnsafeUnpin, &'a mut bool: UnsafeUnpin, &'a mut C: UnsafeUnpin, &'a [MotionProps]: UnsafeUnpin, <C as Context>::Scalar: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.