KWin
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
ButtonRebindsFilter Class Reference

#include <buttonrebindsfilter.h>

Inheritance diagram for ButtonRebindsFilter:
KWin::Plugin KWin::InputEventFilter

Classes

struct  MouseButton
 
struct  TabletToolButton
 

Public Types

enum  TriggerType { Pointer , TabletPad , TabletToolButtonType , LastType }
 

Public Member Functions

 ButtonRebindsFilter ()
 
bool pointerEvent (KWin::MouseEvent *event, quint32 nativeButton) override
 
bool tabletPadButtonEvent (uint button, bool pressed, const KWin::TabletPadId &tabletPadId, std::chrono::microseconds time) override
 
bool tabletToolButtonEvent (uint button, bool pressed, const KWin::TabletToolId &tabletToolId, std::chrono::microseconds time) override
 
- Public Member Functions inherited from KWin::Plugin
 Plugin ()
 
- Public Member Functions inherited from KWin::InputEventFilter
 InputEventFilter ()
 
virtual ~InputEventFilter ()
 
virtual bool pointerFrame ()
 
virtual bool wheelEvent (WheelEvent *event)
 
virtual bool keyEvent (KeyEvent *event)
 
virtual bool touchDown (qint32 id, const QPointF &pos, std::chrono::microseconds time)
 
virtual bool touchMotion (qint32 id, const QPointF &pos, std::chrono::microseconds time)
 
virtual bool touchUp (qint32 id, std::chrono::microseconds time)
 
virtual bool touchCancel ()
 
virtual bool touchFrame ()
 
virtual bool pinchGestureBegin (int fingerCount, std::chrono::microseconds time)
 
virtual bool pinchGestureUpdate (qreal scale, qreal angleDelta, const QPointF &delta, std::chrono::microseconds time)
 
virtual bool pinchGestureEnd (std::chrono::microseconds time)
 
virtual bool pinchGestureCancelled (std::chrono::microseconds time)
 
virtual bool swipeGestureBegin (int fingerCount, std::chrono::microseconds time)
 
virtual bool swipeGestureUpdate (const QPointF &delta, std::chrono::microseconds time)
 
virtual bool swipeGestureEnd (std::chrono::microseconds time)
 
virtual bool swipeGestureCancelled (std::chrono::microseconds time)
 
virtual bool holdGestureBegin (int fingerCount, std::chrono::microseconds time)
 
virtual bool holdGestureEnd (std::chrono::microseconds time)
 
virtual bool holdGestureCancelled (std::chrono::microseconds time)
 
virtual bool switchEvent (SwitchEvent *event)
 
virtual bool tabletToolEvent (TabletEvent *event)
 
virtual bool tabletPadStripEvent (int number, int position, bool isFinger, const TabletPadId &tabletPadId, std::chrono::microseconds time)
 
virtual bool tabletPadRingEvent (int number, int position, bool isFinger, const TabletPadId &tabletPadId, std::chrono::microseconds time)
 

Additional Inherited Members

- Protected Member Functions inherited from KWin::InputEventFilter
void passToWaylandServer (QKeyEvent *event)
 
bool passToInputMethod (QKeyEvent *event)
 

Detailed Description

Definition at line 52 of file buttonrebindsfilter.h.

Member Enumeration Documentation

◆ TriggerType

Enumerator
Pointer 
TabletPad 
TabletToolButtonType 
LastType 

Definition at line 56 of file buttonrebindsfilter.h.

Constructor & Destructor Documentation

◆ ButtonRebindsFilter()

ButtonRebindsFilter::ButtonRebindsFilter ( )
explicit

Definition at line 122 of file buttonrebindsfilter.cpp.

Member Function Documentation

◆ pointerEvent()

bool ButtonRebindsFilter::pointerEvent ( KWin::MouseEvent * event,
quint32 nativeButton )
overridevirtual

Event filter for pointer events which can be described by a QMouseEvent.

Please note that the button translation in QMouseEvent cannot cover all possible buttons. Because of that also the nativeButton code is passed through the filter. For internal areas it's fine to use event, but for passing to client windows the nativeButton should be used.

Parameters
eventThe event information about the move or button press/release
nativeButtonThe native key code of the button, for move events 0
Returns
true to stop further event processing, false to pass to next filter

Reimplemented from KWin::InputEventFilter.

Definition at line 196 of file buttonrebindsfilter.cpp.

◆ tabletPadButtonEvent()

bool ButtonRebindsFilter::tabletPadButtonEvent ( uint button,
bool pressed,
const KWin::TabletPadId & tabletPadId,
std::chrono::microseconds time )
overridevirtual

Reimplemented from KWin::InputEventFilter.

Definition at line 208 of file buttonrebindsfilter.cpp.

◆ tabletToolButtonEvent()

bool ButtonRebindsFilter::tabletToolButtonEvent ( uint button,
bool pressed,
const KWin::TabletToolId & tabletToolId,
std::chrono::microseconds time )
overridevirtual

Reimplemented from KWin::InputEventFilter.

Definition at line 216 of file buttonrebindsfilter.cpp.


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