类型 ColorPicker

API 文档由 Go 源码生成,内容为英文。

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

构造函数

BeginColorPicker#

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

方法

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.