pub struct Layout<V, T> { /* private fields */ }Expand description
A view for creating views based on the available space.
Implementations§
Trait Implementations§
Source§impl<V, T> View<T> for Layout<V, T>where
    V: View<T>,
 
impl<V, T> View<T> for Layout<V, T>where
    V: View<T>,
Source§type State = LayoutState<V, T>
 
type State = LayoutState<V, T>
The state of the view, see top-level documentation for more information.
Source§fn build(
    &mut self,
    cx: &mut BuildCx<'_, '_>,
    _data: &mut T,
) -> <Layout<V, T> as View<T>>::State
 
fn build( &mut self, cx: &mut BuildCx<'_, '_>, _data: &mut T, ) -> <Layout<V, T> as View<T>>::State
Build the view state, see top-level documentation for more information.
Source§fn rebuild(
    &mut self,
    state: &mut <Layout<V, T> as View<T>>::State,
    cx: &mut RebuildCx<'_, '_>,
    data: &mut T,
    _old: &Layout<V, T>,
)
 
fn rebuild( &mut self, state: &mut <Layout<V, T> as View<T>>::State, cx: &mut RebuildCx<'_, '_>, data: &mut T, _old: &Layout<V, T>, )
Rebuild the view state, see top-level documentation for more information.
Source§fn event(
    &mut self,
    state: &mut <Layout<V, T> as View<T>>::State,
    cx: &mut EventCx<'_, '_>,
    data: &mut T,
    event: &Event,
) -> bool
 
fn event( &mut self, state: &mut <Layout<V, T> as View<T>>::State, cx: &mut EventCx<'_, '_>, data: &mut T, event: &Event, ) -> bool
Handle an event, see top-level documentation for more information.
Auto Trait Implementations§
impl<V, T> Freeze for Layout<V, T>
impl<V, T> !RefUnwindSafe for Layout<V, T>
impl<V, T> !Send for Layout<V, T>
impl<V, T> !Sync for Layout<V, T>
impl<V, T> Unpin for Layout<V, T>
impl<V, T> !UnwindSafe for Layout<V, T>
Blanket Implementations§
Source§impl<T, V> AnyView<T> for V
 
impl<T, V> AnyView<T> for V
Source§fn dyn_build(&mut self, cx: &mut BuildCx<'_, '_>, data: &mut T) -> Box<dyn Any>
 
fn dyn_build(&mut self, cx: &mut BuildCx<'_, '_>, data: &mut T) -> Box<dyn Any>
Build the view.
Source§fn dyn_rebuild(
    &mut self,
    state: &mut Box<dyn Any>,
    cx: &mut RebuildCx<'_, '_>,
    data: &mut T,
    old: &dyn AnyView<T>,
)
 
fn dyn_rebuild( &mut self, state: &mut Box<dyn Any>, cx: &mut RebuildCx<'_, '_>, data: &mut T, old: &dyn AnyView<T>, )
Rebuild the view.
Source§fn dyn_event(
    &mut self,
    state: &mut Box<dyn Any>,
    cx: &mut EventCx<'_, '_>,
    data: &mut T,
    event: &Event,
) -> bool
 
fn dyn_event( &mut self, state: &mut Box<dyn Any>, cx: &mut EventCx<'_, '_>, data: &mut T, event: &Event, ) -> bool
Handle an event.
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