palette

package
v0.0.0-...-7fee067 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 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 Palette

type Palette struct {
	Game tortuga.Console
	component.Coordinate
	MessageBus   message.MessageBus
	Width        int
	ElementSize  int
	CurrentColor uint8
}

func (Palette) AlternateSelectElement

func (p Palette) AlternateSelectElement(coordinate component.Coordinate)

SelectElement will Set the element at the passed in coordinates to the active element.

func (Palette) IsWithinBounds

func (p Palette) IsWithinBounds(coordinate component.Coordinate) bool

IsWithinBounds will determine if a coordinate exists within the widget.

func (*Palette) Mailbox

func (p *Palette) Mailbox()

func (Palette) Render

func (p Palette) Render()

func (Palette) SelectElement

func (p Palette) SelectElement(coordinate component.Coordinate)

SelectElement will Set the element at the passed in coordinates to the active element.

func (Palette) Update

func (p Palette) Update()

Jump to

Keyboard shortcuts

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