Loading...
Searching...
No Matches
Cursor.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
226 [[nodiscard]] static std::optional<Cursor> createFromPixels(const std::uint8_t* pixels, Vector2u size, Vector2u hotspot);
static std::optional< Cursor > createFromSystem(Type type)
Create a native system cursor.
static std::optional< Cursor > createFromPixels(const std::uint8_t *pixels, Vector2u size, Vector2u hotspot)
Create a cursor with the provided image.
@ SizeTopLeftBottomRight
Double arrow cursor going from top-left to bottom-right.
Definition Cursor.hpp:98
@ SizeLeft
Left arrow cursor on Linux, same as SizeHorizontal on other platforms.
Definition Cursor.hpp:100
@ SizeBottom
Down arrow cursor on Linux, same as SizeVertical on other platforms.
Definition Cursor.hpp:103
@ SizeTopLeft
Top-left arrow cursor on Linux, same as SizeTopLeftBottomRight on other platforms.
Definition Cursor.hpp:104
@ SizeBottomRight
Bottom-right arrow cursor on Linux, same as SizeTopLeftBottomRight on other platforms.
Definition Cursor.hpp:105
@ SizeTopRight
Top-right arrow cursor on Linux, same as SizeBottomLeftTopRight on other platforms.
Definition Cursor.hpp:107
@ SizeTop
Up arrow cursor on Linux, same as SizeVertical on other platforms.
Definition Cursor.hpp:102
@ SizeBottomLeft
Bottom-left arrow cursor on Linux, same as SizeBottomLeftTopRight on other platforms.
Definition Cursor.hpp:106
@ SizeBottomLeftTopRight
Double arrow cursor going from bottom-left to top-right.
Definition Cursor.hpp:99
@ SizeRight
Right arrow cursor on Linux, same as SizeHorizontal on other platforms.
Definition Cursor.hpp:101
Definition AudioResource.hpp:36