MCPcopy Index your code
hub / github.com/EngoEngine/engo / SetCursor

Function SetCursor

engo_js.go:445–452  ·  view source on GitHub ↗

SetCursor changes the cursor

(c Cursor)

Source from the content-addressed store, hash-verified

443
444// SetCursor changes the cursor
445func SetCursor(c Cursor) {
446 switch c {
447 case CursorNone:
448 document.Get("body").Get("style").Set("cursor", "default")
449 case CursorHand:
450 document.Get("body").Get("style").Set("cursor", "hand")
451 }
452}
453
454//SetCursorVisibility sets the visibility of the cursor.
455//If true the cursor is visible, if false the cursor is not.

Callers

nothing calls this directly

Calls 2

GetMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected