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

#include <xcursortheme.h>

Public Member Functions

 KXcursorSprite ()
 
 KXcursorSprite (const KXcursorSprite &other)
 
 KXcursorSprite (const QImage &data, const QPoint &hotspot, const std::chrono::milliseconds &delay)
 
 ~KXcursorSprite ()
 
KXcursorSpriteoperator= (const KXcursorSprite &other)
 
QImage data () const
 
QPoint hotspot () const
 
std::chrono::milliseconds delay () const
 

Detailed Description

The KXcursorSprite class represents a single sprite in the Xcursor theme.

Definition at line 26 of file xcursortheme.h.

Constructor & Destructor Documentation

◆ KXcursorSprite() [1/3]

KWin::KXcursorSprite::KXcursorSprite ( )

Constructs an empty XcursorSprite.

Definition at line 40 of file xcursortheme.cpp.

◆ KXcursorSprite() [2/3]

KWin::KXcursorSprite::KXcursorSprite ( const KXcursorSprite & other)

Constructs a copy of the KXcursorSprite object other.

Definition at line 45 of file xcursortheme.cpp.

◆ KXcursorSprite() [3/3]

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.

◆ ~KXcursorSprite()

KWin::KXcursorSprite::~KXcursorSprite ( )

Destructs the KXcursorSprite object.

Definition at line 50 of file xcursortheme.cpp.

Member Function Documentation

◆ data()

QImage KWin::KXcursorSprite::data ( ) const

Returns the image for this sprite.

Definition at line 69 of file xcursortheme.cpp.

◆ delay()

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.

◆ hotspot()

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.

◆ operator=()

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.


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