Krita Source Code Documentation
Loading...
Searching...
No Matches
KisCursor Class Reference

#include <kis_cursor.h>

Public Member Functions

 KisCursor ()
 

Static Public Member Functions

static QCursor arrowCursor ()
 
static QCursor blankCursor ()
 
static QCursor changeExposureCursor ()
 
static QCursor changeGammaCursor ()
 
static QCursor closedHandCursor ()
 
static QCursor crossCursor ()
 
static QCursor eraserCursor ()
 
static QCursor handCursor ()
 
static QCursor ibeamCursor ()
 
static QCursor load (const QString &cursorName, int hotspotX=-1, int hotspotY=-1)
 
static QCursor meshCursorFree ()
 
static QCursor meshCursorLocked ()
 
static QCursor moveCursor ()
 
static QCursor moveSelectionCursor ()
 
static QCursor openHandCursor ()
 
static QCursor pickLayerCursor ()
 
static QCursor pixelBlackCursor ()
 
static QCursor pixelWhiteCursor ()
 
static QCursor pointingHandCursor ()
 
static QCursor rotateCanvasDiscreteCursor ()
 
static QCursor rotateCanvasSmoothCursor ()
 
static QCursor rotateCursor ()
 
static QCursor roundCursor ()
 
static QCursor samplerCursor ()
 
static QCursor samplerImageBackgroundCursor ()
 
static QCursor samplerImageForegroundCursor ()
 
static QCursor samplerLayerBackgroundCursor ()
 
static QCursor samplerLayerForegroundCursor ()
 
static QCursor sizeAllCursor ()
 
static QCursor sizeBDiagCursor ()
 
static QCursor sizeFDiagCursor ()
 
static QCursor sizeHorCursor ()
 
static QCursor sizeVerCursor ()
 
static QCursor splitHCursor ()
 
static QCursor splitVCursor ()
 
static QCursor triangleLeftHandedCursor ()
 
static QCursor triangleRightHandedCursor ()
 
static QCursor upArrowCursor ()
 
static QCursor waitCursor ()
 
static QCursor zoomDiscreteCursor ()
 
static QCursor zoomSmoothCursor ()
 

Detailed Description

Definition at line 17 of file kis_cursor.h.

Constructor & Destructor Documentation

◆ KisCursor()

KisCursor::KisCursor ( )

Definition at line 19 of file kis_cursor.cc.

19{}

Member Function Documentation

◆ arrowCursor()

QCursor KisCursor::arrowCursor ( )
static

Definition at line 24 of file kis_cursor.cc.

25{
26 return Qt::ArrowCursor;
27}

◆ blankCursor()

QCursor KisCursor::blankCursor ( )
static

Definition at line 89 of file kis_cursor.cc.

90{
91 return Qt::BlankCursor;
92}

◆ changeExposureCursor()

QCursor KisCursor::changeExposureCursor ( )
static

Definition at line 160 of file kis_cursor.cc.

161{
162 return load("exposure-cursor-gesture.xpm");
163}
static QCursor load(const QString &cursorName, int hotspotX=-1, int hotspotY=-1)

References load().

◆ changeGammaCursor()

QCursor KisCursor::changeGammaCursor ( )
static

Definition at line 165 of file kis_cursor.cc.

166{
167 return load("gamma-cursor-gesture.xpm");
168}

References load().

◆ closedHandCursor()

QCursor KisCursor::closedHandCursor ( )
static

Definition at line 205 of file kis_cursor.cc.

206{
207 return Qt::ClosedHandCursor;
208}

◆ crossCursor()

QCursor KisCursor::crossCursor ( )
static

Definition at line 34 of file kis_cursor.cc.

35{
36 return load("cursor-cross.xpm");
37}

References load().

◆ eraserCursor()

QCursor KisCursor::eraserCursor ( )
static

Definition at line 180 of file kis_cursor.cc.

181{
182 return load("cursor-eraser.xpm", 2, 2);
183}

References load().

◆ handCursor()

QCursor KisCursor::handCursor ( )
static

Definition at line 195 of file kis_cursor.cc.

196{
197 return Qt::PointingHandCursor;
198}

◆ ibeamCursor()

QCursor KisCursor::ibeamCursor ( )
static

Definition at line 59 of file kis_cursor.cc.

60{
61 return Qt::IBeamCursor;
62}

◆ load()

QCursor KisCursor::load ( const QString & cursorName,
int hotspotX = -1,
int hotspotY = -1 )
static

Definition at line 225 of file kis_cursor.cc.

226{
227 return KisCursorCache::instance()->load(cursorName, hotspotX, hotspotY);
228}
static KisCursorCache * instance()
QCursor load(const QString &cursorName, int hotspotX, int hotspotY)

References KisCursorCache::instance(), and KisCursorCache::load().

◆ meshCursorFree()

QCursor KisCursor::meshCursorFree ( )
static

Definition at line 215 of file kis_cursor.cc.

216{
217 return load("mesh_cursor_free.png", 5, 5);
218}

References load().

◆ meshCursorLocked()

QCursor KisCursor::meshCursorLocked ( )
static

Definition at line 220 of file kis_cursor.cc.

221{
222 return load("mesh_cursor_locked.png", 5, 5);
223}

References load().

◆ moveCursor()

QCursor KisCursor::moveCursor ( )
static

Definition at line 185 of file kis_cursor.cc.

186{
187 return load("move-tool.xpm");
188}

References load().

◆ moveSelectionCursor()

QCursor KisCursor::moveSelectionCursor ( )
static

Definition at line 190 of file kis_cursor.cc.

191{
192 return load("move-selection.xpm", 11, 11);
193}

References load().

◆ openHandCursor()

QCursor KisCursor::openHandCursor ( )
static

Definition at line 200 of file kis_cursor.cc.

201{
202 return Qt::OpenHandCursor;
203}

◆ pickLayerCursor()

QCursor KisCursor::pickLayerCursor ( )
static

Definition at line 115 of file kis_cursor.cc.

116{
117 return load("precise-pick-layer-icon.xpm", 7, 23);
118}

References load().

◆ pixelBlackCursor()

QCursor KisCursor::pixelBlackCursor ( )
static

Definition at line 44 of file kis_cursor.cc.

45{
46 return load("cursor-pixel-black.xpm");
47}

References load().

◆ pixelWhiteCursor()

QCursor KisCursor::pixelWhiteCursor ( )
static

Definition at line 49 of file kis_cursor.cc.

50{
51 return load("cursor-pixel-white.xpm");
52}

References load().

◆ pointingHandCursor()

QCursor KisCursor::pointingHandCursor ( )
static

Definition at line 104 of file kis_cursor.cc.

105{
106 return Qt::PointingHandCursor;
107}

◆ rotateCanvasDiscreteCursor()

QCursor KisCursor::rotateCanvasDiscreteCursor ( )
static

Definition at line 135 of file kis_cursor.cc.

136{
137 return load("rotate_discrete.xpm");
138}

References load().

◆ rotateCanvasSmoothCursor()

QCursor KisCursor::rotateCanvasSmoothCursor ( )
static

Definition at line 130 of file kis_cursor.cc.

131{
132 return load("rotate_smooth.xpm");
133}

References load().

◆ rotateCursor()

QCursor KisCursor::rotateCursor ( )
static

Definition at line 210 of file kis_cursor.cc.

211{
212 return load("rotate_cursor.xpm");
213}

References load().

◆ roundCursor()

QCursor KisCursor::roundCursor ( )
static

Definition at line 39 of file kis_cursor.cc.

40{
41 return load("cursor-round.xpm");
42}

References load().

◆ samplerCursor()

QCursor KisCursor::samplerCursor ( )
static

Definition at line 110 of file kis_cursor.cc.

111{
113}
static QCursor samplerLayerForegroundCursor()

References samplerLayerForegroundCursor().

◆ samplerImageBackgroundCursor()

QCursor KisCursor::samplerImageBackgroundCursor ( )
static

Definition at line 145 of file kis_cursor.cc.

146{
147 return load("color-sampler_image_background.xpm", 8, 23);
148}

References load().

◆ samplerImageForegroundCursor()

QCursor KisCursor::samplerImageForegroundCursor ( )
static

Definition at line 140 of file kis_cursor.cc.

141{
142 return load("color-sampler_image_foreground.xpm", 8, 23);
143}

References load().

◆ samplerLayerBackgroundCursor()

QCursor KisCursor::samplerLayerBackgroundCursor ( )
static

Definition at line 155 of file kis_cursor.cc.

156{
157 return load("color-sampler_layer_background.xpm", 8, 23);
158}

References load().

◆ samplerLayerForegroundCursor()

QCursor KisCursor::samplerLayerForegroundCursor ( )
static

Definition at line 150 of file kis_cursor.cc.

151{
152 return load("color-sampler_layer_foreground.xpm", 8, 23);
153}

References load().

◆ sizeAllCursor()

QCursor KisCursor::sizeAllCursor ( )
static

Definition at line 84 of file kis_cursor.cc.

85{
86 return Qt::SizeAllCursor;
87}

◆ sizeBDiagCursor()

QCursor KisCursor::sizeBDiagCursor ( )
static

Definition at line 74 of file kis_cursor.cc.

75{
76 return Qt::SizeBDiagCursor;
77}

◆ sizeFDiagCursor()

QCursor KisCursor::sizeFDiagCursor ( )
static

Definition at line 79 of file kis_cursor.cc.

80{
81 return Qt::SizeFDiagCursor;
82}

◆ sizeHorCursor()

QCursor KisCursor::sizeHorCursor ( )
static

Definition at line 69 of file kis_cursor.cc.

70{
71 return Qt::SizeHorCursor;
72}

◆ sizeVerCursor()

QCursor KisCursor::sizeVerCursor ( )
static

Definition at line 64 of file kis_cursor.cc.

65{
66 return Qt::SizeVerCursor;
67}

◆ splitHCursor()

QCursor KisCursor::splitHCursor ( )
static

Definition at line 99 of file kis_cursor.cc.

100{
101 return Qt::SplitHCursor;
102}

◆ splitVCursor()

QCursor KisCursor::splitVCursor ( )
static

Definition at line 94 of file kis_cursor.cc.

95{
96 return Qt::SplitVCursor;
97}

◆ triangleLeftHandedCursor()

QCursor KisCursor::triangleLeftHandedCursor ( )
static

Definition at line 170 of file kis_cursor.cc.

171{
172 return load("cursor-triangle_lefthanded.xpm");
173}

References load().

◆ triangleRightHandedCursor()

QCursor KisCursor::triangleRightHandedCursor ( )
static

Definition at line 175 of file kis_cursor.cc.

176{
177 return load("cursor-triangle_righthanded.xpm");
178}

References load().

◆ upArrowCursor()

QCursor KisCursor::upArrowCursor ( )
static

Definition at line 29 of file kis_cursor.cc.

30{
31 return Qt::UpArrowCursor;
32}

◆ waitCursor()

QCursor KisCursor::waitCursor ( )
static

Definition at line 54 of file kis_cursor.cc.

55{
56 return Qt::WaitCursor;
57}

◆ zoomDiscreteCursor()

QCursor KisCursor::zoomDiscreteCursor ( )
static

Definition at line 125 of file kis_cursor.cc.

126{
127 return load("zoom_discrete.xpm");
128}

References load().

◆ zoomSmoothCursor()

QCursor KisCursor::zoomSmoothCursor ( )
static

Definition at line 120 of file kis_cursor.cc.

121{
122 return load("zoom_smooth.xpm");
123}

References load().


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