Struct imgui::ImGuiTreeNodeFlags
[−]
[src]
#[repr(C)]pub struct ImGuiTreeNodeFlags { /* fields omitted */ }
Flags for trees and collapsing headers
Methods
impl ImGuiTreeNodeFlags
[src]
const Selected: ImGuiTreeNodeFlags
Selected: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1,}
const Framed: ImGuiTreeNodeFlags
Framed: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1 << 1,}
const AllowOverlapMode: ImGuiTreeNodeFlags
AllowOverlapMode: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1 << 2,}
const NoTreePushOnOpen: ImGuiTreeNodeFlags
NoTreePushOnOpen: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1 << 3,}
const NoAutoOpenOnLog: ImGuiTreeNodeFlags
NoAutoOpenOnLog: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1 << 4,}
const DefaultOpen: ImGuiTreeNodeFlags
DefaultOpen: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1 << 5,}
const OpenOnDoubleClick: ImGuiTreeNodeFlags
OpenOnDoubleClick: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1 << 6,}
const OpenOnArrow: ImGuiTreeNodeFlags
OpenOnArrow: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1 << 7,}
const Leaf: ImGuiTreeNodeFlags
Leaf: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1 << 8,}
const Bullet: ImGuiTreeNodeFlags
Bullet: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1 << 9,}
const CollapsingHeader: ImGuiTreeNodeFlags
CollapsingHeader: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: <ImGuiTreeNodeFlags>::Framed.bits | <ImGuiTreeNodeFlags>::NoAutoOpenOnLog.bits,}
fn empty() -> ImGuiTreeNodeFlags
[src]
Returns an empty set of flags.
fn all() -> ImGuiTreeNodeFlags
[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<ImGuiTreeNodeFlags>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: i32) -> ImGuiTreeNodeFlags
[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: ImGuiTreeNodeFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: ImGuiTreeNodeFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: ImGuiTreeNodeFlags)
[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: ImGuiTreeNodeFlags)
[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: ImGuiTreeNodeFlags)
[src]
Toggles the specified flags in-place.
fn set(&mut self, other: ImGuiTreeNodeFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Ord for ImGuiTreeNodeFlags
[src]
fn cmp(&self, __arg_0: &ImGuiTreeNodeFlags) -> 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 ImGuiTreeNodeFlags
[src]
impl Hash for ImGuiTreeNodeFlags
[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 ImGuiTreeNodeFlags
[src]
type Output = ImGuiTreeNodeFlags
fn not(self) -> ImGuiTreeNodeFlags
[src]
Returns the complement of this set of flags.
impl Clone for ImGuiTreeNodeFlags
[src]
fn clone(&self) -> ImGuiTreeNodeFlags
[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<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
type Output = ImGuiTreeNodeFlags
fn bitxor(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitOr<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
type Output = ImGuiTreeNodeFlags
fn bitor(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
fn bitor_assign(&mut self, other: ImGuiTreeNodeFlags)
[src]
Adds the set of flags.
impl Octal for ImGuiTreeNodeFlags
[src]
impl BitAndAssign<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
fn bitand_assign(&mut self, other: ImGuiTreeNodeFlags)
[src]
Disables all flags disabled in the set.
impl PartialEq<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
fn eq(&self, __arg_0: &ImGuiTreeNodeFlags) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ImGuiTreeNodeFlags) -> bool
[src]
This method tests for !=
.
impl Debug for ImGuiTreeNodeFlags
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl Extend<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = ImGuiTreeNodeFlags>,
[src]
T: IntoIterator<Item = ImGuiTreeNodeFlags>,
impl SubAssign<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
fn sub_assign(&mut self, other: ImGuiTreeNodeFlags)
[src]
Disables all flags enabled in the set.
impl BitAnd<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
type Output = ImGuiTreeNodeFlags
fn bitand(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlags
[src]
Returns the intersection between the two sets of flags.
impl BitXorAssign<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
fn bitxor_assign(&mut self, other: ImGuiTreeNodeFlags)
[src]
Toggles the set of flags.
impl UpperHex for ImGuiTreeNodeFlags
[src]
impl Eq for ImGuiTreeNodeFlags
[src]
impl Binary for ImGuiTreeNodeFlags
[src]
impl FromIterator<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
fn from_iter<T>(iterator: T) -> ImGuiTreeNodeFlags where
T: IntoIterator<Item = ImGuiTreeNodeFlags>,
[src]
T: IntoIterator<Item = ImGuiTreeNodeFlags>,
impl LowerHex for ImGuiTreeNodeFlags
[src]
impl Sub<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
type Output = ImGuiTreeNodeFlags
fn sub(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlags
[src]
Returns the set difference of the two sets of flags.
impl PartialOrd<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
[src]
fn partial_cmp(&self, __arg_0: &ImGuiTreeNodeFlags) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &ImGuiTreeNodeFlags) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &ImGuiTreeNodeFlags) -> 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: &ImGuiTreeNodeFlags) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &ImGuiTreeNodeFlags) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more