palettegrideditorwidget

package
v0.0.0-...-165de30 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 7 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,
	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