pub struct Dropdown<T> {
pub container: Entity,
pub header: Entity,
pub label: Entity,
pub value: T,
/* private fields */
}Fields§
§container: Entity§header: Entity§label: Entity§value: TImplementations§
Trait Implementations§
Source§impl<T> Widget for Dropdown<T>where
T: 'static + Clone,
impl<T> Widget for Dropdown<T>where
T: 'static + Clone,
type Ret = Entity
type Data = T
fn on_build( &mut self, state: &mut State, entity: Entity, ) -> <Dropdown<T> as Widget>::Ret
fn on_update( &mut self, _state: &mut State, _entity: Entity, data: &<Dropdown<T> as Widget>::Data, )
fn on_event(&mut self, state: &mut State, entity: Entity, event: &mut Event)
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), )
fn on_draw( &mut self, state: &mut State, entity: Entity, canvas: &mut Canvas<OpenGl>, )
Auto Trait Implementations§
impl<T> Freeze for Dropdown<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Dropdown<T>
impl<T> !Send for Dropdown<T>
impl<T> !Sync for Dropdown<T>
impl<T> Unpin for Dropdown<T>where
T: Unpin,
impl<T> !UnwindSafe for Dropdown<T>
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