#[repr(i32)]pub enum Cond {
Always = 1,
Once = 2,
FirstUseEver = 4,
Appearing = 8,
}Expand description
Dear ImGui (ImGuiCond): Condition for many Set*() functions
Variants§
Always = 1
Dear ImGui (ImGuiCond_Always): No condition (always set the variable)
Once = 2
Dear ImGui (ImGuiCond_Once): Set the variable once per runtime session
FirstUseEver = 4
Dear ImGui (ImGuiCond_FirstUseEver): Set the variable if the object/window has no persistently saved data
Appearing = 8
Dear ImGui (ImGuiCond_Appearing): Set the variable if the object/window is appearing after being hidden/inactive
Implementations§
Trait Implementations§
impl Copy for Cond
impl Eq for Cond
Source§impl Ord for Cond
impl Ord for Cond
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Cond
impl PartialOrd for Cond
impl StructuralPartialEq for Cond
Auto Trait Implementations§
impl Freeze for Cond
impl RefUnwindSafe for Cond
impl Send for Cond
impl Sync for Cond
impl Unpin for Cond
impl UnsafeUnpin for Cond
impl UnwindSafe for Cond
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more