KWin
|
#include <pointer.h>
Signals | |
void | cursorChanged (const PointerCursor &cursor) |
void | focusedSurfaceChanged () |
Public Member Functions | |
~PointerInterface () override | |
SurfaceInterface * | focusedSurface () const |
quint32 | focusedSerial () const |
SeatInterface * | seat () 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 PointerInterface * | get (wl_resource *native) |
Friends | |
class | SeatInterfacePrivate |
class | PointerInterfacePrivate |
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
.
|
override |
Definition at line 154 of file pointer.cpp.
|
signal |
This signal is emitted whenever the cursor surface changes. As long as there is no any focused surface, the cursor cannot be changed.
quint32 KWin::PointerInterface::focusedSerial | ( | ) | const |
Definition at line 163 of file pointer.cpp.
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.
|
signal |
This signal is emitted whenever the focused pointer surface changes.
|
static |
native
resource. Definition at line 370 of file pointer.cpp.
SeatInterface * KWin::PointerInterface::seat | ( | ) | const |
Returns the seat to which this pointer belongs to.
Definition at line 365 of file pointer.cpp.
void KWin::PointerInterface::sendAxis | ( | Qt::Orientation | orientation, |
qreal | delta, | ||
qint32 | deltaV120, | ||
PointerAxisSource | source, | ||
PointerAxisRelativeDirection | direction ) |
Definition at line 258 of file pointer.cpp.
void KWin::PointerInterface::sendButton | ( | quint32 | button, |
PointerButtonState | state, | ||
quint32 | serial ) |
Definition at line 213 of file pointer.cpp.
void KWin::PointerInterface::sendEnter | ( | SurfaceInterface * | surface, |
const QPointF & | position, | ||
quint32 | serial ) |
Definition at line 168 of file pointer.cpp.
void KWin::PointerInterface::sendFrame | ( | ) |
Definition at line 358 of file pointer.cpp.
void KWin::PointerInterface::sendLeave | ( | quint32 | serial | ) |
Definition at line 198 of file pointer.cpp.
void KWin::PointerInterface::sendMotion | ( | const QPointF & | position | ) |
Definition at line 342 of file pointer.cpp.
|
friend |
|
friend |