[][src]Struct qt_core::KeyboardModifier

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

This enum describes the modifier keys.

C++ enum: Qt::KeyboardModifier.

C++ documentation:

This enum describes the modifier keys.

Note: On macOS, the ControlModifier value corresponds to the Command keys on the keyboard, and the MetaModifier value corresponds to the Control keys. The KeypadModifier value will also be set when an arrow key is pressed as the arrow keys are considered part of the keypad.

Note: On Windows Keyboards, Qt::MetaModifier and Qt::Key_Meta are mapped to the Windows key.

The KeyboardModifiers type is a typedef for QFlags<KeyboardModifier>. It stores an OR combination of KeyboardModifier values.

See also MouseButton and Modifier.

Methods

impl KeyboardModifier[src]

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

impl KeyboardModifier[src]

pub const NoModifier: KeyboardModifier[src]

No modifier key is pressed. (C++ enum variant: NoModifier = 0)

pub const ShiftModifier: KeyboardModifier[src]

A Shift key on the keyboard is pressed. (C++ enum variant: ShiftModifier = 33554432)

pub const ControlModifier: KeyboardModifier[src]

A Ctrl key on the keyboard is pressed. (C++ enum variant: ControlModifier = 67108864)

pub const AltModifier: KeyboardModifier[src]

An Alt key on the keyboard is pressed. (C++ enum variant: AltModifier = 134217728)

pub const MetaModifier: KeyboardModifier[src]

A Meta key on the keyboard is pressed. (C++ enum variant: MetaModifier = 268435456)

pub const KeypadModifier: KeyboardModifier[src]

A keypad button is pressed. (C++ enum variant: KeypadModifier = 536870912)

pub const GroupSwitchModifier: KeyboardModifier[src]

X11 only. A Mode_switch key on the keyboard is pressed. (C++ enum variant: GroupSwitchModifier = 1073741824)

pub const KeyboardModifierMask: KeyboardModifier[src]

C++ enum variant: KeyboardModifierMask = -33554432

Trait Implementations

impl From<i32> for KeyboardModifier[src]

impl From<KeyboardModifier> for c_int[src]

impl From<KeyboardModifier> for QFlags<KeyboardModifier>[src]

impl Clone for KeyboardModifier[src]

impl Copy for KeyboardModifier[src]

impl Eq for KeyboardModifier[src]

impl PartialEq<KeyboardModifier> for KeyboardModifier[src]

impl Debug for KeyboardModifier[src]

impl<T: Into<QFlags<KeyboardModifier>>> BitOr<T> for KeyboardModifier[src]

type Output = QFlags<KeyboardModifier>

The resulting type after applying the | operator.

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]