palettegrideditorwidget

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: 8 Imported by: 0

Documentation

Overview

Package palettegrideditorwidget provides a giu widget implementation of a palette editor, for viewing and editing a palette.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaletteGridEditorWidget

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

PaletteGridEditorWidget represents a palette grid editor

func Create

func Create(state []byte,
	textureLoader hscommon.TextureLoader,
	id string,
	colors *[]palettegridwidget.PaletteColor) *PaletteGridEditorWidget

Create creates a new palette grid editor widget

func (*PaletteGridEditorWidget) Build

func (p *PaletteGridEditorWidget) Build()

Build Builds a widget

func (*PaletteGridEditorWidget) OnChange

func (p *PaletteGridEditorWidget) OnChange(onChange func()) *PaletteGridEditorWidget

OnChange sets on change callback this callback is ran, when editor's slider or field gets change

Jump to

Keyboard shortcuts

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