MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UpdateCursor

Method UpdateCursor

Source/Engine/Platform/GDK/GDKWindow.cpp:225–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void GDKWindow::UpdateCursor() const
226{
227 if (_cursor == CursorType::Hidden)
228 {
229 ::SetCursor(nullptr);
230 return;
231 }
232
233 int32 index = 0;
234 switch (_cursor)
235 {
236 case CursorType::Default:
237 break;
238 case CursorType::Cross:
239 index = 1;
240 break;
241 case CursorType::Hand:
242 index = 2;
243 break;
244 case CursorType::Help:
245 index = 3;
246 break;
247 case CursorType::IBeam:
248 index = 4;
249 break;
250 case CursorType::No:
251 index = 5;
252 break;
253 case CursorType::Wait:
254 index = 11;
255 break;
256 case CursorType::SizeAll:
257 index = 6;
258 break;
259 case CursorType::SizeNESW:
260 index = 7;
261 break;
262 case CursorType::SizeNS:
263 index = 8;
264 break;
265 case CursorType::SizeNWSE:
266 index = 9;
267 break;
268 case CursorType::SizeWE:
269 index = 10;
270 break;
271 }
272
273 static const LPCWSTR cursors[] =
274 {
275 IDC_ARROW,
276 IDC_CROSS,
277 IDC_HAND,
278 IDC_HELP,
279 IDC_IBEAM,
280 IDC_NO,
281 IDC_SIZEALL,
282 IDC_SIZENESW,

Callers

nothing calls this directly

Calls 1

SetCursorFunction · 0.85

Tested by

no test coverage detected