KWin
Loading...
Searching...
No Matches
Public Types | Signals | Public Member Functions | Static Public Member Functions | Friends | List of all members
KWin::TabletToolV2Interface Class Reference

#include <tablet_v2.h>

Inheritance diagram for KWin::TabletToolV2Interface:

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)
 
SurfaceInterfacecurrentSurface () 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 TabletToolV2Interfaceget (wl_resource *resource)
 

Friends

class TabletSeatV2InterfacePrivate
 
class TabletSeatV2Interface
 

Detailed Description

Definition at line 79 of file tablet_v2.h.

Member Enumeration Documentation

◆ Capability

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.

◆ Type

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.

Constructor & Destructor Documentation

◆ ~TabletToolV2Interface()

KWin::TabletToolV2Interface::~TabletToolV2Interface ( )
virtual

Definition at line 242 of file tablet_v2.cpp.

Member Function Documentation

◆ currentSurface()

SurfaceInterface * KWin::TabletToolV2Interface::currentSurface ( ) const

Definition at line 263 of file tablet_v2.cpp.

◆ cursorChanged

void KWin::TabletToolV2Interface::cursorChanged ( const TabletCursorSourceV2 & cursor)
signal

◆ downSerial()

std::optional< quint32 > KWin::TabletToolV2Interface::downSerial ( ) const

Definition at line 299 of file tablet_v2.cpp.

◆ get()

TabletToolV2Interface * KWin::TabletToolV2Interface::get ( wl_resource * resource)
static

Definition at line 250 of file tablet_v2.cpp.

◆ hasCapability()

bool KWin::TabletToolV2Interface::hasCapability ( Capability capability) const

Definition at line 258 of file tablet_v2.cpp.

◆ isClientSupported()

bool KWin::TabletToolV2Interface::isClientSupported ( ) const

Definition at line 304 of file tablet_v2.cpp.

◆ proximitySerial()

quint32 KWin::TabletToolV2Interface::proximitySerial ( ) const

Definition at line 294 of file tablet_v2.cpp.

◆ sendButton()

void KWin::TabletToolV2Interface::sendButton ( quint32 button,
bool pressed )

Definition at line 309 of file tablet_v2.cpp.

◆ sendDistance()

void KWin::TabletToolV2Interface::sendDistance ( quint32 distance)

Definition at line 328 of file tablet_v2.cpp.

◆ sendDown()

void KWin::TabletToolV2Interface::sendDown ( )

Definition at line 402 of file tablet_v2.cpp.

◆ sendFrame()

void KWin::TabletToolV2Interface::sendFrame ( quint32 time)

Definition at line 335 of file tablet_v2.cpp.

◆ sendMotion()

void KWin::TabletToolV2Interface::sendMotion ( const QPointF & pos)

Definition at line 320 of file tablet_v2.cpp.

◆ sendPressure()

void KWin::TabletToolV2Interface::sendPressure ( quint32 pressure)

Definition at line 348 of file tablet_v2.cpp.

◆ sendProximityIn()

void KWin::TabletToolV2Interface::sendProximityIn ( TabletV2Interface * tablet)

Definition at line 383 of file tablet_v2.cpp.

◆ sendProximityOut()

void KWin::TabletToolV2Interface::sendProximityOut ( )

Definition at line 394 of file tablet_v2.cpp.

◆ sendRotation()

void KWin::TabletToolV2Interface::sendRotation ( qreal degrees)

Definition at line 355 of file tablet_v2.cpp.

◆ sendSlider()

void KWin::TabletToolV2Interface::sendSlider ( qint32 position)

Definition at line 362 of file tablet_v2.cpp.

◆ sendTilt()

void KWin::TabletToolV2Interface::sendTilt ( qreal degreesX,
qreal degreesY )

Definition at line 369 of file tablet_v2.cpp.

◆ sendUp()

void KWin::TabletToolV2Interface::sendUp ( )

Definition at line 411 of file tablet_v2.cpp.

◆ sendWheel()

void KWin::TabletToolV2Interface::sendWheel ( qint32 degrees,
qint32 clicks )

Definition at line 376 of file tablet_v2.cpp.

◆ setCurrentSurface()

void KWin::TabletToolV2Interface::setCurrentSurface ( SurfaceInterface * surface)

Sets the surface the events will be sent to.

Make sure the surface supports being sent events to.

See also
TabletV2Interface::isSurfaceSupported

Definition at line 268 of file tablet_v2.cpp.

Friends And Related Symbol Documentation

◆ TabletSeatV2Interface

friend class TabletSeatV2Interface
friend

Definition at line 146 of file tablet_v2.h.

◆ TabletSeatV2InterfacePrivate

friend class TabletSeatV2InterfacePrivate
friend

Definition at line 145 of file tablet_v2.h.


The documentation for this class was generated from the following files: