[][src]Struct qt_core::Modifier

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

This enum provides shorter names for the keyboard modifier keys supported by Qt.

C++ enum: Qt::Modifier.

C++ documentation:

This enum provides shorter names for the keyboard modifier keys supported by Qt.

Note: On macOS, the CTRL value corresponds to the Command keys on the keyboard, and the META value corresponds to the Control keys.

See also KeyboardModifier and MouseButton.

Methods

impl Modifier[src]

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

impl Modifier[src]

pub const META: Modifier[src]

The Meta keys. (C++ enum variant: META = 268435456)

pub const SHIFT: Modifier[src]

The Shift keys provided on all standard keyboards. (C++ enum variant: SHIFT = 33554432)

pub const CTRL: Modifier[src]

The Ctrl keys. (C++ enum variant: CTRL = 67108864)

pub const ALT: Modifier[src]

The normal Alt keys, but not keys like AltGr. (C++ enum variant: ALT = 134217728)

pub const MODIFIERMASK: Modifier[src]

C++ enum variant: MODIFIER_MASK = -33554432

pub const UNICODEACCEL: Modifier[src]

The shortcut is specified as a Unicode code point, not as a Qt Key. (C++ enum variant: UNICODE_ACCEL = 0)

Trait Implementations

impl From<i32> for Modifier[src]

impl From<Modifier> for c_int[src]

impl Clone for Modifier[src]

impl Copy for Modifier[src]

impl Eq for Modifier[src]

impl PartialEq<Modifier> for Modifier[src]

impl Debug for Modifier[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]