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::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

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

SizeAll = 9 #

Combination of SizeHorizontal and SizeVertical

Cross = 10 #

Crosshair cursor

Help = 11 #

Help cursor

NotAllowed = 12 #

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_left_top_right? #

View source

#size_horizontal? #

View source

#size_top_left_bottom_right? #

View source

#size_vertical? #

View source

#text? #

View source

#wait? #

View source