pub struct Wrapper<L, W>{ /* private fields */ }Implementations§
Trait Implementations§
Source§impl<L, W> Widget for Wrapper<L, W>
impl<L, W> Widget for Wrapper<L, W>
type Ret = <W as Widget>::Ret
type Data = <L as Lens>::Source
fn on_build( &mut self, state: &mut State, entity: Entity, ) -> <Wrapper<L, W> as Widget>::Ret
fn on_event(&mut self, state: &mut State, entity: Entity, event: &mut Event)
fn on_update( &mut self, state: &mut State, entity: Entity, data: &<Wrapper<L, W> as Widget>::Data, )
fn on_draw( &mut self, state: &mut State, entity: Entity, canvas: &mut Canvas<OpenGl>, )
fn widget_name(&self) -> String
Source§fn build<F>(
self,
state: &mut State,
parent: impl AsEntity,
builder: F,
) -> Self::Ret
fn build<F>( self, state: &mut State, parent: impl AsEntity, builder: F, ) -> Self::Ret
Adds the widget into state and returns the associated type Ret - an entity id or a tuple of entity ids
fn bind<L, F>(self, lens: L, converter: F) -> Wrapper<L, Self>
fn bind2<L>(self, lens: L) -> LensWrap<L, Self>where
L: Lens,
fn on_style( &mut self, state: &mut State, entity: Entity, property: (String, PropType), )
Auto Trait Implementations§
impl<L, W> Freeze for Wrapper<L, W>
impl<L, W> !RefUnwindSafe for Wrapper<L, W>
impl<L, W> !Send for Wrapper<L, W>
impl<L, W> !Sync for Wrapper<L, W>
impl<L, W> Unpin for Wrapper<L, W>
impl<L, W> !UnwindSafe for Wrapper<L, W>
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