Type ColorPicker

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

Constructors

BeginColorPicker#

func BeginColorPicker(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect, options ColorPickerOptions) ColorPicker

Methods

Paint#

func (picker ColorPicker) Paint() ColorPickerLayout

PaintPanel#

func (picker ColorPicker) PaintPanel() ColorPickerLayout

PaintPanel paints only the open popup, retaining the same anchor and IDs.

PaintTrigger#

func (picker ColorPicker) PaintTrigger()

PaintTrigger can be used inside a clipped form; paint its panel afterwards with PaintPanel so the popup belongs to the window rather than that clip.