#include <OpenFlipper/widgets/glWidget/CursorPainter.hh>
Class that paints the cursor using gl calls
Definition at line 68 of file CursorPainter.hh.
◆ CursorPainter()
| CursorPainter::CursorPainter |
( |
QObject * |
_parent = 0 | ) |
|
|
explicit |
◆ ~CursorPainter()
| CursorPainter::~CursorPainter |
( |
| ) |
|
◆ cursorBoundingBox()
| QRectF CursorPainter::cursorBoundingBox |
( |
| ) |
|
◆ cursorPosition()
| QPointF CursorPainter::cursorPosition |
( |
| ) |
|
◆ cursorToCursor()
| void CursorPainter::cursorToCursor |
( |
| ) |
|
|
private |
◆ cursorToTexture()
| void CursorPainter::cursorToTexture |
( |
| ) |
|
|
private |
- Todo:
- Possibly switch all cursors to bitmap cursors and check there Hotspots!!
Definition at line 247 of file CursorPainter.cc.
◆ enabled()
| bool CursorPainter::enabled |
( |
| ) |
|
Returns true if cursor painting is enabled and compatible cursor is set.
Definition at line 240 of file CursorPainter.cc.
◆ initializeGL()
| void CursorPainter::initializeGL |
( |
| ) |
|
Needs to be called after the gl context has been set up to initialize internal values.
Definition at line 104 of file CursorPainter.cc.
◆ paintCursor()
Cursor painting function. The _state has to be setup that 0,0,0 is at the cursor position.
Definition at line 149 of file CursorPainter.cc.
◆ registerViewer()
| void CursorPainter::registerViewer |
( |
glViewer * |
_viewer | ) |
|
◆ setCursor()
| void CursorPainter::setCursor |
( |
const QCursor & |
_cursor | ) |
|
◆ setEnabled()
| void CursorPainter::setEnabled |
( |
bool |
_enabled | ) |
|
◆ setForceNative()
| void CursorPainter::setForceNative |
( |
bool |
_enabled | ) |
|
◆ setMouseIn()
| void CursorPainter::setMouseIn |
( |
bool |
_in | ) |
|
Inform the cursor painter about mouse enter / leave.
Definition at line 327 of file CursorPainter.cc.
◆ updateCursorPosition()
| void CursorPainter::updateCursorPosition |
( |
QPointF |
_scenePos | ) |
|
◆ cursor_
| QCursor CursorPainter::cursor_ |
|
private |
◆ cursorPos_
| QPointF CursorPainter::cursorPos_ |
|
private |
◆ enabled_
| bool CursorPainter::enabled_ |
|
private |
◆ forceNative_
| bool CursorPainter::forceNative_ |
|
private |
◆ hasCursor_
| bool CursorPainter::hasCursor_ |
|
private |
◆ initialized_
| bool CursorPainter::initialized_ |
|
private |
◆ mouseIn_
| bool CursorPainter::mouseIn_ |
|
private |
◆ nativeCursor_
| QCursor CursorPainter::nativeCursor_ |
|
private |
◆ texture_
| GLuint CursorPainter::texture_ |
|
private |
◆ views_
| QVector<glViewer *> CursorPainter::views_ |
|
private |
◆ xOff_
◆ yOff_
The documentation for this class was generated from the following files: