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