pub struct WindowState { /* private fields */ }
Implementations§
Source§impl WindowState
impl WindowState
pub const WITHDRAWN: WindowState
pub const ICONIFIED: WindowState
pub const MAXIMIZED: WindowState
pub const STICKY: WindowState
pub const FULLSCREEN: WindowState
pub const ABOVE: WindowState
pub const BELOW: WindowState
pub const FOCUSED: WindowState
pub const TILED: WindowState
pub const TOP_TILED: WindowState
pub const TOP_RESIZABLE: WindowState
pub const RIGHT_TILED: WindowState
pub const RIGHT_RESIZABLE: WindowState
pub const BOTTOM_TILED: WindowState
pub const BOTTOM_RESIZABLE: WindowState
pub const LEFT_TILED: WindowState
pub const LEFT_RESIZABLE: WindowState
Sourcepub const fn empty() -> WindowState
pub const fn empty() -> WindowState
Returns an empty set of flags
Sourcepub const fn all() -> WindowState
pub const fn all() -> WindowState
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<WindowState>
pub fn from_bits(bits: u32) -> Option<WindowState>
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) -> WindowState
pub const fn from_bits_truncate(bits: u32) -> WindowState
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> WindowState
pub const unsafe fn from_bits_unchecked(bits: u32) -> WindowState
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: WindowState) -> bool
pub const fn intersects(&self, other: WindowState) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: WindowState) -> bool
pub const fn contains(&self, other: WindowState) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: WindowState)
pub fn insert(&mut self, other: WindowState)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: WindowState)
pub fn remove(&mut self, other: WindowState)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: WindowState)
pub fn toggle(&mut self, other: WindowState)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: WindowState, value: bool)
pub fn set(&mut self, other: WindowState, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for WindowState
impl Binary for WindowState
Source§impl BitAnd for WindowState
impl BitAnd for WindowState
Source§fn bitand(self, other: WindowState) -> WindowState
fn bitand(self, other: WindowState) -> WindowState
Returns the intersection between the two sets of flags.
Source§type Output = WindowState
type Output = WindowState
&
operator.Source§impl BitAndAssign for WindowState
impl BitAndAssign for WindowState
Source§fn bitand_assign(&mut self, other: WindowState)
fn bitand_assign(&mut self, other: WindowState)
Disables all flags disabled in the set.
Source§impl BitOr for WindowState
impl BitOr for WindowState
Source§fn bitor(self, other: WindowState) -> WindowState
fn bitor(self, other: WindowState) -> WindowState
Returns the union of the two sets of flags.
Source§type Output = WindowState
type Output = WindowState
|
operator.Source§impl BitOrAssign for WindowState
impl BitOrAssign for WindowState
Source§fn bitor_assign(&mut self, other: WindowState)
fn bitor_assign(&mut self, other: WindowState)
Adds the set of flags.
Source§impl BitXor for WindowState
impl BitXor for WindowState
Source§fn bitxor(self, other: WindowState) -> WindowState
fn bitxor(self, other: WindowState) -> WindowState
Returns the left flags, but with all the right flags toggled.
Source§type Output = WindowState
type Output = WindowState
^
operator.Source§impl BitXorAssign for WindowState
impl BitXorAssign for WindowState
Source§fn bitxor_assign(&mut self, other: WindowState)
fn bitxor_assign(&mut self, other: WindowState)
Toggles the set of flags.
Source§impl Clone for WindowState
impl Clone for WindowState
Source§fn clone(&self) -> WindowState
fn clone(&self) -> WindowState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WindowState
impl Debug for WindowState
Source§impl Extend<WindowState> for WindowState
impl Extend<WindowState> for WindowState
Source§fn extend<T: IntoIterator<Item = WindowState>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = WindowState>>(&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<WindowState> for WindowState
impl FromIterator<WindowState> for WindowState
Source§fn from_iter<T: IntoIterator<Item = WindowState>>(iterator: T) -> WindowState
fn from_iter<T: IntoIterator<Item = WindowState>>(iterator: T) -> WindowState
Source§impl<'a> FromValue<'a> for WindowState
impl<'a> FromValue<'a> for WindowState
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for WindowState
impl<'a> FromValueOptional<'a> for WindowState
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for WindowState
impl Hash for WindowState
Source§impl LowerHex for WindowState
impl LowerHex for WindowState
Source§impl Not for WindowState
impl Not for WindowState
Source§fn not(self) -> WindowState
fn not(self) -> WindowState
Returns the complement of this set of flags.
Source§type Output = WindowState
type Output = WindowState
!
operator.Source§impl Octal for WindowState
impl Octal for WindowState
Source§impl Ord for WindowState
impl Ord for WindowState
Source§fn cmp(&self, other: &WindowState) -> Ordering
fn cmp(&self, other: &WindowState) -> 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 WindowState
impl PartialEq for WindowState
Source§impl PartialOrd for WindowState
impl PartialOrd for WindowState
Source§impl StaticType for WindowState
impl StaticType for WindowState
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for WindowState
impl Sub for WindowState
Source§fn sub(self, other: WindowState) -> WindowState
fn sub(self, other: WindowState) -> WindowState
Returns the set difference of the two sets of flags.
Source§type Output = WindowState
type Output = WindowState
-
operator.Source§impl SubAssign for WindowState
impl SubAssign for WindowState
Source§fn sub_assign(&mut self, other: WindowState)
fn sub_assign(&mut self, other: WindowState)
Disables all flags enabled in the set.
Source§impl UpperHex for WindowState
impl UpperHex for WindowState
impl Copy for WindowState
impl Eq for WindowState
impl StructuralPartialEq for WindowState
Auto Trait Implementations§
impl Freeze for WindowState
impl RefUnwindSafe for WindowState
impl Send for WindowState
impl Sync for WindowState
impl Unpin for WindowState
impl UnwindSafe for WindowState
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§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.