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 ¶
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) 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
Click to show internal directories.
Click to hide internal directories.