25#ifndef SFML_CURSOR_HPP
26#define SFML_CURSOR_HPP
31#include <SFML/Window/Export.hpp>
32#include <SFML/System/NonCopyable.hpp>
33#include <SFML/System/Vector2.hpp>
194 const priv::CursorImpl& getImpl()
const;
201 priv::CursorImpl* m_impl;
Cursor defines the appearance of a system cursor.
Cursor()
Default constructor.
Type
Enumeration of the native system cursor types.
@ SizeHorizontal
Horizontal double arrow cursor.
@ ArrowWait
Busy arrow cursor.
@ Text
I-beam, cursor when hovering over a field allowing text entry.
@ SizeAll
Combination of SizeHorizontal and SizeVertical.
@ SizeTopLeft
Top-left arrow cursor on Linux, same as SizeTopLeftBottomRight on other platforms.
@ SizeLeft
Left arrow cursor on Linux, same as SizeHorizontal on other platforms.
@ SizeBottomRight
Bottom-right arrow cursor on Linux, same as SizeTopLeftBottomRight on other platforms.
@ 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.
@ SizeTopRight
Top-right arrow cursor on Linux, same as SizeBottomLeftTopRight on other platforms.
@ Arrow
Arrow cursor (default)
@ SizeTopLeftBottomRight
Double arrow cursor going from top-left to bottom-right.
@ SizeBottom
Down arrow cursor on Linux, same as SizeVertical on other platforms.
@ SizeVertical
Vertical double arrow cursor.
@ SizeBottomLeftTopRight
Double arrow cursor going from bottom-left to top-right.
@ Hand
Pointing hand cursor.
@ SizeRight
Right arrow cursor on Linux, same as SizeHorizontal on other platforms.
bool loadFromPixels(const Uint8 *pixels, Vector2u size, Vector2u hotspot)
Create a cursor with the provided image.
bool loadFromSystem(Type type)
Create a native system cursor.
Utility class that makes any derived class non-copyable.
Window that serves as a base for other windows.