[][src]Struct gdk::WindowState

pub struct WindowState { /* fields omitted */ }

Specifies the state of a toplevel window.

Implementations

impl WindowState[src]

pub const WITHDRAWN: WindowState[src]

the window is not shown.

pub const ICONIFIED: WindowState[src]

the window is minimized.

pub const MAXIMIZED: WindowState[src]

the window is maximized.

pub const STICKY: WindowState[src]

the window is sticky.

pub const FULLSCREEN: WindowState[src]

the window is maximized without decorations.

pub const ABOVE: WindowState[src]

the window is kept above other windows.

pub const BELOW: WindowState[src]

the window is kept below other windows.

pub const FOCUSED: WindowState[src]

the window is presented as focused (with active decorations).

pub const TILED: WindowState[src]

the window is in a tiled state, Since 3.10. Since 3.22.23, this is deprecated in favor of per-edge information.

pub const TOP_TILED: WindowState[src]

whether the top edge is tiled, Since 3.22.23

pub const TOP_RESIZABLE: WindowState[src]

whether the top edge is resizable, Since 3.22.23

pub const RIGHT_TILED: WindowState[src]

whether the right edge is tiled, Since 3.22.23

pub const RIGHT_RESIZABLE: WindowState[src]

whether the right edge is resizable, Since 3.22.23

pub const BOTTOM_TILED: WindowState[src]

whether the bottom edge is tiled, Since 3.22.23

pub const BOTTOM_RESIZABLE: WindowState[src]

whether the bottom edge is resizable, Since 3.22.23

pub const LEFT_TILED: WindowState[src]

whether the left edge is tiled, Since 3.22.23

pub const LEFT_RESIZABLE: WindowState[src]

whether the left edge is resizable, Since 3.22.23

pub const fn empty() -> WindowState[src]

Returns an empty set of flags

pub const fn all() -> WindowState[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<WindowState>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u32) -> WindowState[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u32) -> WindowState[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: WindowState) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: WindowState) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: WindowState)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: WindowState)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: WindowState)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: WindowState, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for WindowState[src]

impl BitAnd<WindowState> for WindowState[src]

type Output = WindowState

The resulting type after applying the & operator.

fn bitand(self, other: WindowState) -> WindowState[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<WindowState> for WindowState[src]

fn bitand_assign(&mut self, other: WindowState)[src]

Disables all flags disabled in the set.

impl BitOr<WindowState> for WindowState[src]

type Output = WindowState

The resulting type after applying the | operator.

fn bitor(self, other: WindowState) -> WindowState[src]

Returns the union of the two sets of flags.

impl BitOrAssign<WindowState> for WindowState[src]

fn bitor_assign(&mut self, other: WindowState)[src]

Adds the set of flags.

impl BitXor<WindowState> for WindowState[src]

type Output = WindowState

The resulting type after applying the ^ operator.

fn bitxor(self, other: WindowState) -> WindowState[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<WindowState> for WindowState[src]

fn bitxor_assign(&mut self, other: WindowState)[src]

Toggles the set of flags.

impl Clone for WindowState[src]

impl Copy for WindowState[src]

impl Debug for WindowState[src]

impl Eq for WindowState[src]

impl Extend<WindowState> for WindowState[src]

impl FromIterator<WindowState> for WindowState[src]

impl<'a> FromValue<'a> for WindowState[src]

impl<'a> FromValueOptional<'a> for WindowState[src]

impl Hash for WindowState[src]

impl LowerHex for WindowState[src]

impl Not for WindowState[src]

type Output = WindowState

The resulting type after applying the ! operator.

fn not(self) -> WindowState[src]

Returns the complement of this set of flags.

impl Octal for WindowState[src]

impl Ord for WindowState[src]

impl PartialEq<WindowState> for WindowState[src]

impl PartialOrd<WindowState> for WindowState[src]

impl SetValue for WindowState[src]

impl StaticType for WindowState[src]

impl StructuralEq for WindowState[src]

impl StructuralPartialEq for WindowState[src]

impl Sub<WindowState> for WindowState[src]

type Output = WindowState

The resulting type after applying the - operator.

fn sub(self, other: WindowState) -> WindowState[src]

Returns the set difference of the two sets of flags.

impl SubAssign<WindowState> for WindowState[src]

fn sub_assign(&mut self, other: WindowState)[src]

Disables all flags enabled in the set.

impl UpperHex for WindowState[src]

Auto Trait Implementations

impl RefUnwindSafe for WindowState

impl Send for WindowState

impl Sync for WindowState

impl Unpin for WindowState

impl UnwindSafe for WindowState

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.