[][src]Struct qt_widgets::q_graphics_item::PanelModality

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

This enum specifies the behavior of a modal panel. A modal panel is one that blocks input to other panels. Note that items that are children of a modal panel are not blocked.

C++ enum: QGraphicsItem::PanelModality.

C++ documentation:

This enum specifies the behavior of a modal panel. A modal panel is one that blocks input to other panels. Note that items that are children of a modal panel are not blocked.

The values are:

This enum was introduced or modified in Qt 4.6.

See also QGraphicsItem::setPanelModality(), QGraphicsItem::panelModality(), and QGraphicsItem::ItemIsPanel.

Methods

impl PanelModality[src]

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

impl PanelModality[src]

pub const NonModal: PanelModality[src]

The panel is not modal and does not block input to other panels. This is the default value for panels. (C++ enum variant: NonModal = 0)

pub const PanelModal: PanelModality[src]

The panel is modal to a single item hierarchy and blocks input to its parent pane, all grandparent panels, and all siblings of its parent and grandparent panels. (C++ enum variant: PanelModal = 1)

pub const SceneModal: PanelModality[src]

The window is modal to the entire scene and blocks input to all panels. (C++ enum variant: SceneModal = 2)

Trait Implementations

impl Clone for PanelModality[src]

impl Copy for PanelModality[src]

impl Debug for PanelModality[src]

impl Eq for PanelModality[src]

impl From<PanelModality> for c_int[src]

impl From<i32> for PanelModality[src]

impl PartialEq<PanelModality> for PanelModality[src]

impl StructuralEq for PanelModality[src]

impl StructuralPartialEq for PanelModality[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.