[][src]Struct qt_core::WindowModality

#[repr(transparent)]
pub struct 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.

C++ enum: Qt::WindowModality.

C++ documentation:

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.

Methods

impl WindowModality[src]

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

impl WindowModality[src]

pub const NonModal: WindowModality[src]

The window is not modal and does not block input to other windows. (C++ enum variant: NonModal = 0)

pub const WindowModal: WindowModality[src]

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)

pub const ApplicationModal: WindowModality[src]

The window is modal to the application and blocks input to all windows. (C++ enum variant: ApplicationModal = 2)

Trait Implementations

impl From<i32> for WindowModality[src]

impl From<WindowModality> for c_int[src]

impl Clone for WindowModality[src]

impl Copy for WindowModality[src]

impl Eq for WindowModality[src]

impl PartialEq<WindowModality> for WindowModality[src]

impl Debug for WindowModality[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<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.

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

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

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

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

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]