Struct qt_gui::q_window::Visibility
source · pub struct Visibility(/* private fields */);
Expand description
This enum describes what part of the screen the window occupies or should occupy.
C++ enum: QWindow::Visibility
.
This enum describes what part of the screen the window occupies or should occupy.
This enum was introduced or modified in Qt 5.1.
Implementations§
source§impl Visibility
impl Visibility
sourcepub const Hidden: Visibility = _
pub const Hidden: Visibility = _
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
)
sourcepub const AutomaticVisibility: Visibility = _
pub const AutomaticVisibility: Visibility = _
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
)
sourcepub const Windowed: Visibility = _
pub const Windowed: Visibility = _
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
)
sourcepub const Minimized: Visibility = _
pub const Minimized: Visibility = _
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
)
sourcepub const Maximized: Visibility = _
pub const Maximized: Visibility = _
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
)
sourcepub const FullScreen: Visibility = _
pub const FullScreen: Visibility = _
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§
source§impl Clone for Visibility
impl Clone for Visibility
source§fn clone(&self) -> Visibility
fn clone(&self) -> Visibility
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Visibility
impl Debug for Visibility
source§impl From<Visibility> for c_int
impl From<Visibility> for c_int
source§fn from(value: Visibility) -> Self
fn from(value: Visibility) -> Self
source§impl From<i32> for Visibility
impl From<i32> for Visibility
source§impl PartialEq for Visibility
impl PartialEq for Visibility
source§fn eq(&self, other: &Visibility) -> bool
fn eq(&self, other: &Visibility) -> bool
self
and other
values to be equal, and is used
by ==
.