SetCursor changes the cursor
(c Cursor)
| 443 | |
| 444 | // SetCursor changes the cursor |
| 445 | func 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. |