panel

package
v0.0.0-...-40e17fa Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Panel

type Panel struct {
	Bounds image.Rectangle
	// contains filtered or unexported fields
}

func New

func New(w, h int) *Panel

func (*Panel) AddBar

func (p *Panel) AddBar(source func() uint8, color color.RGBA)

func (*Panel) AddButton

func (p *Panel) AddButton(text string, callback func(), source func() bool) *button.Button

func (*Panel) AddDivider

func (p *Panel) AddDivider()

func (*Panel) AddInvertedLabel

func (p *Panel) AddInvertedLabel(source func() string, style string)

func (*Panel) AddLabel

func (p *Panel) AddLabel(source func() string, style string)

func (*Panel) Clear

func (p *Panel) Clear()

func (*Panel) Draw

func (p *Panel) Draw(image *ebiten.Image)

func (*Panel) LeftMouseButtonPress

func (p *Panel) LeftMouseButtonPress(x, y int) bool

func (*Panel) LeftMouseButtonRelease

func (p *Panel) LeftMouseButtonRelease(x, y int) bool

func (*Panel) Lock

func (p *Panel) Lock(n int)

func (*Panel) Resize

func (p *Panel) Resize(w, h int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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