Skip to content

enum SF::Cursor::Type #

Enumeration of the native system cursor types

Refer to the following table to determine which cursor is available on which platform.

Type Linux Mac OS X Windows
SF::Cursor::Arrow yes yes yes
SF::Cursor::ArrowWait no no yes
SF::Cursor::Wait yes no yes
SF::Cursor::Text yes yes yes
SF::Cursor::Hand yes yes yes
SF::Cursor::SizeHorizontal yes yes yes
SF::Cursor::SizeVertical yes yes yes
SF::Cursor::SizeTopLeftBottomRight no yes* yes
SF::Cursor::SizeBottomLeftTopRight no yes* yes
SF::Cursor::SizeLeft yes yes** yes**
SF::Cursor::SizeRight yes yes** yes**
SF::Cursor::SizeTop yes yes** yes**
SF::Cursor::SizeBottom yes yes** yes**
SF::Cursor::SizeTopLeft yes yes** yes**
SF::Cursor::SizeTopRight yes yes** yes**
SF::Cursor::SizeBottomLeft yes yes** yes**
SF::Cursor::SizeBottomRight yes yes** yes**
SF::Cursor::SizeAll yes no yes
SF::Cursor::Cross yes yes yes
SF::Cursor::Help yes yes* yes
SF::Cursor::NotAllowed yes yes yes

* These cursor types are undocumented so may not be available on all versions, but have been tested on 10.13

** On Windows and macOS, double-headed arrows are used

Members#

Arrow = 0#

Arrow cursor (default)

ArrowWait = 1#

Busy arrow cursor

Wait = 2#

Busy cursor

Text = 3#

I-beam, cursor when hovering over a field allowing text entry

Hand = 4#

Pointing hand cursor

SizeHorizontal = 5#

Horizontal double arrow cursor

SizeVertical = 6#

Vertical double arrow cursor

SizeTopLeftBottomRight = 7#

Double arrow cursor going from top-left to bottom-right

SizeBottomLeftTopRight = 8#

Double arrow cursor going from bottom-left to top-right

SizeLeft = 9#

Left arrow cursor on Linux, same as SizeHorizontal on other platforms

SizeRight = 10#

Right arrow cursor on Linux, same as SizeHorizontal on other platforms

SizeTop = 11#

Up arrow cursor on Linux, same as SizeVertical on other platforms

SizeBottom = 12#

Down arrow cursor on Linux, same as SizeVertical on other platforms

SizeTopLeft = 13#

Top-left arrow cursor on Linux, same as SizeTopLeftBottomRight on other platforms

SizeBottomRight = 14#

Bottom-right arrow cursor on Linux, same as SizeTopLeftBottomRight on other platforms

SizeBottomLeft = 15#

Bottom-left arrow cursor on Linux, same as SizeBottomLeftTopRight on other platforms

SizeTopRight = 16#

Top-right arrow cursor on Linux, same as SizeBottomLeftTopRight on other platforms

SizeAll = 17#

Combination of SizeHorizontal and SizeVertical

Cross = 18#

Crosshair cursor

Help = 19#

Help cursor

NotAllowed = 20#

Action not allowed cursor

Methods#

#arrow?#

View source

#arrow_wait?#

View source

#cross?#

View source

#hand?#

View source

#help?#

View source

#not_allowed?#

View source

#size_all?#

View source

#size_bottom?#

View source

#size_bottom_left?#

View source

#size_bottom_left_top_right?#

View source

#size_bottom_right?#

View source

#size_horizontal?#

View source

#size_left?#

View source

#size_right?#

View source

#size_top?#

View source

#size_top_left?#

View source

#size_top_left_bottom_right?#

View source

#size_top_right?#

View source

#size_vertical?#

View source

#text?#

View source

#wait?#

View source