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