29#include "GraphicsApi.h"
37#ifndef DOXYGEN_SHOULD_SKIP_THIS
168 SDL_Cursor *m_cursor;
171#ifndef DOXYGEN_SHOULD_SKIP_THIS
A mouse cursor.
Definition: Cursor.h:63
Cursor(const uint8_t *pixels, Vector2i size, Vector2i hotspot)
Create a cursor with the provided pixels.
Cursor(const Image &image, Vector2i hotspot)
Create a cursor from the provided image.
Cursor & operator=(const Cursor &)=delete
Deleted copy assignment.
Cursor(Cursor &&other) noexcept
Move constructor.
Cursor(const Cursor &)=delete
Deleted copy constructor.
Cursor(const Path &path, Vector2i hotspot)
Create a cursor from an image stored in a file.
Type
Enumeration of the native system cursor types.
Definition: Cursor.h:69
@ Arrow
Arrow cursor (default)
Definition: Cursor.h:70
@ SizeTopLeftBottomRight
Double arrow cursor going from top-left to bottom-right.
Definition: Cursor.h:77
@ SizeAll
Combination of SizeHorizontal and SizeVertical.
Definition: Cursor.h:79
@ SizeVertical
Vertical double arrow cursor.
Definition: Cursor.h:76
@ Cross
Crosshair cursor.
Definition: Cursor.h:80
@ SizeBottomLeftTopRight
Double arrow cursor going from bottom-left to top-right.
Definition: Cursor.h:78
@ Hand
Pointing hand cursor.
Definition: Cursor.h:74
@ SizeHorizontal
Horizontal double arrow cursor.
Definition: Cursor.h:75
@ Wait
Busy cursor.
Definition: Cursor.h:72
@ ArrowWait
Busy arrow cursor.
Definition: Cursor.h:71
@ Text
I-beam, cursor when hovering over a field allowing text entry.
Definition: Cursor.h:73
Cursor()
Default constructor.
Cursor(Type type)
Create a native system cursor.
Cursor & operator=(Cursor &&other) noexcept
Move assignment.
Class for loading, manipulating and saving images.
Definition: Image.h:81
An OS window.
Definition: Window.h:97
std::filesystem::path Path
A path in the filesystem.
Definition: Path.h:40
The namespace for gf classes.