Added glfwCreateStandardCursor.

This function allows the creation of cursor objects using one of several
standard cursor shapes from the current system cursor theme.
This commit is contained in:
Camilla Berglund
2014-09-02 16:52:16 +02:00
parent 1495134398
commit 2a1375e97c
11 changed files with 246 additions and 8 deletions
+14
View File
@@ -343,6 +343,20 @@ When a cursor is destroyed, it is removed from any window where it is set. This
does not affect the cursor modes of those windows.
@subsubsection input_cursor_standard Standard cursor shapes
Cursor objects with platform-specific variants of the
[standard shapes](@ref shapes) can be created with @ref
glfwCreateStandardCursor.
@code
GLFWcursor* cursor = glfwCreateStandardCursor(GLFW_HRESIZE_CURSOR);
@endcode
These cursor objects behave in the exact same way as those created with @ref
glfwCreateCursor except that the platform provides the cursor image data.
@subsection input_cursor_enter Cursor enter/leave events
If you wish to be notified when the cursor enters or leaves the client area of
+3 -4
View File
@@ -9,10 +9,9 @@
@subsection news_31_cursor Custom system cursor support
GLFW now supports creating and setting custom system cursors. They can be
created with @ref glfwCreateCursor, set with @ref glfwSetCursor and destroyed
with @ref glfwDestroyCursor. Custom cursors are only visible in normal cursor
mode.
GLFW now supports creating and setting both custom and standard system cursors.
They can be created with @ref glfwCreateCursor or @ref glfwCreateStandardCursor,
set with @ref glfwSetCursor and destroyed with @ref glfwDestroyCursor.
@subsection news_31_drop File drop event support