Struct qt_gui::q_tablet_event::TabletDevice
source · pub struct TabletDevice(/* private fields */);
Expand description
This enum defines what type of device is generating the event.
C++ enum: QTabletEvent::TabletDevice
.
This enum defines what type of device is generating the event.
This enum was introduced or modified in Qt 4.1.
Implementations§
source§impl TabletDevice
impl TabletDevice
sourcepub const NoDevice: TabletDevice = _
pub const NoDevice: TabletDevice = _
No device, or an unknown device. (C++ enum variant: NoDevice = 0
)
sourcepub const Puck: TabletDevice = _
pub const Puck: TabletDevice = _
A Puck (a device that is similar to a flat mouse with a transparent circle with cross-hairs). (C++ enum variant: Puck = 1
)
sourcepub const Stylus: TabletDevice = _
pub const Stylus: TabletDevice = _
A Stylus. (C++ enum variant: Stylus = 2
)
sourcepub const Airbrush: TabletDevice = _
pub const Airbrush: TabletDevice = _
An airbrush (C++ enum variant: Airbrush = 3
)
sourcepub const FourDMouse: TabletDevice = _
pub const FourDMouse: TabletDevice = _
A 4D Mouse. (C++ enum variant: FourDMouse = 4
)
sourcepub const XFreeEraser: TabletDevice = _
pub const XFreeEraser: TabletDevice = _
C++ enum variant: XFreeEraser = 5
sourcepub const RotationStylus: TabletDevice = _
pub const RotationStylus: TabletDevice = _
A special stylus that also knows about rotation (a 6D stylus). (C++ enum variant: RotationStylus = 6
)
Trait Implementations§
source§impl Clone for TabletDevice
impl Clone for TabletDevice
source§fn clone(&self) -> TabletDevice
fn clone(&self) -> TabletDevice
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TabletDevice
impl Debug for TabletDevice
source§impl From<TabletDevice> for c_int
impl From<TabletDevice> for c_int
source§fn from(value: TabletDevice) -> Self
fn from(value: TabletDevice) -> Self
Converts to this type from the input type.
source§impl From<i32> for TabletDevice
impl From<i32> for TabletDevice
source§impl PartialEq for TabletDevice
impl PartialEq for TabletDevice
source§fn eq(&self, other: &TabletDevice) -> bool
fn eq(&self, other: &TabletDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TabletDevice
impl Eq for TabletDevice
impl StructuralEq for TabletDevice
impl StructuralPartialEq for TabletDevice
Auto Trait Implementations§
impl RefUnwindSafe for TabletDevice
impl Send for TabletDevice
impl Sync for TabletDevice
impl Unpin for TabletDevice
impl UnwindSafe for TabletDevice
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more