[−][src]Struct qt_core::KeyboardModifier
This enum describes the modifier keys.
C++ enum: Qt::KeyboardModifier
.
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]
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]
fn from(value: KeyboardModifier) -> Self
[src]
impl From<KeyboardModifier> for QFlags<KeyboardModifier>
[src]
fn from(value: KeyboardModifier) -> Self
[src]
impl Clone for KeyboardModifier
[src]
fn clone(&self) -> KeyboardModifier
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for KeyboardModifier
[src]
impl Eq for KeyboardModifier
[src]
impl PartialEq<KeyboardModifier> for KeyboardModifier
[src]
fn eq(&self, other: &KeyboardModifier) -> bool
[src]
fn ne(&self, other: &KeyboardModifier) -> bool
[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.
fn bitor(self, rhs: T) -> QFlags<KeyboardModifier>
[src]
Auto Trait Implementations
impl Send for KeyboardModifier
impl Sync for KeyboardModifier
impl Unpin for KeyboardModifier
impl UnwindSafe for KeyboardModifier
impl RefUnwindSafe for KeyboardModifier
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,