|
KWin
|
#include <tablet_v2.h>
Public Types | |
| enum | Type { Pen = 0x140 , Eraser = 0x141 , Brush = 0x142 , Pencil = 0x143 , Airbrush = 0x144 , Finger = 0x145 , Mouse = 0x146 , Lens = 0x147 , Totem } |
| enum | Capability { Tilt = 1 , Pressure = 2 , Distance = 3 , Rotation = 4 , Slider = 5 , Wheel = 6 } |
Signals | |
| void | cursorChanged (const TabletCursorSourceV2 &cursor) |
Public Member Functions | |
| virtual | ~TabletToolV2Interface () |
| bool | hasCapability (Capability capability) const |
| void | setCurrentSurface (SurfaceInterface *surface) |
| SurfaceInterface * | currentSurface () const |
| bool | isClientSupported () const |
| quint32 | proximitySerial () const |
| std::optional< quint32 > | downSerial () const |
| void | sendProximityIn (TabletV2Interface *tablet) |
| void | sendProximityOut () |
| void | sendUp () |
| void | sendDown () |
| void | sendPressure (quint32 pressure) |
| void | sendDistance (quint32 distance) |
| void | sendTilt (qreal degreesX, qreal degreesY) |
| void | sendRotation (qreal degrees) |
| void | sendSlider (qint32 position) |
| void | sendWheel (qint32 degrees, qint32 clicks) |
| void | sendButton (quint32 button, bool pressed) |
| void | sendFrame (quint32 time) |
| void | sendMotion (const QPointF &pos) |
Static Public Member Functions | |
| static TabletToolV2Interface * | get (wl_resource *resource) |
Friends | |
| class | TabletSeatV2InterfacePrivate |
| class | TabletSeatV2Interface |
Definition at line 79 of file tablet_v2.h.
| Enumerator | |
|---|---|
| Tilt | Tilt axeis. |
| Pressure | Pressure axis. |
| Distance | Distance axis. |
| Rotation | Z-rotation axis. |
| Slider | Slider axis. |
| Wheel | Wheel axis. |
Definition at line 98 of file tablet_v2.h.
| Enumerator | |
|---|---|
| Pen | Pen. |
| Eraser | Eraser. |
| Brush | Brush. |
| Pencil | Pencil. |
| Airbrush | Airbrush. |
| Finger | Finger. |
| Mouse | Mouse. |
| Lens | Lens. |
| Totem | |
Definition at line 85 of file tablet_v2.h.
|
virtual |
Definition at line 242 of file tablet_v2.cpp.
| SurfaceInterface * KWin::TabletToolV2Interface::currentSurface | ( | ) | const |
Definition at line 263 of file tablet_v2.cpp.
|
signal |
| std::optional< quint32 > KWin::TabletToolV2Interface::downSerial | ( | ) | const |
Definition at line 299 of file tablet_v2.cpp.
|
static |
Definition at line 250 of file tablet_v2.cpp.
| bool KWin::TabletToolV2Interface::hasCapability | ( | Capability | capability | ) | const |
Definition at line 258 of file tablet_v2.cpp.
| bool KWin::TabletToolV2Interface::isClientSupported | ( | ) | const |
Definition at line 304 of file tablet_v2.cpp.
| quint32 KWin::TabletToolV2Interface::proximitySerial | ( | ) | const |
Definition at line 294 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendButton | ( | quint32 | button, |
| bool | pressed ) |
Definition at line 309 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendDistance | ( | quint32 | distance | ) |
Definition at line 328 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendDown | ( | ) |
Definition at line 402 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendFrame | ( | quint32 | time | ) |
Definition at line 335 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendMotion | ( | const QPointF & | pos | ) |
Definition at line 320 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendPressure | ( | quint32 | pressure | ) |
Definition at line 348 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendProximityIn | ( | TabletV2Interface * | tablet | ) |
Definition at line 383 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendProximityOut | ( | ) |
Definition at line 394 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendRotation | ( | qreal | degrees | ) |
Definition at line 355 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendSlider | ( | qint32 | position | ) |
Definition at line 362 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendTilt | ( | qreal | degreesX, |
| qreal | degreesY ) |
Definition at line 369 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendUp | ( | ) |
Definition at line 411 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::sendWheel | ( | qint32 | degrees, |
| qint32 | clicks ) |
Definition at line 376 of file tablet_v2.cpp.
| void KWin::TabletToolV2Interface::setCurrentSurface | ( | SurfaceInterface * | surface | ) |
Sets the surface the events will be sent to.
Make sure the surface supports being sent events to.
Definition at line 268 of file tablet_v2.cpp.
|
friend |
Definition at line 146 of file tablet_v2.h.
|
friend |
Definition at line 145 of file tablet_v2.h.