mirror of
https://github.com/glfw/glfw.git
synced 2026-11-18 04:44:54 +00:00
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:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user