Struct imgui::ImGuiColorEditFlags
[−]
[src]
#[repr(C)]pub struct ImGuiColorEditFlags { /* fields omitted */ }
Color edit flags
Methods
impl ImGuiColorEditFlags
[src]
const NoAlpha: ImGuiColorEditFlags
NoAlpha: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 1,}
const NoPicker: ImGuiColorEditFlags
NoPicker: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 2,}
const NoOptions: ImGuiColorEditFlags
NoOptions: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 3,}
const NoSmallPreview: ImGuiColorEditFlags
NoSmallPreview: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 4,}
const NoInputs: ImGuiColorEditFlags
NoInputs: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 5,}
const NoTooltip: ImGuiColorEditFlags
NoTooltip: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 6,}
const NoLabel: ImGuiColorEditFlags
NoLabel: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 7,}
const NoSidePreview: ImGuiColorEditFlags
NoSidePreview: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 8,}
const AlphaBar: ImGuiColorEditFlags
AlphaBar: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 9,}
const AlphaPreview: ImGuiColorEditFlags
AlphaPreview: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 10,}
const AlphaPreviewHalf: ImGuiColorEditFlags
AlphaPreviewHalf: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 11,}
const HDR: ImGuiColorEditFlags
HDR: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 12,}
const RGB: ImGuiColorEditFlags
RGB: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 13,}
const HSV: ImGuiColorEditFlags
HSV: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 14,}
const HEX: ImGuiColorEditFlags
HEX: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 15,}
const Uint8: ImGuiColorEditFlags
Uint8: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 16,}
const Float: ImGuiColorEditFlags
Float: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 17,}
const PickerHueBar: ImGuiColorEditFlags
PickerHueBar: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 18,}
const PickerHueWheel: ImGuiColorEditFlags
PickerHueWheel: ImGuiColorEditFlags = ImGuiColorEditFlags{bits: 1 << 19,}
fn empty() -> ImGuiColorEditFlags
[src]
Returns an empty set of flags.
fn all() -> ImGuiColorEditFlags
[src]
Returns the set containing all flags.
fn bits(&self) -> i32
[src]
Returns the raw value of the flags currently stored.
fn from_bits(bits: i32) -> Option<ImGuiColorEditFlags>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: i32) -> ImGuiColorEditFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
fn intersects(&self, other: ImGuiColorEditFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: ImGuiColorEditFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: ImGuiColorEditFlags)
[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: ImGuiColorEditFlags)
[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: ImGuiColorEditFlags)
[src]
Toggles the specified flags in-place.
fn set(&mut self, other: ImGuiColorEditFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Ord for ImGuiColorEditFlags
[src]
fn cmp(&self, __arg_0: &ImGuiColorEditFlags) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Copy for ImGuiColorEditFlags
[src]
impl Hash for ImGuiColorEditFlags
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__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]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Not for ImGuiColorEditFlags
[src]
type Output = ImGuiColorEditFlags
fn not(self) -> ImGuiColorEditFlags
[src]
Returns the complement of this set of flags.
impl Clone for ImGuiColorEditFlags
[src]
fn clone(&self) -> ImGuiColorEditFlags
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl BitXor<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
type Output = ImGuiColorEditFlags
fn bitxor(self, other: ImGuiColorEditFlags) -> ImGuiColorEditFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitOr<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
type Output = ImGuiColorEditFlags
fn bitor(self, other: ImGuiColorEditFlags) -> ImGuiColorEditFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
fn bitor_assign(&mut self, other: ImGuiColorEditFlags)
[src]
Adds the set of flags.
impl Octal for ImGuiColorEditFlags
[src]
impl BitAndAssign<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
fn bitand_assign(&mut self, other: ImGuiColorEditFlags)
[src]
Disables all flags disabled in the set.
impl PartialEq<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
fn eq(&self, __arg_0: &ImGuiColorEditFlags) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ImGuiColorEditFlags) -> bool
[src]
This method tests for !=
.
impl Debug for ImGuiColorEditFlags
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl Extend<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = ImGuiColorEditFlags>,
[src]
T: IntoIterator<Item = ImGuiColorEditFlags>,
impl SubAssign<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
fn sub_assign(&mut self, other: ImGuiColorEditFlags)
[src]
Disables all flags enabled in the set.
impl BitAnd<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
type Output = ImGuiColorEditFlags
fn bitand(self, other: ImGuiColorEditFlags) -> ImGuiColorEditFlags
[src]
Returns the intersection between the two sets of flags.
impl BitXorAssign<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
fn bitxor_assign(&mut self, other: ImGuiColorEditFlags)
[src]
Toggles the set of flags.
impl UpperHex for ImGuiColorEditFlags
[src]
impl Eq for ImGuiColorEditFlags
[src]
impl Binary for ImGuiColorEditFlags
[src]
impl FromIterator<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
fn from_iter<T>(iterator: T) -> ImGuiColorEditFlags where
T: IntoIterator<Item = ImGuiColorEditFlags>,
[src]
T: IntoIterator<Item = ImGuiColorEditFlags>,
impl LowerHex for ImGuiColorEditFlags
[src]
impl Sub<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
type Output = ImGuiColorEditFlags
fn sub(self, other: ImGuiColorEditFlags) -> ImGuiColorEditFlags
[src]
Returns the set difference of the two sets of flags.
impl PartialOrd<ImGuiColorEditFlags> for ImGuiColorEditFlags
[src]
fn partial_cmp(&self, __arg_0: &ImGuiColorEditFlags) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &ImGuiColorEditFlags) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &ImGuiColorEditFlags) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &ImGuiColorEditFlags) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &ImGuiColorEditFlags) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more