KWin
|
#include <device.h>
Signals | |
void | tapButtonMapChanged () |
void | calibrationMatrixChanged () |
void | orientationChanged () |
void | outputNameChanged () |
void | leftHandedChanged () |
void | disableWhileTypingChanged () |
void | pointerAccelerationChanged () |
void | pointerAccelerationProfileChanged () |
void | enabledChanged () |
void | tapToClickChanged () |
void | tapAndDragChanged () |
void | tapDragLockChanged () |
void | middleEmulationChanged () |
void | naturalScrollChanged () |
void | scrollMethodChanged () |
void | scrollButtonChanged () |
void | scrollFactorChanged () |
void | clickMethodChanged () |
void | outputAreaChanged () |
void | mapToWorkspaceChanged () |
![]() | |
void | keyChanged (quint32 key, InputRedirection::KeyboardKeyState, std::chrono::microseconds time, InputDevice *device) |
void | pointerButtonChanged (quint32 button, InputRedirection::PointerButtonState state, std::chrono::microseconds time, InputDevice *device) |
void | pointerMotionAbsolute (const QPointF &position, std::chrono::microseconds time, InputDevice *device) |
void | pointerMotion (const QPointF &delta, const QPointF &deltaNonAccelerated, std::chrono::microseconds time, InputDevice *device) |
void | pointerAxisChanged (InputRedirection::PointerAxis axis, qreal delta, qint32 deltaV120, InputRedirection::PointerAxisSource source, std::chrono::microseconds time, InputDevice *device) |
void | pointerFrame (InputDevice *device) |
void | touchFrame (InputDevice *device) |
void | touchCanceled (InputDevice *device) |
void | touchDown (qint32 id, const QPointF &absolutePos, std::chrono::microseconds time, InputDevice *device) |
void | touchUp (qint32 id, std::chrono::microseconds time, InputDevice *device) |
void | touchMotion (qint32 id, const QPointF &absolutePos, std::chrono::microseconds time, InputDevice *device) |
void | swipeGestureBegin (int fingerCount, std::chrono::microseconds time, InputDevice *device) |
void | swipeGestureUpdate (const QPointF &delta, std::chrono::microseconds time, InputDevice *device) |
void | swipeGestureEnd (std::chrono::microseconds time, InputDevice *device) |
void | swipeGestureCancelled (std::chrono::microseconds time, InputDevice *device) |
void | pinchGestureBegin (int fingerCount, std::chrono::microseconds time, InputDevice *device) |
void | pinchGestureUpdate (qreal scale, qreal angleDelta, const QPointF &delta, std::chrono::microseconds time, InputDevice *device) |
void | pinchGestureEnd (std::chrono::microseconds time, InputDevice *device) |
void | pinchGestureCancelled (std::chrono::microseconds time, InputDevice *device) |
void | holdGestureBegin (int fingerCount, std::chrono::microseconds time, InputDevice *device) |
void | holdGestureEnd (std::chrono::microseconds time, InputDevice *device) |
void | holdGestureCancelled (std::chrono::microseconds time, InputDevice *device) |
void | switchToggledOn (std::chrono::microseconds time, InputDevice *device) |
void | switchToggledOff (std::chrono::microseconds time, InputDevice *device) |
void | tabletToolEvent (InputRedirection::TabletEventType type, const QPointF &pos, qreal pressure, int xTilt, int yTilt, qreal rotation, bool tipDown, bool tipNear, const TabletToolId &tabletToolId, std::chrono::microseconds time) |
void | tabletToolButtonEvent (uint button, bool isPressed, const TabletToolId &tabletToolId, std::chrono::microseconds time) |
void | tabletPadButtonEvent (uint button, bool isPressed, const TabletPadId &tabletPadId, std::chrono::microseconds time) |
void | tabletPadStripEvent (int number, int position, bool isFinger, const TabletPadId &tabletPadId, std::chrono::microseconds time) |
void | tabletPadRingEvent (int number, int position, bool isFinger, const TabletPadId &tabletPadId, std::chrono::microseconds time) |
Public Member Functions | |
Device (libinput_device *device, QObject *parent=nullptr) | |
~Device () override | |
bool | isKeyboard () const override |
bool | isAlphaNumericKeyboard () const |
bool | isPointer () const override |
bool | isTouchpad () const override |
bool | isTouch () const override |
bool | isTabletTool () const override |
bool | isTabletPad () const override |
bool | supportsGesture () const |
QString | name () const override |
QString | sysName () const override |
QString | outputName () const override |
QSizeF | size () const |
quint32 | product () const |
quint32 | vendor () const |
Qt::MouseButtons | supportedButtons () const |
int | tapFingerCount () const |
bool | tapToClickEnabledByDefault () const |
bool | isTapToClick () const |
void | setTapToClick (bool set) |
bool | tapAndDragEnabledByDefault () const |
bool | isTapAndDrag () const |
void | setTapAndDrag (bool set) |
bool | tapDragLockEnabledByDefault () const |
bool | isTapDragLock () const |
void | setTapDragLock (bool set) |
bool | supportsDisableWhileTyping () const |
bool | disableWhileTypingEnabledByDefault () const |
bool | supportsPointerAcceleration () const |
bool | supportsLeftHanded () const |
bool | supportsCalibrationMatrix () const |
bool | supportsDisableEvents () const |
bool | supportsDisableEventsOnExternalMouse () const |
bool | supportsMiddleEmulation () const |
bool | supportsNaturalScroll () const |
bool | supportsScrollTwoFinger () const |
bool | supportsScrollEdge () const |
bool | supportsScrollOnButtonDown () const |
bool | leftHandedEnabledByDefault () const |
bool | middleEmulationEnabledByDefault () const |
bool | naturalScrollEnabledByDefault () const |
enum libinput_config_scroll_method | defaultScrollMethod () const |
quint32 | defaultScrollMethodToInt () const |
bool | scrollTwoFingerEnabledByDefault () const |
bool | scrollEdgeEnabledByDefault () const |
bool | scrollOnButtonDownEnabledByDefault () const |
bool | supportsLmrTapButtonMap () const |
bool | lmrTapButtonMapEnabledByDefault () const |
void | setLmrTapButtonMap (bool set) |
bool | lmrTapButtonMap () const |
quint32 | defaultScrollButton () const |
bool | isMiddleEmulation () const |
void | setMiddleEmulation (bool set) |
bool | isNaturalScroll () const override |
void | setNaturalScroll (bool set) |
void | setScrollMethod (bool set, enum libinput_config_scroll_method method) |
bool | isScrollTwoFinger () const |
void | setScrollTwoFinger (bool set) |
bool | isScrollEdge () const |
void | setScrollEdge (bool set) |
bool | isScrollOnButtonDown () const |
void | setScrollOnButtonDown (bool set) |
void | activateScrollMethodFromInt (quint32 method) |
quint32 | scrollButton () const |
void | setScrollButton (quint32 button) |
qreal | scrollFactorDefault () const |
qreal | scrollFactor () const |
void | setScrollFactor (qreal factor) |
void | setDisableWhileTyping (bool set) |
bool | isDisableWhileTyping () const |
bool | isLeftHanded () const |
void | setLeftHanded (bool set) |
QMatrix4x4 | defaultCalibrationMatrix () const |
QMatrix4x4 | calibrationMatrix () const |
void | setCalibrationMatrix (const QMatrix4x4 &matrix) |
Qt::ScreenOrientation | defaultOrientation () const |
Qt::ScreenOrientation | orientation () const |
void | setOrientation (Qt::ScreenOrientation orientation) |
void | setOrientationDBus (int orientation) |
qreal | defaultPointerAcceleration () const |
qreal | pointerAcceleration () const |
void | setPointerAcceleration (qreal acceleration) |
void | setPointerAccelerationFromString (const QString &acceleration) |
QString | defaultPointerAccelerationToString () const |
bool | supportsPointerAccelerationProfileFlat () const |
bool | supportsPointerAccelerationProfileAdaptive () const |
bool | defaultPointerAccelerationProfileFlat () const |
bool | defaultPointerAccelerationProfileAdaptive () const |
bool | pointerAccelerationProfileFlat () const |
bool | pointerAccelerationProfileAdaptive () const |
void | setPointerAccelerationProfile (bool set, enum libinput_config_accel_profile profile) |
void | setPointerAccelerationProfileFlat (bool set) |
void | setPointerAccelerationProfileAdaptive (bool set) |
void | setPointerAccelerationProfileFromInt (quint32 profile) |
quint32 | defaultPointerAccelerationProfileToInt () const |
bool | supportsClickMethodAreas () const |
bool | defaultClickMethodAreas () const |
bool | isClickMethodAreas () const |
bool | supportsClickMethodClickfinger () const |
bool | defaultClickMethodClickfinger () const |
bool | isClickMethodClickfinger () const |
void | setClickMethod (bool set, enum libinput_config_click_method method) |
void | setClickMethodAreas (bool set) |
void | setClickMethodClickfinger (bool set) |
void | setClickMethodFromInt (quint32 method) |
libinput_config_click_method | defaultClickMethod () const |
quint32 | defaultClickMethodToInt () const |
bool | isEnabled () const override |
void | setEnabled (bool enabled) override |
bool | isEnabledByDefault () const |
libinput_device * | device () const |
void | setConfig (const KConfigGroup &config) |
void | setDefaultConfig (const KConfigGroup &config) |
void | setOutputName (const QString &uuid) override |
QString | defaultOutputName () const |
void | loadConfiguration () |
bool | isSwitch () const |
bool | isLidSwitch () const override |
bool | isTabletModeSwitch () const override |
int | stripsCount () const |
int | ringsCount () const |
void * | groupUserData () const |
Output * | output () const |
void | setOutput (Output *output) |
LEDs | leds () const override |
void | setLeds (LEDs leds) override |
QRectF | defaultOutputArea () const |
bool | supportsOutputArea () const |
QRectF | outputArea () const |
void | setOutputArea (const QRectF &outputArea) |
bool | defaultMapToWorkspace () const |
bool | isMapToWorkspace () const |
void | setMapToWorkspace (bool mapToWorkspace) |
![]() | |
InputDevice (QObject *parent=nullptr) | |
Static Public Member Functions | |
static Device * | get (libinput_device *native) |
|
explicit |
Definition at line 270 of file device.cpp.
|
override |
Definition at line 371 of file device.cpp.
|
inline |
|
inline |
|
signal |
|
signal |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
QRectF KWin::LibInput::Device::defaultOutputArea | ( | ) | const |
Definition at line 698 of file device.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
signal |
|
inline |
|
signal |
|
static |
Gets the Device for native
. null
if there is no Device for native
.
Definition at line 378 of file device.cpp.
void * KWin::LibInput::Device::groupUserData | ( | ) | const |
Definition at line 538 of file device.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements KWin::InputDevice.
|
inline |
|
inlineoverridevirtual |
Implements KWin::InputDevice.
|
inlineoverridevirtual |
Implements KWin::InputDevice.
|
inline |
|
inline |
|
inlineoverridevirtual |
Reimplemented from KWin::InputDevice.
|
inlineoverridevirtual |
Implements KWin::InputDevice.
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements KWin::InputDevice.
|
inlineoverridevirtual |
Implements KWin::InputDevice.
|
inlineoverridevirtual |
Implements KWin::InputDevice.
|
inline |
|
inlineoverridevirtual |
Implements KWin::InputDevice.
|
inlineoverridevirtual |
Implements KWin::InputDevice.
|
overridevirtual |
Implements KWin::InputDevice.
Definition at line 680 of file device.cpp.
|
signal |
|
inline |
|
inline |
|
inline |
void KWin::LibInput::Device::loadConfiguration | ( | ) |
Loads the configuration and applies it to the Device
Definition at line 398 of file device.cpp.
|
signal |
|
signal |
|
inline |
|
inlineoverridevirtual |
Implements KWin::InputDevice.
|
signal |
|
inline |
|
inline |
|
signal |
Output * KWin::LibInput::Device::output | ( | ) | const |
Definition at line 655 of file device.cpp.
QRectF KWin::LibInput::Device::outputArea | ( | ) | const |
Definition at line 703 of file device.cpp.
|
signal |
|
inlineoverridevirtual |
Reimplemented from KWin::InputDevice.
|
signal |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
int KWin::LibInput::Device::ringsCount | ( | ) | const |
Definition at line 533 of file device.cpp.
|
inline |
|
signal |
|
inline |
|
inline |
|
signal |
|
inline |
|
signal |
|
inline |
|
inline |
void KWin::LibInput::Device::setCalibrationMatrix | ( | const QMatrix4x4 & | matrix | ) |
Definition at line 597 of file device.cpp.
void KWin::LibInput::Device::setClickMethod | ( | bool | set, |
enum libinput_config_click_method | method ) |
Definition at line 462 of file device.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void KWin::LibInput::Device::setDisableWhileTyping | ( | bool | set | ) |
|
overridevirtual |
Implements KWin::InputDevice.
|
overridevirtual |
Implements KWin::InputDevice.
Definition at line 685 of file device.cpp.
void KWin::LibInput::Device::setLeftHanded | ( | bool | set | ) |
Sets the Device to left handed mode if set
is true
. If set
is false
the device is set to right handed mode
void KWin::LibInput::Device::setLmrTapButtonMap | ( | bool | set | ) |
Definition at line 508 of file device.cpp.
void KWin::LibInput::Device::setMapToWorkspace | ( | bool | mapToWorkspace | ) |
Definition at line 717 of file device.cpp.
void KWin::LibInput::Device::setMiddleEmulation | ( | bool | set | ) |
void KWin::LibInput::Device::setNaturalScroll | ( | bool | set | ) |
void KWin::LibInput::Device::setOrientation | ( | Qt::ScreenOrientation | orientation | ) |
Definition at line 617 of file device.cpp.
|
inline |
void KWin::LibInput::Device::setOutput | ( | Output * | output | ) |
Definition at line 660 of file device.cpp.
void KWin::LibInput::Device::setOutputArea | ( | const QRectF & | outputArea | ) |
Definition at line 708 of file device.cpp.
|
overridevirtual |
Used to deserialize monitor data from KConfig when initializing a device
Reimplemented from KWin::InputDevice.
Definition at line 630 of file device.cpp.
void KWin::LibInput::Device::setPointerAcceleration | ( | qreal | acceleration | ) |
acceleration | mapped to range [-1,1] with -1 being the slowest, 1 being the fastest supported acceleration. |
Definition at line 412 of file device.cpp.
|
inline |
void KWin::LibInput::Device::setPointerAccelerationProfile | ( | bool | set, |
enum libinput_config_accel_profile | profile ) |
Definition at line 441 of file device.cpp.
|
inline |
|
inline |
|
inline |
void KWin::LibInput::Device::setScrollButton | ( | quint32 | button | ) |
Definition at line 427 of file device.cpp.
|
inline |
void KWin::LibInput::Device::setScrollFactor | ( | qreal | factor | ) |
Definition at line 588 of file device.cpp.
void KWin::LibInput::Device::setScrollMethod | ( | bool | set, |
enum libinput_config_scroll_method | method ) |
Definition at line 483 of file device.cpp.
|
inline |
|
inline |
void KWin::LibInput::Device::setTapAndDrag | ( | bool | set | ) |
void KWin::LibInput::Device::setTapDragLock | ( | bool | set | ) |
void KWin::LibInput::Device::setTapToClick | ( | bool | set | ) |
Set the Device to tap to click if set
is true
.
int KWin::LibInput::Device::stripsCount | ( | ) | const |
Definition at line 528 of file device.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool KWin::LibInput::Device::supportsOutputArea | ( | ) | const |
Definition at line 693 of file device.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements KWin::InputDevice.
|
signal |
|
inline |
|
signal |
|
signal |
|
inline |
|
inline |
|
signal |
|
inline |
|
readwrite |
|
readwrite |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
readwrite |
|
readwrite |
|
readwrite |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |