MCPcopy
hub / github.com/EngoEngine/engo / SetCursorVisibility

Function SetCursorVisibility

engo_js.go:456–462  ·  view source on GitHub ↗

SetCursorVisibility sets the visibility of the cursor. If true the cursor is visible, if false the cursor is not.

(visible bool)

Source from the content-addressed store, hash-verified

454//SetCursorVisibility sets the visibility of the cursor.
455//If true the cursor is visible, if false the cursor is not.
456func SetCursorVisibility(visible bool) {
457 if visible {
458 document.Get("body").Get("style").Set("cursor", "default")
459 } else {
460 document.Get("body").Get("style").Set("cursor", "none")
461 }
462}
463
464// IsAndroidChrome tells if the browser is Chrome for android
465func IsAndroidChrome() bool {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected