brutal/brutal.glfw/Brutal.Glfw/Generated/Libraries/Glfw.Cursor.gen.cs
2026-10-15 14:12:02 +13:00

31 lines
1.4 KiB
C#

// <auto-generated/>
// Generated by Brutal.Glfw.Generate; do not edit by hand.
#nullable enable
namespace Brutal.GlfwApi
{
public static unsafe partial class Glfw
{
/// <summary>
/// Creates a cursor with a standard shape.
/// </summary>
/// <param name="shape">One of the
/// <see href="https://www.glfw.org/docs/latest/group__shapes.html">standard shapes</see>.</param>
/// <returns>A new cursor ready to use or <c>null</c> if an error occurred.</returns>
/// <remarks>
/// Returns a cursor with a
/// <see href="https://www.glfw.org/docs/latest/group__shapes.html">standard shape</see>, that can be set for
/// a window with <see cref="GlfwWindow.SetCursor"/>.
/// </remarks>
/// <possibleErrors>
/// <see cref="GlfwErrorCode.NotInitialized"/> <see cref="GlfwErrorCode.InvalidEnum"/>
/// <see cref="GlfwErrorCode.PlatformError"/>
/// </possibleErrors>
/// <threadSafety>
/// This function must only be called from the main thread.
/// </threadSafety>
/// <seealso cref="CreateCursor(in Brutal.GlfwApi.GlfwCursor.CreateInfo)"/>
/// <seealso href="https://www.glfw.org/docs/latest/input_guide.html#cursor_object">Cursor objects</seealso>
public static GlfwCursor CreateCursor(GlfwStandardCursor shape) => PInvoke.CreateStandardCursor((int)shape);
}
}