[−][src]Struct qt_core::MouseButton
This enum type describes the different mouse buttons.
C++ enum: Qt::MouseButton
.
This enum type describes the different mouse buttons.
Note: Some models of multi-button mice are pre-configured with high-numbered Buttons emulating keyboard sequences, for use in specific games. In order for these Buttons to be seen as actual 'Mouse Buttons', the device must be re-configured (using the vendor's configuration tool).
The MouseButtons type is a typedef for QFlags<MouseButton>. It stores an OR combination of MouseButton values.
See also KeyboardModifier and Modifier.
Methods
impl MouseButton
[src]
impl MouseButton
[src]
pub const NoButton: MouseButton
[src]
The button state does not refer to any button (see QMouseEvent::button()). (C++ enum variant: NoButton = 0
)
pub const LeftButton: MouseButton
[src]
The left button is pressed, or an event refers to the left button. (The left button may be the right button on left-handed mice.) (C++ enum variant: LeftButton = 1
)
pub const RightButton: MouseButton
[src]
The right button. (C++ enum variant: RightButton = 2
)
pub const MidButton: MouseButton
[src]
The middle button. (C++ enum variant: MidButton = 4
)
pub const MiddleButton: MouseButton
[src]
The middle button. (C++ enum variant: MiddleButton = 4
)
pub const BackButton: MouseButton
[src]
The 'Back' button. (Typically present on the 'thumb' side of a mouse with extra buttons. This is NOT the tilt wheel.) (C++ enum variant: BackButton = 8
)
pub const XButton1: MouseButton
[src]
The 'Back' Button. (C++ enum variant: XButton1 = 8
)
pub const ExtraButton1: MouseButton
[src]
The 'Back' Button. (C++ enum variant: ExtraButton1 = 8
)
pub const ForwardButton: MouseButton
[src]
The 'Forward' Button. (Typically present beside the 'Back' button, and also pressed by the thumb.) (C++ enum variant: ForwardButton = 16
)
pub const XButton2: MouseButton
[src]
The 'Forward Button. (C++ enum variant: XButton2 = 16
)
pub const ExtraButton2: MouseButton
[src]
The 'Forward' Button. (C++ enum variant: ExtraButton2 = 16
)
pub const TaskButton: MouseButton
[src]
The 'Task' Button. (C++ enum variant: TaskButton = 32
)
pub const ExtraButton3: MouseButton
[src]
The 'Task' Button. (C++ enum variant: ExtraButton3 = 32
)
pub const ExtraButton4: MouseButton
[src]
The 7th non-wheel Mouse Button. (C++ enum variant: ExtraButton4 = 64
)
pub const ExtraButton5: MouseButton
[src]
The 8th non-wheel Mouse Button. (C++ enum variant: ExtraButton5 = 128
)
pub const ExtraButton6: MouseButton
[src]
The 9th non-wheel Mouse Button. (C++ enum variant: ExtraButton6 = 256
)
pub const ExtraButton7: MouseButton
[src]
The 10th non-wheel Mouse Button. (C++ enum variant: ExtraButton7 = 512
)
pub const ExtraButton8: MouseButton
[src]
The 11th non-wheel Mouse Button. (C++ enum variant: ExtraButton8 = 1024
)
pub const ExtraButton9: MouseButton
[src]
The 12th non-wheel Mouse Button. (C++ enum variant: ExtraButton9 = 2048
)
pub const ExtraButton10: MouseButton
[src]
The 13th non-wheel Mouse Button. (C++ enum variant: ExtraButton10 = 4096
)
pub const ExtraButton11: MouseButton
[src]
The 14th non-wheel Mouse Button. (C++ enum variant: ExtraButton11 = 8192
)
pub const ExtraButton12: MouseButton
[src]
The 15th non-wheel Mouse Button. (C++ enum variant: ExtraButton12 = 16384
)
pub const ExtraButton13: MouseButton
[src]
The 16th non-wheel Mouse Button. (C++ enum variant: ExtraButton13 = 32768
)
pub const ExtraButton14: MouseButton
[src]
The 17th non-wheel Mouse Button. (C++ enum variant: ExtraButton14 = 65536
)
pub const ExtraButton15: MouseButton
[src]
The 18th non-wheel Mouse Button. (C++ enum variant: ExtraButton15 = 131072
)
pub const ExtraButton16: MouseButton
[src]
The 19th non-wheel Mouse Button. (C++ enum variant: ExtraButton16 = 262144
)
pub const ExtraButton17: MouseButton
[src]
The 20th non-wheel Mouse Button. (C++ enum variant: ExtraButton17 = 524288
)
pub const ExtraButton18: MouseButton
[src]
The 21st non-wheel Mouse Button. (C++ enum variant: ExtraButton18 = 1048576
)
pub const ExtraButton19: MouseButton
[src]
The 22nd non-wheel Mouse Button. (C++ enum variant: ExtraButton19 = 2097152
)
pub const ExtraButton20: MouseButton
[src]
The 23rd non-wheel Mouse Button. (C++ enum variant: ExtraButton20 = 4194304
)
pub const ExtraButton21: MouseButton
[src]
The 24th non-wheel Mouse Button. (C++ enum variant: ExtraButton21 = 8388608
)
pub const ExtraButton22: MouseButton
[src]
The 25th non-wheel Mouse Button. (C++ enum variant: ExtraButton22 = 16777216
)
pub const ExtraButton23: MouseButton
[src]
The 26th non-wheel Mouse Button. (C++ enum variant: ExtraButton23 = 33554432
)
pub const ExtraButton24: MouseButton
[src]
The 27th non-wheel Mouse Button. (C++ enum variant: ExtraButton24 = 67108864
)
pub const AllButtons: MouseButton
[src]
This value corresponds to a mask of all possible mouse buttons. Use to set the 'acceptedButtons' property of a MouseArea to accept ALL mouse buttons. (C++ enum variant: AllButtons = 134217727
)
pub const MaxMouseButton: MouseButton
[src]
C++ enum variant: MaxMouseButton = 67108864
pub const MouseButtonMask: MouseButton
[src]
C++ enum variant: MouseButtonMask = -1
Trait Implementations
impl<T: Into<QFlags<MouseButton>>> BitOr<T> for MouseButton
[src]
type Output = QFlags<MouseButton>
The resulting type after applying the |
operator.
fn bitor(self, rhs: T) -> QFlags<MouseButton>
[src]
impl Clone for MouseButton
[src]
fn clone(&self) -> MouseButton
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MouseButton
[src]
impl Debug for MouseButton
[src]
impl Eq for MouseButton
[src]
impl From<MouseButton> for c_int
[src]
fn from(value: MouseButton) -> Self
[src]
impl From<MouseButton> for QFlags<MouseButton>
[src]
fn from(value: MouseButton) -> Self
[src]
impl From<i32> for MouseButton
[src]
impl PartialEq<MouseButton> for MouseButton
[src]
fn eq(&self, other: &MouseButton) -> bool
[src]
fn ne(&self, other: &MouseButton) -> bool
[src]
impl StructuralEq for MouseButton
[src]
impl StructuralPartialEq for MouseButton
[src]
Auto Trait Implementations
impl RefUnwindSafe for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Unpin for MouseButton
impl UnwindSafe for MouseButton
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,