palettegridwidget

package
v0.0.0-...-667d129 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package palettegridwidget provides data for viewing and editing 256-colors palettes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaletteColor

type PaletteColor interface {
	RGBA() uint32
	SetRGBA(uint32)
}

PaletteColor represents palette color

type PaletteGridWidget

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

PaletteGridWidget represents a palette grid

func Create

func Create(tl hscommon.TextureLoader, id string, colors *[]PaletteColor) *PaletteGridWidget

Create creates a new palette grid widget

func (*PaletteGridWidget) Build

func (p *PaletteGridWidget) Build()

Build build a new widget

func (*PaletteGridWidget) OnClick

func (p *PaletteGridWidget) OnClick(onClick func(idx int)) *PaletteGridWidget

OnClick sets onClick callback

func (*PaletteGridWidget) UpdateImage

func (p *PaletteGridWidget) UpdateImage()

UpdateImage updates a palette image. should be called when palete colors gets changed

Jump to

Keyboard shortcuts

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