Struct easy_imgui::Combo
source · pub struct Combo<S1: IntoCStr, S2: IntoCStr, P: Pushable = ()> { /* private fields */ }Implementations§
source§impl<S1: IntoCStr, S2: IntoCStr, P: Pushable> Combo<S1, S2, P>
impl<S1: IntoCStr, S2: IntoCStr, P: Pushable> Combo<S1, S2, P>
sourcepub fn push_for_begin<P2: Pushable>(self, push: P2) -> Combo<S1, S2, (P, P2)>
pub fn push_for_begin<P2: Pushable>(self, push: P2) -> Combo<S1, S2, (P, P2)>
Registers this Pushable to be called only for the begin part of this UI
element.
This is useful for example to modify the style of a window without changing the stily of its content.
sourcepub fn with<R>(self, f: impl FnOnce() -> R) -> Option<R>
pub fn with<R>(self, f: impl FnOnce() -> R) -> Option<R>
Calls f inside this UI element, but only if it is visible.
sourcepub fn with_always<R>(self, f: impl FnOnce(bool) -> R) -> R
pub fn with_always<R>(self, f: impl FnOnce(bool) -> R) -> R
Calls f inside this UI element, passing true if the elements visible, false
if it is not.
pub fn flags(self, flags: ComboFlags) -> Self
pub fn preview_value_opt<S3: IntoCStr>( self, preview_value: Option<S3> ) -> Combo<S1, S3>
pub fn preview_value<S3: IntoCStr>(self, preview_value: S3) -> Combo<S1, S3>
Auto Trait Implementations§
impl<S1, S2, P> Freeze for Combo<S1, S2, P>
impl<S1, S2, P> RefUnwindSafe for Combo<S1, S2, P>where
P: RefUnwindSafe,
<S1 as IntoCStr>::Temp: RefUnwindSafe,
<S2 as IntoCStr>::Temp: RefUnwindSafe,
impl<S1, S2, P> Send for Combo<S1, S2, P>
impl<S1, S2, P> Sync for Combo<S1, S2, P>
impl<S1, S2, P> Unpin for Combo<S1, S2, P>
impl<S1, S2, P> UnwindSafe for Combo<S1, S2, P>
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