[][src]Struct qt_gui::q_window::Visibility

#[repr(transparent)]pub struct Visibility(_);

This enum describes what part of the screen the window occupies or should occupy.

C++ enum: QWindow::Visibility.

C++ documentation:

This enum describes what part of the screen the window occupies or should occupy.

This enum was introduced or modified in Qt 5.1.

Methods

impl Visibility[src]

pub fn to_int(&self) -> c_int[src]

impl Visibility[src]

pub const Hidden: Visibility[src]

The window is not visible in any way, however it may remember a latent visibility which can be restored by setting AutomaticVisibility. (C++ enum variant: Hidden = 0)

pub const AutomaticVisibility: Visibility[src]

This means to give the window a default visible state, which might be fullscreen or windowed depending on the platform. It can be given as a parameter to setVisibility but will never be read back from the visibility accessor. (C++ enum variant: AutomaticVisibility = 1)

pub const Windowed: Visibility[src]

The window occupies part of the screen, but not necessarily the entire screen. This state will occur only on windowing systems which support showing multiple windows simultaneously. In this state it is possible for the user to move and resize the window manually, if WindowFlags permit it and if it is supported by the windowing system. (C++ enum variant: Windowed = 2)

pub const Minimized: Visibility[src]

The window is reduced to an entry or icon on the task bar, dock, task list or desktop, depending on how the windowing system handles minimized windows. (C++ enum variant: Minimized = 3)

pub const Maximized: Visibility[src]

The window occupies one entire screen, and the titlebar is still visible. On most windowing systems this is the state achieved by clicking the maximize button on the toolbar. (C++ enum variant: Maximized = 4)

pub const FullScreen: Visibility[src]

The window occupies one entire screen, is not resizable, and there is no titlebar. On some platforms which do not support showing multiple simultaneous windows, this can be the usual visibility when the window is not hidden. (C++ enum variant: FullScreen = 5)

Trait Implementations

impl Clone for Visibility[src]

impl Copy for Visibility[src]

impl Debug for Visibility[src]

impl Eq for Visibility[src]

impl From<Visibility> for c_int[src]

impl From<i32> for Visibility[src]

impl PartialEq<Visibility> for Visibility[src]

impl StructuralEq for Visibility[src]

impl StructuralPartialEq for Visibility[src]

Auto Trait Implementations

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, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.