Struct imgui_sys::ImGuiTreeNodeFlags [−]
#[repr(C)]pub struct ImGuiTreeNodeFlags { /* fields omitted */ }
Flags for trees and collapsing headers
Methods
impl ImGuiTreeNodeFlags
impl ImGuiTreeNodeFlagspub const Selected: ImGuiTreeNodeFlags
Selected: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1,}
pub const Framed: ImGuiTreeNodeFlags
Framed: ImGuiTreeNodeFlags = ImGuiTreeNodeFlags{bits: 1 << 1,}
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() -> ImGuiTreeNodeFlagsReturns an empty set of flags.
pub fn all() -> ImGuiTreeNodeFlags
pub fn all() -> ImGuiTreeNodeFlagsReturns 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<ImGuiTreeNodeFlags>
pub fn from_bits(bits: c_int) -> 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: c_int) -> ImGuiTreeNodeFlags
pub fn from_bits_truncate(bits: c_int) -> ImGuiTreeNodeFlagsConvert 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: ImGuiTreeNodeFlags) -> bool
pub fn intersects(&self, other: ImGuiTreeNodeFlags) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: ImGuiTreeNodeFlags) -> bool
pub fn contains(&self, other: ImGuiTreeNodeFlags) -> boolReturns 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 Copy for ImGuiTreeNodeFlags
impl Copy for ImGuiTreeNodeFlagsimpl PartialEq for ImGuiTreeNodeFlags
impl PartialEq for ImGuiTreeNodeFlagsfn eq(&self, other: &ImGuiTreeNodeFlags) -> bool
fn eq(&self, other: &ImGuiTreeNodeFlags) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for ImGuiTreeNodeFlags
impl Eq for ImGuiTreeNodeFlagsimpl Clone for ImGuiTreeNodeFlags
impl Clone for ImGuiTreeNodeFlagsfn clone(&self) -> ImGuiTreeNodeFlags
fn clone(&self) -> ImGuiTreeNodeFlagsReturns 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 ImGuiTreeNodeFlags
impl PartialOrd for ImGuiTreeNodeFlagsfn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for ImGuiTreeNodeFlags
impl Ord for ImGuiTreeNodeFlagsfn cmp(&self, other: &ImGuiTreeNodeFlags) -> Ordering
fn cmp(&self, other: &ImGuiTreeNodeFlags) -> 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 ImGuiTreeNodeFlags
impl Hash for ImGuiTreeNodeFlagsfn 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 ImGuiTreeNodeFlags
impl Debug for ImGuiTreeNodeFlagsimpl Binary for ImGuiTreeNodeFlags
impl Binary for ImGuiTreeNodeFlagsimpl Octal for ImGuiTreeNodeFlags
impl Octal for ImGuiTreeNodeFlagsimpl LowerHex for ImGuiTreeNodeFlags
impl LowerHex for ImGuiTreeNodeFlagsimpl UpperHex for ImGuiTreeNodeFlags
impl UpperHex for ImGuiTreeNodeFlagsimpl BitOr for ImGuiTreeNodeFlags
impl BitOr for ImGuiTreeNodeFlagstype Output = ImGuiTreeNodeFlags
The resulting type after applying the | operator.
fn bitor(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlags
fn bitor(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlagsReturns the union of the two sets of flags.
impl BitOrAssign for ImGuiTreeNodeFlags
impl BitOrAssign for ImGuiTreeNodeFlagsfn bitor_assign(&mut self, other: ImGuiTreeNodeFlags)
fn bitor_assign(&mut self, other: ImGuiTreeNodeFlags)Adds the set of flags.
impl BitXor for ImGuiTreeNodeFlags
impl BitXor for ImGuiTreeNodeFlagstype Output = ImGuiTreeNodeFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlags
fn bitxor(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlagsReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for ImGuiTreeNodeFlags
impl BitXorAssign for ImGuiTreeNodeFlagsfn bitxor_assign(&mut self, other: ImGuiTreeNodeFlags)
fn bitxor_assign(&mut self, other: ImGuiTreeNodeFlags)Toggles the set of flags.
impl BitAnd for ImGuiTreeNodeFlags
impl BitAnd for ImGuiTreeNodeFlagstype Output = ImGuiTreeNodeFlags
The resulting type after applying the & operator.
fn bitand(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlags
fn bitand(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlagsReturns the intersection between the two sets of flags.
impl BitAndAssign for ImGuiTreeNodeFlags
impl BitAndAssign for ImGuiTreeNodeFlagsfn bitand_assign(&mut self, other: ImGuiTreeNodeFlags)
fn bitand_assign(&mut self, other: ImGuiTreeNodeFlags)Disables all flags disabled in the set.
impl Sub for ImGuiTreeNodeFlags
impl Sub for ImGuiTreeNodeFlagstype Output = ImGuiTreeNodeFlags
The resulting type after applying the - operator.
fn sub(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlags
fn sub(self, other: ImGuiTreeNodeFlags) -> ImGuiTreeNodeFlagsReturns the set difference of the two sets of flags.
impl SubAssign for ImGuiTreeNodeFlags
impl SubAssign for ImGuiTreeNodeFlagsfn sub_assign(&mut self, other: ImGuiTreeNodeFlags)
fn sub_assign(&mut self, other: ImGuiTreeNodeFlags)Disables all flags enabled in the set.
impl Not for ImGuiTreeNodeFlags
impl Not for ImGuiTreeNodeFlagstype Output = ImGuiTreeNodeFlags
The resulting type after applying the ! operator.
fn not(self) -> ImGuiTreeNodeFlags
fn not(self) -> ImGuiTreeNodeFlagsReturns the complement of this set of flags.
impl Extend<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
impl Extend<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlagsfn extend<T: IntoIterator<Item = ImGuiTreeNodeFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ImGuiTreeNodeFlags>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlags
impl FromIterator<ImGuiTreeNodeFlags> for ImGuiTreeNodeFlagsfn from_iter<T: IntoIterator<Item = ImGuiTreeNodeFlags>>(
iterator: T
) -> ImGuiTreeNodeFlags
fn from_iter<T: IntoIterator<Item = ImGuiTreeNodeFlags>>(
iterator: T
) -> ImGuiTreeNodeFlagsCreates a value from an iterator. Read more
Auto Trait Implementations
impl Send for ImGuiTreeNodeFlags
impl Send for ImGuiTreeNodeFlagsimpl Sync for ImGuiTreeNodeFlags
impl Sync for ImGuiTreeNodeFlags