Struct qt_core::WindowModality
source · pub struct WindowModality(/* private fields */);
Expand description
This enum specifies the behavior of a modal window. A modal window is one that blocks input to other windows. Note that windows that are children of a modal window are not blocked.
C++ enum: Qt::WindowModality
.
This enum specifies the behavior of a modal window. A modal window is one that blocks input to other windows. Note that windows that are children of a modal window are not blocked.
The values are:
See also QWidget::windowModality and QDialog.
Implementations§
source§impl WindowModality
impl WindowModality
sourcepub const NonModal: WindowModality = _
pub const NonModal: WindowModality = _
The window is not modal and does not block input to other windows. (C++ enum variant: NonModal = 0
)
sourcepub const WindowModal: WindowModality = _
pub const WindowModal: WindowModality = _
The window is modal to a single window hierarchy and blocks input to its parent window, all grandparent windows, and all siblings of its parent and grandparent windows. (C++ enum variant: WindowModal = 1
)
sourcepub const ApplicationModal: WindowModality = _
pub const ApplicationModal: WindowModality = _
The window is modal to the application and blocks input to all windows. (C++ enum variant: ApplicationModal = 2
)
Trait Implementations§
source§impl Clone for WindowModality
impl Clone for WindowModality
source§fn clone(&self) -> WindowModality
fn clone(&self) -> WindowModality
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WindowModality
impl Debug for WindowModality
source§impl From<WindowModality> for c_int
impl From<WindowModality> for c_int
source§fn from(value: WindowModality) -> Self
fn from(value: WindowModality) -> Self
source§impl From<i32> for WindowModality
impl From<i32> for WindowModality
source§impl PartialEq for WindowModality
impl PartialEq for WindowModality
source§fn eq(&self, other: &WindowModality) -> bool
fn eq(&self, other: &WindowModality) -> bool
self
and other
values to be equal, and is used
by ==
.