Struct imgui_sys::ImGuiFocusedFlags [−]
#[repr(C)]pub struct ImGuiFocusedFlags { /* fields omitted */ }
Flags for window focus check
Methods
impl ImGuiFocusedFlags
impl ImGuiFocusedFlagspub const ChildWindows: ImGuiFocusedFlags
ChildWindows: ImGuiFocusedFlags = ImGuiFocusedFlags{bits: 1 << 0,}
pub const RootWindow: ImGuiFocusedFlags
RootWindow: ImGuiFocusedFlags = ImGuiFocusedFlags{bits: 1 << 1,}
pub const RootAndChildWindows: ImGuiFocusedFlags
RootAndChildWindows: ImGuiFocusedFlags = ImGuiFocusedFlags{bits: <ImGuiFocusedFlags>::RootWindow.bits | <ImGuiFocusedFlags>::ChildWindows.bits,}
pub fn empty() -> ImGuiFocusedFlags
pub fn empty() -> ImGuiFocusedFlagsReturns an empty set of flags.
pub fn all() -> ImGuiFocusedFlags
pub fn all() -> ImGuiFocusedFlagsReturns the set containing all flags.
pub fn bits(&self) -> c_int
pub fn bits(&self) -> c_intReturns the raw value of the flags currently stored.
pub fn from_bits(bits: c_int) -> Option<ImGuiFocusedFlags>
pub fn from_bits(bits: c_int) -> Option<ImGuiFocusedFlags>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: c_int) -> ImGuiFocusedFlags
pub fn from_bits_truncate(bits: c_int) -> ImGuiFocusedFlagsConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: ImGuiFocusedFlags) -> bool
pub fn intersects(&self, other: ImGuiFocusedFlags) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: ImGuiFocusedFlags) -> bool
pub fn contains(&self, other: ImGuiFocusedFlags) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: ImGuiFocusedFlags)
pub fn insert(&mut self, other: ImGuiFocusedFlags)Inserts the specified flags in-place.
pub fn remove(&mut self, other: ImGuiFocusedFlags)
pub fn remove(&mut self, other: ImGuiFocusedFlags)Removes the specified flags in-place.
pub fn toggle(&mut self, other: ImGuiFocusedFlags)
pub fn toggle(&mut self, other: ImGuiFocusedFlags)Toggles the specified flags in-place.
pub fn set(&mut self, other: ImGuiFocusedFlags, value: bool)
pub fn set(&mut self, other: ImGuiFocusedFlags, value: bool)Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for ImGuiFocusedFlags
impl Copy for ImGuiFocusedFlagsimpl PartialEq for ImGuiFocusedFlags
impl PartialEq for ImGuiFocusedFlagsfn eq(&self, other: &ImGuiFocusedFlags) -> bool
fn eq(&self, other: &ImGuiFocusedFlags) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ImGuiFocusedFlags) -> bool
fn ne(&self, other: &ImGuiFocusedFlags) -> boolThis method tests for !=.
impl Eq for ImGuiFocusedFlags
impl Eq for ImGuiFocusedFlagsimpl Clone for ImGuiFocusedFlags
impl Clone for ImGuiFocusedFlagsfn clone(&self) -> ImGuiFocusedFlags
fn clone(&self) -> ImGuiFocusedFlagsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for ImGuiFocusedFlags
impl PartialOrd for ImGuiFocusedFlagsfn partial_cmp(&self, other: &ImGuiFocusedFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &ImGuiFocusedFlags) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &ImGuiFocusedFlags) -> bool
fn lt(&self, other: &ImGuiFocusedFlags) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &ImGuiFocusedFlags) -> bool
fn le(&self, other: &ImGuiFocusedFlags) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &ImGuiFocusedFlags) -> bool
fn gt(&self, other: &ImGuiFocusedFlags) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &ImGuiFocusedFlags) -> bool
fn ge(&self, other: &ImGuiFocusedFlags) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for ImGuiFocusedFlags
impl Ord for ImGuiFocusedFlagsfn cmp(&self, other: &ImGuiFocusedFlags) -> Ordering
fn cmp(&self, other: &ImGuiFocusedFlags) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for ImGuiFocusedFlags
impl Hash for ImGuiFocusedFlagsfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for ImGuiFocusedFlags
impl Debug for ImGuiFocusedFlagsimpl Binary for ImGuiFocusedFlags
impl Binary for ImGuiFocusedFlagsimpl Octal for ImGuiFocusedFlags
impl Octal for ImGuiFocusedFlagsimpl LowerHex for ImGuiFocusedFlags
impl LowerHex for ImGuiFocusedFlagsimpl UpperHex for ImGuiFocusedFlags
impl UpperHex for ImGuiFocusedFlagsimpl BitOr for ImGuiFocusedFlags
impl BitOr for ImGuiFocusedFlagstype Output = ImGuiFocusedFlags
The resulting type after applying the | operator.
fn bitor(self, other: ImGuiFocusedFlags) -> ImGuiFocusedFlags
fn bitor(self, other: ImGuiFocusedFlags) -> ImGuiFocusedFlagsReturns the union of the two sets of flags.
impl BitOrAssign for ImGuiFocusedFlags
impl BitOrAssign for ImGuiFocusedFlagsfn bitor_assign(&mut self, other: ImGuiFocusedFlags)
fn bitor_assign(&mut self, other: ImGuiFocusedFlags)Adds the set of flags.
impl BitXor for ImGuiFocusedFlags
impl BitXor for ImGuiFocusedFlagstype Output = ImGuiFocusedFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: ImGuiFocusedFlags) -> ImGuiFocusedFlags
fn bitxor(self, other: ImGuiFocusedFlags) -> ImGuiFocusedFlagsReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for ImGuiFocusedFlags
impl BitXorAssign for ImGuiFocusedFlagsfn bitxor_assign(&mut self, other: ImGuiFocusedFlags)
fn bitxor_assign(&mut self, other: ImGuiFocusedFlags)Toggles the set of flags.
impl BitAnd for ImGuiFocusedFlags
impl BitAnd for ImGuiFocusedFlagstype Output = ImGuiFocusedFlags
The resulting type after applying the & operator.
fn bitand(self, other: ImGuiFocusedFlags) -> ImGuiFocusedFlags
fn bitand(self, other: ImGuiFocusedFlags) -> ImGuiFocusedFlagsReturns the intersection between the two sets of flags.
impl BitAndAssign for ImGuiFocusedFlags
impl BitAndAssign for ImGuiFocusedFlagsfn bitand_assign(&mut self, other: ImGuiFocusedFlags)
fn bitand_assign(&mut self, other: ImGuiFocusedFlags)Disables all flags disabled in the set.
impl Sub for ImGuiFocusedFlags
impl Sub for ImGuiFocusedFlagstype Output = ImGuiFocusedFlags
The resulting type after applying the - operator.
fn sub(self, other: ImGuiFocusedFlags) -> ImGuiFocusedFlags
fn sub(self, other: ImGuiFocusedFlags) -> ImGuiFocusedFlagsReturns the set difference of the two sets of flags.
impl SubAssign for ImGuiFocusedFlags
impl SubAssign for ImGuiFocusedFlagsfn sub_assign(&mut self, other: ImGuiFocusedFlags)
fn sub_assign(&mut self, other: ImGuiFocusedFlags)Disables all flags enabled in the set.
impl Not for ImGuiFocusedFlags
impl Not for ImGuiFocusedFlagstype Output = ImGuiFocusedFlags
The resulting type after applying the ! operator.
fn not(self) -> ImGuiFocusedFlags
fn not(self) -> ImGuiFocusedFlagsReturns the complement of this set of flags.
impl Extend<ImGuiFocusedFlags> for ImGuiFocusedFlags
impl Extend<ImGuiFocusedFlags> for ImGuiFocusedFlagsfn extend<T: IntoIterator<Item = ImGuiFocusedFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ImGuiFocusedFlags>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<ImGuiFocusedFlags> for ImGuiFocusedFlags
impl FromIterator<ImGuiFocusedFlags> for ImGuiFocusedFlagsfn from_iter<T: IntoIterator<Item = ImGuiFocusedFlags>>(
iterator: T
) -> ImGuiFocusedFlags
fn from_iter<T: IntoIterator<Item = ImGuiFocusedFlags>>(
iterator: T
) -> ImGuiFocusedFlagsCreates a value from an iterator. Read more
Auto Trait Implementations
impl Send for ImGuiFocusedFlags
impl Send for ImGuiFocusedFlagsimpl Sync for ImGuiFocusedFlags
impl Sync for ImGuiFocusedFlags