From 3bfe7ba0435b14579f1bc81058e41c2764c02513 Mon Sep 17 00:00:00 2001 From: JupiterRider <60042618+JupiterRider@users.noreply.github.com> Date: Thu, 19 Jan 2023 17:05:51 +0100 Subject: [PATCH] Mouse Cursor Enum added --- raylib/raylib.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/raylib/raylib.go b/raylib/raylib.go index 31e383f..9f285a8 100644 --- a/raylib/raylib.go +++ b/raylib/raylib.go @@ -1218,3 +1218,20 @@ const ( // Disable logging LogNone ) + +// Mouse cursor +type MouseCursor = int32 + +const ( + MouseCursorDefault MouseCursor = iota // Default pointer shape + MouseCursorArrow // Arrow shape + MouseCursorIBeam // Text writing cursor shape + MouseCursorCrosshair // Cross shape + MouseCursorPointingHand // Pointing hand cursor + MouseCursorResizeEW // Horizontal resize/move arrow shape + MouseCursorResizeNS // Vertical resize/move arrow shape + MouseCursorResizeNWSE // Top-left to bottom-right diagonal resize/move arrow shape + MouseCursorResizeNESW // The top-right to bottom-left diagonal resize/move arrow shape + MouseCursorResizeAll // The omni-directional resize/move cursor shape + MouseCursorNotAllowed // The operation-not-allowed shape +)