easy_imgui

Struct 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>

Source

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.

Source

pub fn with<R>(self, f: impl FnOnce() -> R) -> Option<R>

Calls f inside this UI element, but only if it is visible.

Source

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.

Source

pub fn flags(self, flags: ComboFlags) -> Self

Source

pub fn preview_value_opt<S3: IntoCStr>( self, preview_value: Option<S3>, ) -> Combo<S1, S3>

Source

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>
where <S1 as IntoCStr>::Temp: Freeze, P: Freeze, <S2 as IntoCStr>::Temp: Freeze,

§

impl<S1, S2, P> RefUnwindSafe for Combo<S1, S2, P>

§

impl<S1, S2, P> Send for Combo<S1, S2, P>
where <S1 as IntoCStr>::Temp: Send, P: Send, <S2 as IntoCStr>::Temp: Send,

§

impl<S1, S2, P> Sync for Combo<S1, S2, P>
where <S1 as IntoCStr>::Temp: Sync, P: Sync, <S2 as IntoCStr>::Temp: Sync,

§

impl<S1, S2, P> Unpin for Combo<S1, S2, P>
where <S1 as IntoCStr>::Temp: Unpin, P: Unpin, <S2 as IntoCStr>::Temp: Unpin,

§

impl<S1, S2, P> UnwindSafe for Combo<S1, S2, P>
where <S1 as IntoCStr>::Temp: UnwindSafe, P: UnwindSafe, <S2 as IntoCStr>::Temp: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.