Struct aflak_imgui::ImGuiSelectableFlags [−]
#[repr(C)]pub struct ImGuiSelectableFlags { /* fields omitted */ }
Flags for selectables
Methods
impl ImGuiSelectableFlags
impl ImGuiSelectableFlags
pub const DontClosePopups: ImGuiSelectableFlags
DontClosePopups: ImGuiSelectableFlags = ImGuiSelectableFlags{bits: 1,}
pub const SpanAllColumns: ImGuiSelectableFlags
SpanAllColumns: ImGuiSelectableFlags = ImGuiSelectableFlags{bits: 1 << 1,}
pub const AllowDoubleClick: ImGuiSelectableFlags
AllowDoubleClick: ImGuiSelectableFlags = ImGuiSelectableFlags{bits: 1 << 2,}
pub fn empty() -> ImGuiSelectableFlags
pub fn empty() -> ImGuiSelectableFlags
Returns an empty set of flags.
pub fn all() -> ImGuiSelectableFlags
pub fn all() -> ImGuiSelectableFlags
Returns the set containing all flags.
pub fn bits(&self) -> i32
pub fn bits(&self) -> i32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: i32) -> Option<ImGuiSelectableFlags>
pub fn from_bits(bits: i32) -> Option<ImGuiSelectableFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: i32) -> ImGuiSelectableFlags
pub fn from_bits_truncate(bits: i32) -> ImGuiSelectableFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: ImGuiSelectableFlags) -> bool
pub fn intersects(&self, other: ImGuiSelectableFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: ImGuiSelectableFlags) -> bool
pub fn contains(&self, other: ImGuiSelectableFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: ImGuiSelectableFlags)
pub fn insert(&mut self, other: ImGuiSelectableFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: ImGuiSelectableFlags)
pub fn remove(&mut self, other: ImGuiSelectableFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: ImGuiSelectableFlags)
pub fn toggle(&mut self, other: ImGuiSelectableFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: ImGuiSelectableFlags, value: bool)
pub fn set(&mut self, other: ImGuiSelectableFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl LowerHex for ImGuiSelectableFlags
impl LowerHex for ImGuiSelectableFlags
impl BitAnd<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl BitAnd<ImGuiSelectableFlags> for ImGuiSelectableFlags
type Output = ImGuiSelectableFlags
The resulting type after applying the &
operator.
fn bitand(self, other: ImGuiSelectableFlags) -> ImGuiSelectableFlags
fn bitand(self, other: ImGuiSelectableFlags) -> ImGuiSelectableFlags
Returns the intersection between the two sets of flags.
impl PartialOrd<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl PartialOrd<ImGuiSelectableFlags> for ImGuiSelectableFlags
fn partial_cmp(&self, other: &ImGuiSelectableFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &ImGuiSelectableFlags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &ImGuiSelectableFlags) -> bool
fn lt(&self, other: &ImGuiSelectableFlags) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &ImGuiSelectableFlags) -> bool
fn le(&self, other: &ImGuiSelectableFlags) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &ImGuiSelectableFlags) -> bool
fn gt(&self, other: &ImGuiSelectableFlags) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &ImGuiSelectableFlags) -> bool
fn ge(&self, other: &ImGuiSelectableFlags) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Extend<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl Extend<ImGuiSelectableFlags> for ImGuiSelectableFlags
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = ImGuiSelectableFlags>,
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = ImGuiSelectableFlags>,
Extends a collection with the contents of an iterator. Read more
impl Hash for ImGuiSelectableFlags
impl Hash for ImGuiSelectableFlags
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
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 Sub<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl Sub<ImGuiSelectableFlags> for ImGuiSelectableFlags
type Output = ImGuiSelectableFlags
The resulting type after applying the -
operator.
fn sub(self, other: ImGuiSelectableFlags) -> ImGuiSelectableFlags
fn sub(self, other: ImGuiSelectableFlags) -> ImGuiSelectableFlags
Returns the set difference of the two sets of flags.
impl Clone for ImGuiSelectableFlags
impl Clone for ImGuiSelectableFlags
fn clone(&self) -> ImGuiSelectableFlags
fn clone(&self) -> ImGuiSelectableFlags
Returns 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 Debug for ImGuiSelectableFlags
impl Debug for ImGuiSelectableFlags
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Binary for ImGuiSelectableFlags
impl Binary for ImGuiSelectableFlags
impl Ord for ImGuiSelectableFlags
impl Ord for ImGuiSelectableFlags
fn cmp(&self, other: &ImGuiSelectableFlags) -> Ordering
fn cmp(&self, other: &ImGuiSelectableFlags) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Octal for ImGuiSelectableFlags
impl Octal for ImGuiSelectableFlags
impl UpperHex for ImGuiSelectableFlags
impl UpperHex for ImGuiSelectableFlags
impl BitOr<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl BitOr<ImGuiSelectableFlags> for ImGuiSelectableFlags
type Output = ImGuiSelectableFlags
The resulting type after applying the |
operator.
fn bitor(self, other: ImGuiSelectableFlags) -> ImGuiSelectableFlags
fn bitor(self, other: ImGuiSelectableFlags) -> ImGuiSelectableFlags
Returns the union of the two sets of flags.
impl FromIterator<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl FromIterator<ImGuiSelectableFlags> for ImGuiSelectableFlags
fn from_iter<T>(iterator: T) -> ImGuiSelectableFlags where
T: IntoIterator<Item = ImGuiSelectableFlags>,
fn from_iter<T>(iterator: T) -> ImGuiSelectableFlags where
T: IntoIterator<Item = ImGuiSelectableFlags>,
Creates a value from an iterator. Read more
impl SubAssign<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl SubAssign<ImGuiSelectableFlags> for ImGuiSelectableFlags
fn sub_assign(&mut self, other: ImGuiSelectableFlags)
fn sub_assign(&mut self, other: ImGuiSelectableFlags)
Disables all flags enabled in the set.
impl BitXor<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl BitXor<ImGuiSelectableFlags> for ImGuiSelectableFlags
type Output = ImGuiSelectableFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: ImGuiSelectableFlags) -> ImGuiSelectableFlags
fn bitxor(self, other: ImGuiSelectableFlags) -> ImGuiSelectableFlags
Returns the left flags, but with all the right flags toggled.
impl Copy for ImGuiSelectableFlags
impl Copy for ImGuiSelectableFlags
impl BitAndAssign<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl BitAndAssign<ImGuiSelectableFlags> for ImGuiSelectableFlags
fn bitand_assign(&mut self, other: ImGuiSelectableFlags)
fn bitand_assign(&mut self, other: ImGuiSelectableFlags)
Disables all flags disabled in the set.
impl Eq for ImGuiSelectableFlags
impl Eq for ImGuiSelectableFlags
impl PartialEq<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl PartialEq<ImGuiSelectableFlags> for ImGuiSelectableFlags
fn eq(&self, other: &ImGuiSelectableFlags) -> bool
fn eq(&self, other: &ImGuiSelectableFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ImGuiSelectableFlags) -> bool
fn ne(&self, other: &ImGuiSelectableFlags) -> bool
This method tests for !=
.
impl BitXorAssign<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl BitXorAssign<ImGuiSelectableFlags> for ImGuiSelectableFlags
fn bitxor_assign(&mut self, other: ImGuiSelectableFlags)
fn bitxor_assign(&mut self, other: ImGuiSelectableFlags)
Toggles the set of flags.
impl Not for ImGuiSelectableFlags
impl Not for ImGuiSelectableFlags
type Output = ImGuiSelectableFlags
The resulting type after applying the !
operator.
fn not(self) -> ImGuiSelectableFlags
fn not(self) -> ImGuiSelectableFlags
Returns the complement of this set of flags.
impl BitOrAssign<ImGuiSelectableFlags> for ImGuiSelectableFlags
impl BitOrAssign<ImGuiSelectableFlags> for ImGuiSelectableFlags
fn bitor_assign(&mut self, other: ImGuiSelectableFlags)
fn bitor_assign(&mut self, other: ImGuiSelectableFlags)
Adds the set of flags.
Auto Trait Implementations
impl Send for ImGuiSelectableFlags
impl Send for ImGuiSelectableFlags
impl Sync for ImGuiSelectableFlags
impl Sync for ImGuiSelectableFlags