[][src]Struct qt_core::ShortcutContext

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

For a QEvent::Shortcut event to occur, the shortcut's key sequence must be entered by the user in a context where the shortcut is active. The possible contexts are these:

C++ enum: Qt::ShortcutContext.

C++ documentation:

For a QEvent::Shortcut event to occur, the shortcut's key sequence must be entered by the user in a context where the shortcut is active. The possible contexts are these:

Methods

impl ShortcutContext[src]

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

impl ShortcutContext[src]

pub const WidgetShortcut: ShortcutContext[src]

The shortcut is active when its parent widget has focus. (C++ enum variant: WidgetShortcut = 0)

pub const WindowShortcut: ShortcutContext[src]

The shortcut is active when its parent widget is a logical subwidget of the active top-level window. (C++ enum variant: WindowShortcut = 1)

pub const ApplicationShortcut: ShortcutContext[src]

The shortcut is active when one of the applications windows are active. (C++ enum variant: ApplicationShortcut = 2)

pub const WidgetWithChildrenShortcut: ShortcutContext[src]

The shortcut is active when its parent widget, or any of its children has focus. Children which are top-level widgets, except pop-ups, are not affected by this shortcut context. (C++ enum variant: WidgetWithChildrenShortcut = 3)

Trait Implementations

impl Clone for ShortcutContext[src]

impl Copy for ShortcutContext[src]

impl Debug for ShortcutContext[src]

impl Eq for ShortcutContext[src]

impl From<ShortcutContext> for c_int[src]

impl From<i32> for ShortcutContext[src]

impl PartialEq<ShortcutContext> for ShortcutContext[src]

impl StructuralEq for ShortcutContext[src]

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