KWin
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Friends | List of all members
KWin::X11Cursor Class Reference

#include <x11_standalone_cursor.h>

Inheritance diagram for KWin::X11Cursor:
KWin::Cursor

Public Member Functions

 X11Cursor (bool xInputSupport=false)
 
 ~X11Cursor () override
 
void schedulePoll ()
 
void notifyCursorChanged ()
 
- Public Member Functions inherited from KWin::Cursor
 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
 
CursorSourcesource () 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
 
- Protected Member Functions inherited from KWin::Cursor
bool isCursorTracking () const
 
const QPointF & currentPos () const
 
void updatePos (const QPointF &pos)
 

Friends

class Cursor
 

Additional Inherited Members

- Signals inherited from KWin::Cursor
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 Public Member Functions inherited from KWin::Cursor
static QString defaultThemeName ()
 
static int defaultThemeSize ()
 

Detailed Description

Definition at line 19 of file x11_standalone_cursor.h.

Constructor & Destructor Documentation

◆ X11Cursor()

KWin::X11Cursor::X11Cursor ( bool xInputSupport = false)

Definition at line 22 of file x11_standalone_cursor.cpp.

◆ ~X11Cursor()

KWin::X11Cursor::~X11Cursor ( )
override

Definition at line 49 of file x11_standalone_cursor.cpp.

Member Function Documentation

◆ doGetPos()

void KWin::X11Cursor::doGetPos ( )
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.

◆ doSetPos()

void KWin::X11Cursor::doSetPos ( )
overrideprotectedvirtual

Performs the actual warping of the cursor.

Reimplemented from KWin::Cursor.

Definition at line 53 of file x11_standalone_cursor.cpp.

◆ doStartCursorTracking()

void KWin::X11Cursor::doStartCursorTracking ( )
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.

◆ doStartMousePolling()

void KWin::X11Cursor::doStartMousePolling ( )
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.

◆ doStopCursorTracking()

void KWin::X11Cursor::doStopCursorTracking ( )
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.

◆ doStopMousePolling()

void KWin::X11Cursor::doStopMousePolling ( )
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.

◆ notifyCursorChanged()

void KWin::X11Cursor::notifyCursorChanged ( )

Definition at line 128 of file x11_standalone_cursor.cpp.

◆ schedulePoll()

void KWin::X11Cursor::schedulePoll ( )
inline

Definition at line 26 of file x11_standalone_cursor.h.

Friends And Related Symbol Documentation

◆ Cursor

friend class Cursor
friend

Definition at line 66 of file x11_standalone_cursor.h.


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