Struct arcdps_imgui::WindowFlags
source · pub struct WindowFlags { /* private fields */ }
Expand description
Configuration flags for windows
Implementations§
source§impl WindowFlags
impl WindowFlags
sourcepub const NO_TITLE_BAR: Self = _
pub const NO_TITLE_BAR: Self = _
Disable the title bar
sourcepub const NO_SCROLLBAR: Self = _
pub const NO_SCROLLBAR: Self = _
Disable scrollbars (scrolling is still possible with the mouse or programmatically)
sourcepub const NO_SCROLL_WITH_MOUSE: Self = _
pub const NO_SCROLL_WITH_MOUSE: Self = _
Disable vertical scrolling with the mouse wheel.
On child window, the mouse wheel will be forwarded to the parent unless NO_SCROLLBAR
is also set.
sourcepub const NO_COLLAPSE: Self = _
pub const NO_COLLAPSE: Self = _
Disable collapsing the window by double-clicking it
sourcepub const ALWAYS_AUTO_RESIZE: Self = _
pub const ALWAYS_AUTO_RESIZE: Self = _
Resize the window to its content on every frame
sourcepub const NO_BACKGROUND: Self = _
pub const NO_BACKGROUND: Self = _
Disable drawing of background color and outside border
sourcepub const NO_SAVED_SETTINGS: Self = _
pub const NO_SAVED_SETTINGS: Self = _
Never load/save settings
sourcepub const NO_MOUSE_INPUTS: Self = _
pub const NO_MOUSE_INPUTS: Self = _
Disable catching mouse input. Hovering test will pass through
sourcepub const HORIZONTAL_SCROLLBAR: Self = _
pub const HORIZONTAL_SCROLLBAR: Self = _
Allow horizontal scrollbar to appear
sourcepub const NO_FOCUS_ON_APPEARING: Self = _
pub const NO_FOCUS_ON_APPEARING: Self = _
Disable taking focus when transitioning from hidden to visible state
sourcepub const NO_BRING_TO_FRONT_ON_FOCUS: Self = _
pub const NO_BRING_TO_FRONT_ON_FOCUS: Self = _
Disable bringing window to front when taking focus (e.g. clicking it or programmatically giving it focus)
sourcepub const ALWAYS_VERTICAL_SCROLLBAR: Self = _
pub const ALWAYS_VERTICAL_SCROLLBAR: Self = _
Always show vertical scrollbar
sourcepub const ALWAYS_HORIZONTAL_SCROLLBAR: Self = _
pub const ALWAYS_HORIZONTAL_SCROLLBAR: Self = _
Always show horizontal scrollbar
sourcepub const ALWAYS_USE_WINDOW_PADDING: Self = _
pub const ALWAYS_USE_WINDOW_PADDING: Self = _
Ensure child windows without border use style.window_padding
sourcepub const NO_NAV_INPUTS: Self = _
pub const NO_NAV_INPUTS: Self = _
Disable gamepad/keyboard navigation within the window
sourcepub const NO_NAV_FOCUS: Self = _
pub const NO_NAV_FOCUS: Self = _
No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB)
sourcepub const UNSAVED_DOCUMENT: Self = _
pub const UNSAVED_DOCUMENT: Self = _
Append ‘*’ to title without affecting the ID, as a convenience
sourcepub const NO_NAV: Self = _
pub const NO_NAV: Self = _
Disable gamepad/keyboard navigation and focusing.
Shorthand for WindowFlags::NO_NAV_INPUTS | WindowFlags::NO_NAV_FOCUS
.
sourcepub const NO_DECORATION: Self = _
pub const NO_DECORATION: Self = _
Disable all window decorations.
Shorthand for WindowFlags::NO_TITLE_BAR | WindowFlags::NO_RESIZE | WindowFlags::NO_SCROLLBAR | WindowFlags::NO_COLLAPSE
.
sourcepub const NO_INPUTS: Self = _
pub const NO_INPUTS: Self = _
Don’t handle input.
Shorthand for WindowFlags::NO_MOUSE_INPUTS | WindowFlags::NO_NAV_INPUTS | WindowFlags::NO_NAV_FOCUS
.
sourcepub const fn from_bits(bits: u32) -> Option<Self>
pub const fn from_bits(bits: u32) -> Option<Self>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> Self
pub const fn from_bits_truncate(bits: u32) -> Self
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> Self
pub const unsafe fn from_bits_unchecked(bits: u32) -> Self
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
§Safety
The caller of the bitflags!
macro can chose to allow or
disallow extra bits for their bitflags type.
The caller of from_bits_unchecked()
has to ensure that
all bits correspond to a defined flag or that extra bits
are valid for this bitflags type.
sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Returns true
if all of the flags in other
are contained within self
.
sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Inserts or removes the specified flags depending on the passed value.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection between the flags in self
and
other
.
Specifically, the returned set contains only the flags which are
present in both self
and other
.
This is equivalent to using the &
operator (e.g.
ops::BitAnd
), as in flags & other
.
sourcepub const fn union(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
Returns the union of between the flags in self
and other
.
Specifically, the returned set contains all flags which are
present in either self
or other
, including any which are
present in both (see Self::symmetric_difference
if that
is undesirable).
This is equivalent to using the |
operator (e.g.
ops::BitOr
), as in flags | other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference between the flags in self
and other
.
Specifically, the returned set contains all flags present in
self
, except for the ones present in other
.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other
(and this syntax is also supported).
This is equivalent to using the -
operator (e.g.
ops::Sub
), as in flags - other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference between the flags
in self
and other
.
Specifically, the returned set contains the flags present which
are present in self
or other
, but that are not present in
both. Equivalently, it contains the flags present in exactly
one of the sets self
and other
.
This is equivalent to using the ^
operator (e.g.
ops::BitXor
), as in flags ^ other
.
sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
Returns the complement of this set of flags.
Specifically, the returned set contains all the flags which are
not set in self
, but which are allowed for this type.
Alternatively, it can be thought of as the set difference
between Self::all()
and self
(e.g. Self::all() - self
)
This is equivalent to using the !
operator (e.g.
ops::Not
), as in !flags
.
Trait Implementations§
source§impl Binary for WindowFlags
impl Binary for WindowFlags
source§impl BitAnd for WindowFlags
impl BitAnd for WindowFlags
source§impl BitAndAssign for WindowFlags
impl BitAndAssign for WindowFlags
source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Disables all flags disabled in the set.
source§impl BitOr for WindowFlags
impl BitOr for WindowFlags
source§fn bitor(self, other: WindowFlags) -> Self
fn bitor(self, other: WindowFlags) -> Self
Returns the union of the two sets of flags.
source§type Output = WindowFlags
type Output = WindowFlags
|
operator.source§impl BitOrAssign for WindowFlags
impl BitOrAssign for WindowFlags
source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Adds the set of flags.
source§impl BitXor for WindowFlags
impl BitXor for WindowFlags
source§impl BitXorAssign for WindowFlags
impl BitXorAssign for WindowFlags
source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Toggles the set of flags.
source§impl Clone for WindowFlags
impl Clone for WindowFlags
source§fn clone(&self) -> WindowFlags
fn clone(&self) -> WindowFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WindowFlags
impl Debug for WindowFlags
source§impl Extend<WindowFlags> for WindowFlags
impl Extend<WindowFlags> for WindowFlags
source§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)source§impl FromIterator<WindowFlags> for WindowFlags
impl FromIterator<WindowFlags> for WindowFlags
source§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
source§impl Hash for WindowFlags
impl Hash for WindowFlags
source§impl LowerHex for WindowFlags
impl LowerHex for WindowFlags
source§impl Not for WindowFlags
impl Not for WindowFlags
source§impl Octal for WindowFlags
impl Octal for WindowFlags
source§impl Ord for WindowFlags
impl Ord for WindowFlags
source§fn cmp(&self, other: &WindowFlags) -> Ordering
fn cmp(&self, other: &WindowFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for WindowFlags
impl PartialEq for WindowFlags
source§impl PartialOrd for WindowFlags
impl PartialOrd for WindowFlags
source§impl Sub for WindowFlags
impl Sub for WindowFlags
source§impl SubAssign for WindowFlags
impl SubAssign for WindowFlags
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Disables all flags enabled in the set.
source§impl UpperHex for WindowFlags
impl UpperHex for WindowFlags
impl Copy for WindowFlags
impl Eq for WindowFlags
impl StructuralPartialEq for WindowFlags
Auto Trait Implementations§
impl Freeze for WindowFlags
impl RefUnwindSafe for WindowFlags
impl Send for WindowFlags
impl Sync for WindowFlags
impl Unpin for WindowFlags
impl UnwindSafe for WindowFlags
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)