pub struct LayoutCx<'a, C: Context, I = ()> { /* private fields */ }Implementations§
Source§impl<'a, C: Context, I: 'static> LayoutCx<'a, C, I>
impl<'a, C: Context, I: 'static> LayoutCx<'a, C, I>
pub fn node(&self) -> NodeId
pub fn size(&self, child: NodeId) -> Size<C::Scalar>
pub fn fit(&self, child: NodeId, axis: Axis) -> Fit<C::Scalar>
pub fn children(&self) -> Children<'a> ⓘ
pub fn item(&self, child: NodeId) -> &'a I
Sourcepub fn fixed_extent(&self, child: NodeId, axis: Axis) -> Option<C::Scalar>
pub fn fixed_extent(&self, child: NodeId, axis: Axis) -> Option<C::Scalar>
the extent a child resolves to regardless of bounds from motion or exact limits
Sourcepub fn across(&mut self) -> C::Scalar
pub fn across(&mut self) -> C::Scalar
this node’s inner extent on the other axis
in fit(Y) this is the final inner width. in fit(X) this returns the own height limit when bounded (else unbounded) on round 0 and triggers a relayout round with settled heights
pub fn set_extent(&mut self, child: NodeId, extent: C::Scalar) -> C::Scalar
pub fn set_offset(&mut self, child: NodeId, offset: C::Scalar)
pub fn request_frame(&mut self)
pub fn context(&self) -> &C
pub fn context_mut(&mut self) -> &mut C
pub fn scratch(&self) -> &'a ScratchBuffer
pub fn set_child_z_index(&mut self, child: NodeId, z_index: i16)
Auto Trait Implementations§
impl<'a, C, I = ()> !RefUnwindSafe for LayoutCx<'a, C, I>
impl<'a, C, I = ()> !Send for LayoutCx<'a, C, I>
impl<'a, C, I = ()> !Sync for LayoutCx<'a, C, I>
impl<'a, C, I = ()> !UnwindSafe for LayoutCx<'a, C, I>
impl<'a, C, I> Forget for LayoutCx<'a, C, I>
impl<'a, C, I> Freeze for LayoutCx<'a, C, I>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 [Size<Fit<<C as Context>::Scalar>>]: Freeze,
&'a mut C: Freeze,
&'a [MotionProps]: Freeze,
<C as Context>::Scalar: Freeze,
PhantomData<fn() -> I>: Freeze,
impl<'a, C, I> Move for LayoutCx<'a, C, I>
impl<'a, C, I> Unpin for LayoutCx<'a, C, I>
impl<'a, C, I> UnsafeUnpin for LayoutCx<'a, C, I>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 [Size<Fit<<C as Context>::Scalar>>]: UnsafeUnpin,
&'a mut C: UnsafeUnpin,
&'a [MotionProps]: UnsafeUnpin,
<C as Context>::Scalar: UnsafeUnpin,
PhantomData<fn() -> I>: UnsafeUnpin,
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