Struct widgetry::widgets::persistent_split::PersistentSplit [−][src]
pub struct PersistentSplit<T: Clone + PartialEq> { current_value: T, btn: Button, spacer: JustDraw, dropdown: Dropdown<T>, }
Fields
current_value: T
btn: Button
spacer: JustDraw
dropdown: Dropdown<T>
Implementations
impl<T: 'static + PartialEq + Clone + Debug> PersistentSplit<T>
[src]
impl<T: 'static + PartialEq + Clone + Debug> PersistentSplit<T>
[src]impl<T: 'static + PartialEq + Clone> PersistentSplit<T>
[src]
impl<T: 'static + PartialEq + Clone> PersistentSplit<T>
[src]pub fn current_value(&self) -> T
[src]
Trait Implementations
impl<T: 'static + Clone + PartialEq> WidgetImpl for PersistentSplit<T>
[src]
impl<T: 'static + Clone + PartialEq> WidgetImpl for PersistentSplit<T>
[src]fn get_dims(&self) -> ScreenDims
[src]
fn set_pos(&mut self, top_left: ScreenPt)
[src]
fn event(&mut self, ctx: &mut EventCtx<'_>, output: &mut WidgetOutput)
[src]
fn draw(&self, g: &mut GfxCtx<'_>)
[src]
fn can_restore(&self) -> bool
[src]
fn restore(&mut self, _: &mut EventCtx<'_>, _prev: &dyn WidgetImpl)
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for PersistentSplit<T>
impl<T> !Send for PersistentSplit<T>
impl<T> !Sync for PersistentSplit<T>
impl<T> Unpin for PersistentSplit<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for PersistentSplit<T> where
T: UnwindSafe,
T: UnwindSafe,