Loading...
Searching...
No Matches
Cursor.h
Go to the documentation of this file.
1
2//
3// SFML - Simple and Fast Multimedia Library
4// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
5//
6// This software is provided 'as-is', without any express or implied warranty.
7// In no event will the authors be held liable for any damages arising from the use of this software.
8//
9// Permission is granted to anyone to use this software for any purpose,
10// including commercial applications, and to alter it and redistribute it freely,
11// subject to the following restrictions:
12//
13// 1. The origin of this software must not be misrepresented;
14// you must not claim that you wrote the original software.
15// If you use this software in a product, an acknowledgment
16// in the product documentation would be appreciated but is not required.
17//
18// 2. Altered source versions must be plainly marked as such,
19// and must not be misrepresented as being the original software.
20//
21// 3. This notice may not be removed or altered from any source distribution.
22//
24
25#ifndef SFML_CURSOR_H
26#define SFML_CURSOR_H
27
29// Headers
31#include <SFML/System/Vector2.h>
32#include <SFML/Window/Export.h>
33#include <SFML/Window/Types.h>
34
35
91
92
122
123
137
138
146
147
148#endif // SFML_CURSOR_H
unsigned char sfUint8
Definition Config.h:168
sfCursor * sfCursor_createFromSystem(sfCursorType type)
Create a native system cursor.
sfCursor * sfCursor_createFromPixels(const sfUint8 *pixels, sfVector2u size, sfVector2u hotspot)
Create a cursor with the provided image.
void sfCursor_destroy(sfCursor *cursor)
Destroy a cursor.
sfCursorType
Enumeration of the native system cursor types.
Definition Cursor.h:68
@ sfCursorSizeVertical
Vertical double arrow cursor.
Definition Cursor.h:75
@ sfCursorHand
Pointing hand cursor.
Definition Cursor.h:73
@ sfCursorNotAllowed
Action not allowed cursor.
Definition Cursor.h:89
@ sfCursorWait
Busy cursor.
Definition Cursor.h:71
@ sfCursorSizeBottomLeftTopRight
Double arrow cursor going from bottom-left to top-right.
Definition Cursor.h:77
@ sfCursorSizeTop
Up arrow cursor on Linux, same as SizeVertical on other platforms.
Definition Cursor.h:80
@ sfCursorCross
Crosshair cursor.
Definition Cursor.h:87
@ sfCursorSizeLeft
Left arrow cursor on Linux, same as SizeHorizontal on other platforms.
Definition Cursor.h:78
@ sfCursorSizeRight
Right arrow cursor on Linux, same as SizeHorizontal on other platforms.
Definition Cursor.h:79
@ sfCursorHelp
Help cursor.
Definition Cursor.h:88
@ sfCursorSizeTopLeft
Top-left arrow cursor on Linux, same as SizeTopLeftBottomRight on other platforms.
Definition Cursor.h:82
@ sfCursorSizeTopLeftBottomRight
Double arrow cursor going from top-left to bottom-right.
Definition Cursor.h:76
@ sfCursorArrowWait
Busy arrow cursor.
Definition Cursor.h:70
@ sfCursorArrow
Arrow cursor (default)
Definition Cursor.h:69
@ sfCursorSizeTopRight
Top-right arrow cursor on Linux, same as SizeBottomLeftTopRight on other platforms.
Definition Cursor.h:85
@ sfCursorSizeBottomRight
Bottom-right arrow cursor on Linux, same as SizeTopLeftBottomRight on other platforms.
Definition Cursor.h:83
@ sfCursorSizeHorizontal
Horizontal double arrow cursor.
Definition Cursor.h:74
@ sfCursorSizeBottomLeft
Bottom-left arrow cursor on Linux, same as SizeBottomLeftTopRight on other platforms.
Definition Cursor.h:84
@ sfCursorText
I-beam, cursor when hovering over a field allowing text entry.
Definition Cursor.h:72
@ sfCursorSizeAll
Combination of SizeHorizontal and SizeVertical.
Definition Cursor.h:86
@ sfCursorSizeBottom
Down arrow cursor on Linux, same as SizeVertical on other platforms.
Definition Cursor.h:81
#define CSFML_WINDOW_API
struct sfCursor sfCursor
2-component vector of unsigned integers
Definition Vector2.h:50