Cursor.newFromName

Creates a new cursor by looking up name in the current cursor theme.

A recommended set of cursor names that will work across different platforms can be found in the CSS specification:

| | | | | | --- | --- | ---- | --- | | "none" | "default" | "help" | "pointer" | | "context-menu" | "progress" | "wait" | "cell" | | "crosshair" | "text" | "vertical-text" | "alias" | | "copy" | "no-drop" | "move" | "not-allowed" | | "grab" | "grabbing" | "all-scroll" | "col-resize" | | "row-resize" | "n-resize" | "e-resize" | "s-resize" | | "w-resize" | "ne-resize" | "nw-resize" | "sw-resize" | | "se-resize" | "ew-resize" | "ns-resize" | "nesw-resize" | | "nwse-resize" | "zoom-in" | "zoom-out" | |

class Cursor
static
newFromName
(
string name
,)

Parameters

name string

the name of the cursor

fallback gdk.cursor.Cursor

null or the gdk.cursor.Cursor to fall back to when this one cannot be supported

Return Value

Type: gdk.cursor.Cursor

a new gdk.cursor.Cursor, or null if there is no cursor with the given name