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 more