Loading...
Searching...
No Matches
Standard cursor shapes
Input reference

## Description

These are the standard cursor shapes that can be requested from the platform (window system).

## Macros

#define | GLFW_ARROW_CURSOR 0x00036001
| The regular arrow cursor shape.
#define | GLFW_IBEAM_CURSOR 0x00036002
| The text input I-beam cursor shape.
#define | GLFW_CROSSHAIR_CURSOR 0x00036003
| The crosshair cursor shape.
#define | GLFW_POINTING_HAND_CURSOR 0x00036004
| The pointing hand cursor shape.
#define | GLFW_RESIZE_EW_CURSOR 0x00036005
| The horizontal resize/move arrow shape.
#define | GLFW_RESIZE_NS_CURSOR 0x00036006
| The vertical resize/move arrow shape.
#define | GLFW_RESIZE_NWSE_CURSOR 0x00036007
| The top-left to bottom-right diagonal resize/move arrow shape.
#define | GLFW_RESIZE_NESW_CURSOR 0x00036008
| The top-right to bottom-left diagonal resize/move arrow shape.
#define | GLFW_RESIZE_ALL_CURSOR 0x00036009
| The omni-directional resize/move cursor shape.
#define | GLFW_NOT_ALLOWED_CURSOR 0x0003600A
| The operation-not-allowed shape.
#define | GLFW_HRESIZE_CURSOR GLFW_RESIZE_EW_CURSOR
| Legacy name for compatibility.
#define | GLFW_VRESIZE_CURSOR GLFW_RESIZE_NS_CURSOR
| Legacy name for compatibility.
#define | GLFW_HAND_CURSOR GLFW_POINTING_HAND_CURSOR
| Legacy name for compatibility.

## Macro Definition Documentation

## GLFW_ARROW_CURSOR

#define GLFW_ARROW_CURSOR 0x00036001

The regular arrow cursor shape.

## GLFW_IBEAM_CURSOR

#define GLFW_IBEAM_CURSOR 0x00036002

The text input I-beam cursor shape.

## GLFW_CROSSHAIR_CURSOR

#define GLFW_CROSSHAIR_CURSOR 0x00036003

The crosshair cursor shape.

## GLFW_POINTING_HAND_CURSOR

#define GLFW_POINTING_HAND_CURSOR 0x00036004

The pointing hand cursor shape.

## GLFW_RESIZE_EW_CURSOR

#define GLFW_RESIZE_EW_CURSOR 0x00036005

The horizontal resize/move arrow shape. This is usually a horizontal double-headed arrow.

## GLFW_RESIZE_NS_CURSOR

#define GLFW_RESIZE_NS_CURSOR 0x00036006

The vertical resize/move shape. This is usually a vertical double-headed arrow.

## GLFW_RESIZE_NWSE_CURSOR

#define GLFW_RESIZE_NWSE_CURSOR 0x00036007

The top-left to bottom-right diagonal resize/move shape. This is usually a diagonal double-headed arrow.

Note
  macOS: This shape is provided by a private system API and may fail with GLFW_CURSOR_UNAVAILABLE in the future.
  Wayland: This shape is provided by a newer standard not supported by all cursor themes.
  X11: This shape is provided by a newer standard not supported by all cursor themes.

## GLFW_RESIZE_NESW_CURSOR

#define GLFW_RESIZE_NESW_CURSOR 0x00036008

The top-right to bottom-left diagonal resize/move shape. This is usually a diagonal double-headed arrow.

Note
  macOS: This shape is provided by a private system API and may fail with GLFW_CURSOR_UNAVAILABLE in the future.
  Wayland: This shape is provided by a newer standard not supported by all cursor themes.
  X11: This shape is provided by a newer standard not supported by all cursor themes.

## GLFW_RESIZE_ALL_CURSOR

#define GLFW_RESIZE_ALL_CURSOR 0x00036009

The omni-directional resize cursor/move shape. This is usually either a combined horizontal and vertical double-headed arrow or a grabbing hand.

## GLFW_NOT_ALLOWED_CURSOR

#define GLFW_NOT_ALLOWED_CURSOR 0x0003600A

The operation-not-allowed shape. This is usually a circle with a diagonal line through it.

Note
  Wayland: This shape is provided by a newer standard not supported by all cursor themes.
  X11: This shape is provided by a newer standard not supported by all cursor themes.

## GLFW_HRESIZE_CURSOR

#define GLFW_HRESIZE_CURSOR GLFW_RESIZE_EW_CURSOR

This is an alias for compatibility with earlier versions.

## GLFW_VRESIZE_CURSOR

#define GLFW_VRESIZE_CURSOR GLFW_RESIZE_NS_CURSOR

This is an alias for compatibility with earlier versions.

## GLFW_HAND_CURSOR

#define GLFW_HAND_CURSOR GLFW_POINTING_HAND_CURSOR

This is an alias for compatibility with earlier versions.