painter

package
v0.0.0-...-ae8e44d Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpdateOp = updateOp{}

Functions

func GreenFill

func GreenFill(t screen.Texture, state *UI)

func Reset

func Reset(t screen.Texture, state *UI)

func WhiteFill

func WhiteFill(t screen.Texture, state *UI)

Types

type Loop

type Loop struct {
	Receiver Receiver
	// contains filtered or unexported fields
}

func (*Loop) Post

func (l *Loop) Post(op Operation)

func (*Loop) Start

func (l *Loop) Start(s screen.Screen)

func (*Loop) StopAndWait

func (l *Loop) StopAndWait()

type Operation

type Operation interface {
	Do(t screen.Texture, state *UI) (ready bool)
}

type OperationFunc

type OperationFunc func(t screen.Texture, state *UI)

func DrawRectangle

func DrawRectangle(args []string) OperationFunc

func Figure

func Figure(args []string) OperationFunc

func Move

func Move(args []string) OperationFunc

func (OperationFunc) Do

func (f OperationFunc) Do(t screen.Texture, state *UI) bool

type OperationList

type OperationList []Operation

func (OperationList) Do

func (ol OperationList) Do(t screen.Texture, state *UI) (ready bool)

type Receiver

type Receiver interface {
	Update(t screen.Texture)
}

type UI

type UI struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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