262 [[nodiscard]] const priv::CursorImpl& getImpl() const;
267 std::unique_ptr<priv::CursorImpl> m_impl;
static std::optional< Cursor > createFromSystem(Type type)
Create a native system cursor.
Cursor(const Cursor &)=delete
Deleted copy constructor.
static std::optional< Cursor > createFromPixels(const std::uint8_t *pixels, Vector2u size, Vector2u hotspot)
Create a cursor with the provided image.
Type
Enumeration of the native system cursor types.
@ SizeVertical
Vertical double arrow cursor.
@ Arrow
Arrow cursor (default)
@ SizeTopLeftBottomRight
Double arrow cursor going from top-left to bottom-right.
@ SizeHorizontal
Horizontal double arrow cursor.
@ SizeLeft
Left arrow cursor on Linux, same as SizeHorizontal on other platforms.
@ SizeBottom
Down arrow cursor on Linux, same as SizeVertical on other platforms.
@ SizeTopLeft
Top-left arrow cursor on Linux, same as SizeTopLeftBottomRight on other platforms.
@ SizeBottomRight
Bottom-right arrow cursor on Linux, same as SizeTopLeftBottomRight on other platforms.
@ SizeAll
Combination of SizeHorizontal and SizeVertical.
@ SizeTopRight
Top-right arrow cursor on Linux, same as SizeBottomLeftTopRight on other platforms.
@ Text
I-beam, cursor when hovering over a field allowing text entry.
@ Hand
Pointing hand cursor.
@ SizeTop
Up arrow cursor on Linux, same as SizeVertical on other platforms.
@ SizeBottomLeft
Bottom-left arrow cursor on Linux, same as SizeBottomLeftTopRight on other platforms.
@ SizeBottomLeftTopRight
Double arrow cursor going from bottom-left to top-right.
@ ArrowWait
Busy arrow cursor.
@ SizeRight
Right arrow cursor on Linux, same as SizeHorizontal on other platforms.
@ NotAllowed
Action not allowed cursor.
Cursor & operator=(const Cursor &)=delete
Deleted copy assignment.
Cursor(Cursor &&) noexcept
Move constructor.
Vector2< unsigned int > Vector2u