cursor

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.2.6

type Config interface {
	GetColor() pixel.Color
	GetDefaultCursor() string
}

type Cursor

type Cursor struct {
	X      int
	Y      int
	Brush  Type
	Width  int
	Height int
	Symbol string
	Color  pixel.Color
	Store  Store
}
var CC Cursor

func NewCursor added in v1.2.6

func NewCursor(cfg *config.Config) Cursor

func (*Cursor) DrawCursor

func (c *Cursor) DrawCursor(s Screen) [][]string

func (*Cursor) SetCursor

func (c *Cursor) SetCursor(cursor string)

type Screen added in v1.2.6

type Screen interface {
	GetPixels() [][]string
	GetWidth() int
	GetConfig() *config.Config
}

type Store

type Store struct {
	Symbol string
	Brush  Type
}

type Type

type Type int
const (
	Empty Type = iota
	Pointer
	Dot
	GLine
	VLine
	ESquare
	FSquare
	ECircle
	FCircle
	ContinuousLine
	SmoothContinuousLine
	FatContinuousLine
	DoubleContinuousLine
	Fill
)

Jump to

Keyboard shortcuts

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