KWin
|
#include <xcursortheme.h>
Public Member Functions | |
KXcursorSprite () | |
KXcursorSprite (const KXcursorSprite &other) | |
KXcursorSprite (const QImage &data, const QPoint &hotspot, const std::chrono::milliseconds &delay) | |
~KXcursorSprite () | |
KXcursorSprite & | operator= (const KXcursorSprite &other) |
QImage | data () const |
QPoint | hotspot () const |
std::chrono::milliseconds | delay () const |
The KXcursorSprite class represents a single sprite in the Xcursor theme.
Definition at line 26 of file xcursortheme.h.
KWin::KXcursorSprite::KXcursorSprite | ( | ) |
Constructs an empty XcursorSprite.
Definition at line 40 of file xcursortheme.cpp.
KWin::KXcursorSprite::KXcursorSprite | ( | const KXcursorSprite & | other | ) |
Constructs a copy of the KXcursorSprite object other.
Definition at line 45 of file xcursortheme.cpp.
KWin::KXcursorSprite::KXcursorSprite | ( | const QImage & | data, |
const QPoint & | hotspot, | ||
const std::chrono::milliseconds & | delay ) |
Constructs an XcursorSprite with the specified data, hotspot, and delay.
Definition at line 60 of file xcursortheme.cpp.
KWin::KXcursorSprite::~KXcursorSprite | ( | ) |
Destructs the KXcursorSprite object.
Definition at line 50 of file xcursortheme.cpp.
QImage KWin::KXcursorSprite::data | ( | ) | const |
Returns the image for this sprite.
Definition at line 69 of file xcursortheme.cpp.
std::chrono::milliseconds KWin::KXcursorSprite::delay | ( | ) | const |
Returns the time interval between this sprite and the next one, in milliseconds.
Definition at line 79 of file xcursortheme.cpp.
QPoint KWin::KXcursorSprite::hotspot | ( | ) | const |
Returns the hotspot for this sprite. (0, 0) corresponds to the upper left corner.
The coordinates of the hotspot are in device independent pixels.
Definition at line 74 of file xcursortheme.cpp.
KXcursorSprite & KWin::KXcursorSprite::operator= | ( | const KXcursorSprite & | other | ) |
Assigns the value of other to the Xcursor sprite object.
Definition at line 54 of file xcursortheme.cpp.