MCPcopy Create free account
hub / github.com/cogentcore/core / Set

Method Set

system/cursor.go:26–26  ·  view source on GitHub ↗

Set sets the active cursor to the given cursor as an enum, which is typically a [cursors.Cursor], unless you are extending the default cursor set, in which case it should be a type you defined. The string version of the enum value must correspond to a filename of the form "name.svg" in [cogentcore.o

(cursor enums.Enum)

Source from the content-addressed store, hash-verified

24 // [cogentcore.org/core/cursors.Cursors]; this will be satisfied automatically by all
25 // [cursor.Cursor] values.
26 Set(cursor enums.Enum) error
27
28 // IsVisible returns whether cursor is currently visible (according to [Cursor.Hide] and [Cursor.Show] actions)
29 IsVisible() bool

Callers 15

RunBuiltinOrCommandMethod · 0.65
NewSidesFunction · 0.65
NewSideValuesFunction · 0.65
NewSideFloatsFunction · 0.65
NewSideColorsFunction · 0.65
SetAnyMethod · 0.65
SetStringMethod · 0.65
style_props.goFile · 0.65
DefaultsMethod · 0.65
LayoutDefaultsMethod · 0.65
insetsChangedFunction · 0.65
updateConfigFunction · 0.65

Implementers 1

CursorBasesystem/cursor.go

Calls

no outgoing calls

Tested by 1

TestCoreLogoFunction · 0.52