KWin
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Member Functions | List of all members
KWin::InputDeviceHandler Class Referenceabstract

#include <input.h>

Inheritance diagram for KWin::InputDeviceHandler:
KWin::PointerInputRedirection KWin::TabletInputRedirection KWin::TouchInputRedirection

Signals

void decorationChanged ()
 

Public Member Functions

 ~InputDeviceHandler () override
 
virtual void init ()
 
void update ()
 
Window * hover () const
 First Window currently at the position of the input device according to the stacking order.
 
Window * focus () const
 Window currently having pointer input focus (this might be different from the Window at the position of the pointer).
 
Decoration::DecoratedClientImpl * decoration () const
 The Decoration currently receiving events.
 
virtual QPointF position () const =0
 
void setFocus (Window *window)
 
void setDecoration (Decoration::DecoratedClientImpl *decoration)
 

Protected Member Functions

 InputDeviceHandler (InputRedirection *parent)
 
virtual void cleanupDecoration (Decoration::DecoratedClientImpl *old, Decoration::DecoratedClientImpl *now)=0
 
virtual void focusUpdate (Window *old, Window *now)=0
 
virtual bool positionValid () const
 
virtual bool focusUpdatesBlocked ()
 
bool inited () const
 
void setInited (bool set)
 

Detailed Description

Definition at line 459 of file input.h.

Constructor & Destructor Documentation

◆ ~InputDeviceHandler()

KWin::InputDeviceHandler::~InputDeviceHandler ( )
overridedefault

◆ InputDeviceHandler()

KWin::InputDeviceHandler::InputDeviceHandler ( InputRedirection * parent)
explicitprotected

Definition at line 3403 of file input.cpp.

Member Function Documentation

◆ cleanupDecoration()

virtual void KWin::InputDeviceHandler::cleanupDecoration ( Decoration::DecoratedClientImpl * old,
Decoration::DecoratedClientImpl * now )
protectedpure virtual

◆ decoration()

Decoration::DecoratedClientImpl * KWin::InputDeviceHandler::decoration ( ) const

The Decoration currently receiving events.

Returns
decoration with pointer focus.

◆ decorationChanged

void KWin::InputDeviceHandler::decorationChanged ( )
signal

◆ focus()

Window * KWin::InputDeviceHandler::focus ( ) const

Window currently having pointer input focus (this might be different from the Window at the position of the pointer).

Returns
Window* with pointer focus.

This will be null if no window has focus

Definition at line 3521 of file input.cpp.

◆ focusUpdate()

virtual void KWin::InputDeviceHandler::focusUpdate ( Window * old,
Window * now )
protectedpure virtual

◆ focusUpdatesBlocked()

virtual bool KWin::InputDeviceHandler::focusUpdatesBlocked ( )
inlineprotectedvirtual

◆ hover()

Window * KWin::InputDeviceHandler::hover ( ) const

First Window currently at the position of the input device according to the stacking order.

Returns
Window* at device position.

This will be null if no window is at the position

Definition at line 3516 of file input.cpp.

◆ init()

void KWin::InputDeviceHandler::init ( )
virtual

◆ inited()

bool KWin::InputDeviceHandler::inited ( ) const
inlineprotected

Definition at line 520 of file input.h.

◆ position()

virtual QPointF KWin::InputDeviceHandler::position ( ) const
pure virtual

◆ positionValid()

virtual bool KWin::InputDeviceHandler::positionValid ( ) const
inlineprotectedvirtual

Certain input devices can be in a state of having no valid position. An example are touch screens when no finger/pen is resting on the surface (no touch point).

Reimplemented in KWin::TabletInputRedirection, and KWin::TouchInputRedirection.

Definition at line 511 of file input.h.

◆ setDecoration()

void KWin::InputDeviceHandler::setDecoration ( Decoration::DecoratedClientImpl * decoration)

Definition at line 3449 of file input.cpp.

◆ setFocus()

void KWin::InputDeviceHandler::setFocus ( Window * window)

Definition at line 3430 of file input.cpp.

◆ setInited()

void KWin::InputDeviceHandler::setInited ( bool set)
inlineprotected

Definition at line 524 of file input.h.

◆ update()

void KWin::InputDeviceHandler::update ( )

Definition at line 3492 of file input.cpp.

Member Data Documentation

◆ decoration

Decoration::DecoratedClientImpl * KWin::InputDeviceHandler::decoration

Definition at line 543 of file input.h.

◆ surfaceCreatedConnection

QMetaObject::Connection KWin::InputDeviceHandler::surfaceCreatedConnection

Definition at line 537 of file input.h.

◆ window

QPointer<Window> KWin::InputDeviceHandler::window

Definition at line 536 of file input.h.


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