KWin
|
#include <x11_standalone_cursor.h>
Public Member Functions | |
X11Cursor (bool xInputSupport=false) | |
~X11Cursor () override | |
void | schedulePoll () |
void | notifyCursorChanged () |
![]() | |
Cursor () | |
~Cursor () override | |
void | startMousePolling () |
void | stopMousePolling () |
void | startCursorTracking () |
Enables tracking changes of cursor images. | |
void | stopCursorTracking () |
Disables tracking changes of cursor images. | |
const QString & | themeName () const |
The name of the currently used Cursor theme. | |
int | themeSize () const |
The size of the currently used Cursor theme. | |
QPointF | pos () |
void | setPos (const QPointF &pos) |
xcb_cursor_t | x11Cursor (CursorShape shape) |
xcb_cursor_t | x11Cursor (const QByteArray &name) |
QPointF | hotspot () const |
QRectF | geometry () const |
QRectF | rect () const |
CursorSource * | source () const |
void | setSource (CursorSource *source) |
bool | isOnOutput (Output *output) const |
void | markAsRendered (std::chrono::milliseconds timestamp) |
Protected Member Functions | |
void | doSetPos () override |
void | doGetPos () override |
void | doStartMousePolling () override |
void | doStopMousePolling () override |
void | doStartCursorTracking () override |
void | doStopCursorTracking () override |
![]() | |
bool | isCursorTracking () const |
const QPointF & | currentPos () const |
void | updatePos (const QPointF &pos) |
Friends | |
class | Cursor |
Additional Inherited Members | |
![]() | |
void | posChanged (const QPointF &pos) |
void | mouseChanged (const QPointF &pos, const QPointF &oldpos, Qt::MouseButtons buttons, Qt::MouseButtons oldbuttons, Qt::KeyboardModifiers modifiers, Qt::KeyboardModifiers oldmodifiers) |
void | cursorChanged () |
Signal emitted when the cursor image changes. | |
void | themeChanged () |
void | rendered (std::chrono::milliseconds timestamp) |
![]() | |
static QString | defaultThemeName () |
static int | defaultThemeSize () |
Definition at line 19 of file x11_standalone_cursor.h.
KWin::X11Cursor::X11Cursor | ( | bool | xInputSupport = false | ) |
Definition at line 22 of file x11_standalone_cursor.cpp.
|
override |
Definition at line 49 of file x11_standalone_cursor.cpp.
|
overrideprotectedvirtual |
Called from pos() to allow syncing the internal position with the underlying system's cursor position.
Reimplemented from KWin::Cursor.
Definition at line 61 of file x11_standalone_cursor.cpp.
|
overrideprotectedvirtual |
Performs the actual warping of the cursor.
Reimplemented from KWin::Cursor.
Definition at line 53 of file x11_standalone_cursor.cpp.
|
overrideprotectedvirtual |
Called from startCursorTracking when cursor image tracking gets activated. Inheriting class needs to overwrite to enable platform specific code for the tracking.
Reimplemented from KWin::Cursor.
Definition at line 104 of file x11_standalone_cursor.cpp.
|
overrideprotectedvirtual |
Called from startMousePolling when the mouse polling gets activated. Base implementation does nothing, inheriting classes can overwrite to e.g. start a timer.
Reimplemented from KWin::Cursor.
Definition at line 90 of file x11_standalone_cursor.cpp.
|
overrideprotectedvirtual |
Called from stopCursorTracking when cursor image tracking gets deactivated. Inheriting class needs to overwrite to disable platform specific code for the tracking.
Reimplemented from KWin::Cursor.
Definition at line 109 of file x11_standalone_cursor.cpp.
|
overrideprotectedvirtual |
Called from stopMousePolling when the mouse polling gets deactivated. Base implementation does nothing, inheriting classes can overwrite to e.g. stop a timer.
Reimplemented from KWin::Cursor.
Definition at line 97 of file x11_standalone_cursor.cpp.
void KWin::X11Cursor::notifyCursorChanged | ( | ) |
Definition at line 128 of file x11_standalone_cursor.cpp.
|
inline |
Definition at line 26 of file x11_standalone_cursor.h.
|
friend |
Definition at line 66 of file x11_standalone_cursor.h.