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