Struct gdk::WindowState [−]
pub struct WindowState { /* fields omitted */ }
Methods
impl WindowState
impl WindowState
pub const WITHDRAWN: WindowState
WITHDRAWN: WindowState = WindowState{bits: 1,}
pub const ICONIFIED: WindowState
ICONIFIED: WindowState = WindowState{bits: 2,}
pub const MAXIMIZED: WindowState
MAXIMIZED: WindowState = WindowState{bits: 4,}
pub const STICKY: WindowState
STICKY: WindowState = WindowState{bits: 8,}
pub const FULLSCREEN: WindowState
FULLSCREEN: WindowState = WindowState{bits: 16,}
pub const ABOVE: WindowState
ABOVE: WindowState = WindowState{bits: 32,}
pub const BELOW: WindowState
BELOW: WindowState = WindowState{bits: 64,}
pub const FOCUSED: WindowState
FOCUSED: WindowState = WindowState{bits: 128,}
pub const TILED: WindowState
TILED: WindowState = WindowState{bits: 256,}
pub const TOP_TILED: WindowState
TOP_TILED: WindowState = WindowState{bits: 512,}
pub const TOP_RESIZABLE: WindowState
TOP_RESIZABLE: WindowState = WindowState{bits: 1024,}
pub const RIGHT_TILED: WindowState
RIGHT_TILED: WindowState = WindowState{bits: 2048,}
pub const RIGHT_RESIZABLE: WindowState
RIGHT_RESIZABLE: WindowState = WindowState{bits: 4096,}
pub const BOTTOM_TILED: WindowState
BOTTOM_TILED: WindowState = WindowState{bits: 8192,}
pub const BOTTOM_RESIZABLE: WindowState
BOTTOM_RESIZABLE: WindowState = WindowState{bits: 16384,}
pub const LEFT_TILED: WindowState
LEFT_TILED: WindowState = WindowState{bits: 32768,}
pub const LEFT_RESIZABLE: WindowState
LEFT_RESIZABLE: WindowState = WindowState{bits: 65536,}
pub fn empty() -> WindowState
pub fn empty() -> WindowState
Returns an empty set of flags.
pub fn all() -> WindowState
pub fn all() -> WindowState
Returns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub 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.
pub fn from_bits_truncate(bits: u32) -> WindowState
pub fn from_bits_truncate(bits: u32) -> WindowState
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: WindowState) -> bool
pub fn intersects(&self, other: WindowState) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: WindowState) -> bool
pub fn contains(&self, other: WindowState) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: WindowState)
pub fn insert(&mut self, other: WindowState)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: WindowState)
pub fn remove(&mut self, other: WindowState)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: WindowState)
pub fn toggle(&mut self, other: WindowState)
Toggles the specified flags in-place.
pub 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
impl Copy for WindowState
impl Copy for WindowState
impl PartialEq for WindowState
impl PartialEq for WindowState
fn eq(&self, other: &WindowState) -> bool
fn eq(&self, other: &WindowState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &WindowState) -> bool
fn ne(&self, other: &WindowState) -> bool
This method tests for !=
.
impl Eq for WindowState
impl Eq for WindowState
impl Clone for WindowState
impl Clone for WindowState
fn clone(&self) -> WindowState
fn clone(&self) -> WindowState
Returns 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 WindowState
impl PartialOrd for WindowState
fn partial_cmp(&self, other: &WindowState) -> Option<Ordering>
fn partial_cmp(&self, other: &WindowState) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &WindowState) -> bool
fn lt(&self, other: &WindowState) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &WindowState) -> bool
fn le(&self, other: &WindowState) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &WindowState) -> bool
fn gt(&self, other: &WindowState) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &WindowState) -> bool
fn ge(&self, other: &WindowState) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for WindowState
impl Ord for WindowState
fn cmp(&self, other: &WindowState) -> Ordering
fn cmp(&self, other: &WindowState) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for WindowState
impl Hash for WindowState
fn 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 WindowState
impl Debug for WindowState
impl Binary for WindowState
impl Binary for WindowState
impl Octal for WindowState
impl Octal for WindowState
impl LowerHex for WindowState
impl LowerHex for WindowState
impl UpperHex for WindowState
impl UpperHex for WindowState
impl BitOr for WindowState
impl BitOr for WindowState
type Output = WindowState
The resulting type after applying the |
operator.
fn bitor(self, other: WindowState) -> WindowState
fn bitor(self, other: WindowState) -> WindowState
Returns the union of the two sets of flags.
impl BitOrAssign for WindowState
impl BitOrAssign for WindowState
fn bitor_assign(&mut self, other: WindowState)
fn bitor_assign(&mut self, other: WindowState)
Adds the set of flags.
impl BitXor for WindowState
impl BitXor for WindowState
type Output = WindowState
The resulting type after applying the ^
operator.
fn bitxor(self, other: WindowState) -> WindowState
fn bitxor(self, other: WindowState) -> WindowState
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for WindowState
impl BitXorAssign for WindowState
fn bitxor_assign(&mut self, other: WindowState)
fn bitxor_assign(&mut self, other: WindowState)
Toggles the set of flags.
impl BitAnd for WindowState
impl BitAnd for WindowState
type Output = WindowState
The resulting type after applying the &
operator.
fn bitand(self, other: WindowState) -> WindowState
fn bitand(self, other: WindowState) -> WindowState
Returns the intersection between the two sets of flags.
impl BitAndAssign for WindowState
impl BitAndAssign for WindowState
fn bitand_assign(&mut self, other: WindowState)
fn bitand_assign(&mut self, other: WindowState)
Disables all flags disabled in the set.
impl Sub for WindowState
impl Sub for WindowState
type Output = WindowState
The resulting type after applying the -
operator.
fn sub(self, other: WindowState) -> WindowState
fn sub(self, other: WindowState) -> WindowState
Returns the set difference of the two sets of flags.
impl SubAssign for WindowState
impl SubAssign for WindowState
fn sub_assign(&mut self, other: WindowState)
fn sub_assign(&mut self, other: WindowState)
Disables all flags enabled in the set.
impl Not for WindowState
impl Not for WindowState
type Output = WindowState
The resulting type after applying the !
operator.
fn not(self) -> WindowState
fn not(self) -> WindowState
Returns the complement of this set of flags.
impl Extend<WindowState> for WindowState
impl Extend<WindowState> for WindowState
fn extend<T: IntoIterator<Item = WindowState>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = WindowState>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<WindowState> for WindowState
impl FromIterator<WindowState> for WindowState
fn from_iter<T: IntoIterator<Item = WindowState>>(iterator: T) -> WindowState
fn from_iter<T: IntoIterator<Item = WindowState>>(iterator: T) -> WindowState
Creates a value from an iterator. Read more
impl StaticType for WindowState
[src]
impl StaticType for WindowState
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl<'a> FromValueOptional<'a> for WindowState
[src]
impl<'a> FromValueOptional<'a> for WindowState
unsafe fn from_value_optional(value: &Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>
impl<'a> FromValue<'a> for WindowState
[src]
impl<'a> FromValue<'a> for WindowState
unsafe fn from_value(value: &Value) -> Self
[src]
unsafe fn from_value(value: &Value) -> Self
impl SetValue for WindowState
[src]
impl SetValue for WindowState
Auto Trait Implementations
impl Send for WindowState
impl Send for WindowState
impl Sync for WindowState
impl Sync for WindowState