cursor

package
v0.0.0-...-79996cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cursor handles custom mouse cursor sprite images.

Index

Constants

This section is empty.

Variables

View Source
var NoCursor = &Cursor{}

NoCursor hides the cursor entirely.

Functions

func Draw

func Draw(e render.Engine)

Draw the cursor on screen. NOTE: Does not draw on touchscreen devices.

Types

type Cursor

type Cursor struct {
	Filename string
	Sprite   *ui.Image
	Offset   render.Point
}
var Current *Cursor

Current selected cursor to draw on screen.

func NewFlood

func NewFlood(e render.Engine) *Cursor

NewFlood initializes the Flood cursor.

func NewPencil

func NewPencil(e render.Engine) *Cursor

NewPencil initializes the pencil cursor.

func NewPointer

func NewPointer(e render.Engine) *Cursor

NewPointer initializes the default pointer cursor.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL