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

#include <pointer.h>

Inheritance diagram for KWin::PointerInterface:

Signals

void cursorChanged (const PointerCursor &cursor)
 
void focusedSurfaceChanged ()
 

Public Member Functions

 ~PointerInterface () override
 
SurfaceInterfacefocusedSurface () const
 
quint32 focusedSerial () const
 
SeatInterfaceseat () const
 
void sendEnter (SurfaceInterface *surface, const QPointF &position, quint32 serial)
 
void sendLeave (quint32 serial)
 
void sendButton (quint32 button, PointerButtonState state, quint32 serial)
 
void sendAxis (Qt::Orientation orientation, qreal delta, qint32 deltaV120, PointerAxisSource source, PointerAxisRelativeDirection direction)
 
void sendMotion (const QPointF &position)
 
void sendFrame ()
 

Static Public Member Functions

static PointerInterfaceget (wl_resource *native)
 

Friends

class SeatInterfacePrivate
 
class PointerInterfacePrivate
 

Detailed Description

The PointerInterface class represents one or more input devices such as mice, which control the pointer location. It corresponds to the Wayland interface wl_pointer.

Definition at line 35 of file pointer.h.

Constructor & Destructor Documentation

◆ ~PointerInterface()

KWin::PointerInterface::~PointerInterface ( )
override

Definition at line 154 of file pointer.cpp.

Member Function Documentation

◆ cursorChanged

void KWin::PointerInterface::cursorChanged ( const PointerCursor & cursor)
signal

This signal is emitted whenever the cursor surface changes. As long as there is no any focused surface, the cursor cannot be changed.

◆ focusedSerial()

quint32 KWin::PointerInterface::focusedSerial ( ) const

Definition at line 163 of file pointer.cpp.

◆ focusedSurface()

SurfaceInterface * KWin::PointerInterface::focusedSurface ( ) const

Returns the focused pointer surface. Note that the returned value may be different from SurfaceInterface::focusedSurfacePointerSurface() because this function returns the effective focused surface.

Definition at line 158 of file pointer.cpp.

◆ focusedSurfaceChanged

void KWin::PointerInterface::focusedSurfaceChanged ( )
signal

This signal is emitted whenever the focused pointer surface changes.

◆ get()

PointerInterface * KWin::PointerInterface::get ( wl_resource * native)
static
Returns
The PointerInterface for the native resource.

Definition at line 370 of file pointer.cpp.

◆ seat()

SeatInterface * KWin::PointerInterface::seat ( ) const

Returns the seat to which this pointer belongs to.

Definition at line 365 of file pointer.cpp.

◆ sendAxis()

void KWin::PointerInterface::sendAxis ( Qt::Orientation orientation,
qreal delta,
qint32 deltaV120,
PointerAxisSource source,
PointerAxisRelativeDirection direction )

Definition at line 258 of file pointer.cpp.

◆ sendButton()

void KWin::PointerInterface::sendButton ( quint32 button,
PointerButtonState state,
quint32 serial )

Definition at line 213 of file pointer.cpp.

◆ sendEnter()

void KWin::PointerInterface::sendEnter ( SurfaceInterface * surface,
const QPointF & position,
quint32 serial )

Definition at line 168 of file pointer.cpp.

◆ sendFrame()

void KWin::PointerInterface::sendFrame ( )

Definition at line 358 of file pointer.cpp.

◆ sendLeave()

void KWin::PointerInterface::sendLeave ( quint32 serial)

Definition at line 198 of file pointer.cpp.

◆ sendMotion()

void KWin::PointerInterface::sendMotion ( const QPointF & position)

Definition at line 342 of file pointer.cpp.

Friends And Related Symbol Documentation

◆ PointerInterfacePrivate

friend class PointerInterfacePrivate
friend

Definition at line 83 of file pointer.h.

◆ SeatInterfacePrivate

friend class SeatInterfacePrivate
friend

Definition at line 82 of file pointer.h.


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