libs/flake

KoInputDevice Class Reference

This class represents an input device. More...

#include <KoInputDevice.h>

List of all members.

Public Member Functions

 KoInputDevice ()
 KoInputDevice (QTabletEvent::TabletDevice device, QTabletEvent::PointerType pointer, qint64 uniqueTabletId=-1)
 KoInputDevice (const KoInputDevice &other)
 ~KoInputDevice ()
QTabletEvent::TabletDevice device () const
bool isMouse () const
bool operator!= (const KoInputDevice &) const
KoInputDeviceoperator= (const KoInputDevice &)
bool operator== (const KoInputDevice &) const
QTabletEvent::PointerType pointer () const
qint64 uniqueTabletId () const

Static Public Member Functions

static KoInputDevice eraser ()
static KoInputDevice mouse ()
static KoInputDevice stylus ()

Detailed Description

This class represents an input device.

A user can manipulate flake-shapes using a large variety of input devices. This ranges from a mouse to a paintbrush-like tool connected to a tablet. All of those need to be handled separately and be given their own tool instance to do their work.

See also:
KoToolFactory::inputDeviceAgnostic()

Definition at line 37 of file KoInputDevice.h.


Constructor & Destructor Documentation

KoInputDevice::KoInputDevice ( const KoInputDevice other  ) 

Copy constructor.

Definition at line 47 of file KoInputDevice.cpp.

KoInputDevice::KoInputDevice ( QTabletEvent::TabletDevice  device,
QTabletEvent::PointerType  pointer,
qint64  uniqueTabletId = -1 
) [explicit]

Constructor for a tablet.

Create a new input device with one of the many types that the tablet can have.

Parameters:
device the device as found on a QTabletEvent
pointer the pointer as found on a QTabletEvent
uniqueTabletId the uniqueId as found on a QTabletEvent

Definition at line 37 of file KoInputDevice.cpp.

KoInputDevice::KoInputDevice (  ) 

Constructor for the mouse as input device.

Definition at line 42 of file KoInputDevice.cpp.

KoInputDevice::~KoInputDevice (  ) 

Definition at line 53 of file KoInputDevice.cpp.


Member Function Documentation

QTabletEvent::TabletDevice KoInputDevice::device (  )  const

Return the tablet device used.

Definition at line 58 of file KoInputDevice.cpp.

KoInputDevice KoInputDevice::eraser (  )  [static]

Wacom eraser.

Definition at line 113 of file KoInputDevice.cpp.

bool KoInputDevice::isMouse (  )  const

Return if this is a mouse device.

Definition at line 73 of file KoInputDevice.cpp.

KoInputDevice KoInputDevice::mouse (  )  [static]

Standard mouse.

Definition at line 100 of file KoInputDevice.cpp.

bool KoInputDevice::operator!= ( const KoInputDevice other  )  const

not equal

Definition at line 85 of file KoInputDevice.cpp.

KoInputDevice & KoInputDevice::operator= ( const KoInputDevice other  ) 

assignment

Definition at line 90 of file KoInputDevice.cpp.

bool KoInputDevice::operator== ( const KoInputDevice other  )  const

equal

Definition at line 79 of file KoInputDevice.cpp.

QTabletEvent::PointerType KoInputDevice::pointer (  )  const

Return the pointer used.

Definition at line 63 of file KoInputDevice.cpp.

KoInputDevice KoInputDevice::stylus (  )  [static]

Wacom style/pen.

Definition at line 106 of file KoInputDevice.cpp.

qint64 KoInputDevice::uniqueTabletId (  )  const

Return the unique tablet id as registered by QTabletEvents.

Definition at line 68 of file KoInputDevice.cpp.


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