QScreenCursor Class Reference

#include <qscreen_qws.h>

Class Description

Definition at line 135 of file qscreen_qws.h.

+ Inheritance diagram for QScreenCursor:

Public Member Functions

 QScreenCursor ()
 
virtual ~QScreenCursor ()
 
virtual void set (const QImage &image, int hotx, int hoty)
 
virtual void move (int x, int y)
 
virtual void show ()
 
virtual void hide ()
 
bool supportsAlphaCursor () const
 
QRect boundingRect () const
 
QImage image () const
 
bool isVisible () const
 
bool isAccelerated () const
 

Static Public Member Functions

static bool enabled ()
 
static void initSoftwareCursor ()
 
static QScreenCursorinstance ()
 

Protected Attributes

QImage cursor
 
QSize size
 
QPoint pos
 
QPoint hotspot
 
uint enable: 1
 
uint hwaccel: 1
 
uint supportsAlpha: 1
 

Friends

class QProxyScreenCursor
 

Constructor & Destructor Documentation

virtual ~QScreenCursor ( )
virtual

Member Function Documentation

virtual void set ( const QImage image,
int  hotx,
int  hoty 
)
virtual

Reimplemented in QProxyScreenCursor.

virtual void move ( int  x,
int  y 
)
virtual

Reimplemented in QProxyScreenCursor.

virtual void show ( )
virtual

Reimplemented in QProxyScreenCursor.

virtual void hide ( )
virtual

Reimplemented in QProxyScreenCursor.

bool supportsAlphaCursor ( ) const
inline

Definition at line 146 of file qscreen_qws.h.

146 { return supportsAlpha; }
uint supportsAlpha
Definition: qscreen_qws.h:166
static bool enabled ( )
inlinestatic

Definition at line 148 of file qscreen_qws.h.

148 { return qws_sw_cursor; }
bool qws_sw_cursor
QRect boundingRect ( ) const
inline

Definition at line 150 of file qscreen_qws.h.

150 { return QRect(pos - hotspot, size); }
QPoint hotspot
Definition: qscreen_qws.h:163
Definition: qrect.h:58
GLsizeiptr size
Definition: GLee.h:1561
QImage image ( ) const
inline

Definition at line 151 of file qscreen_qws.h.

151 { return cursor; }
bool isVisible ( ) const
inline

Definition at line 152 of file qscreen_qws.h.

152 { return enable; }
bool isAccelerated ( ) const
inline

Definition at line 153 of file qscreen_qws.h.

153 { return hwaccel; }
static void initSoftwareCursor ( )
static
static QScreenCursor* instance ( )
inlinestatic

Definition at line 156 of file qscreen_qws.h.

156 { return qt_screencursor; }
QScreenCursor * qt_screencursor

Friends And Related Function Documentation

friend class QProxyScreenCursor
friend

Definition at line 169 of file qscreen_qws.h.

Member Data Documentation

QImage cursor
protected

Definition at line 159 of file qscreen_qws.h.

QSize size
protected

Definition at line 161 of file qscreen_qws.h.

QPoint pos
protected

Definition at line 162 of file qscreen_qws.h.

QPoint hotspot
protected

Definition at line 163 of file qscreen_qws.h.

uint enable
protected

Definition at line 164 of file qscreen_qws.h.

uint hwaccel
protected

Definition at line 165 of file qscreen_qws.h.

uint supportsAlpha
protected

Definition at line 166 of file qscreen_qws.h.


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