color

package
v0.0.0-...-715945f Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComboBox

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

func NewComboBox

func NewComboBox(maxWidth, maxHeight float32, initialColor nk.Color, clickListener func(comboBox *ComboBox)) *ComboBox

func NewComboBoxAsChild

func NewComboBoxAsChild(parent nkf.RecursiveDrawable, maxWidth, maxHeight float32, initialColor nk.Color, clickListener func(comboBox *ComboBox)) *ComboBox

func (*ComboBox) AddChild

func (comboBox *ComboBox) AddChild(drawable nkf.Drawable)

func (*ComboBox) ChildByIndex

func (comboBox *ComboBox) ChildByIndex(index int) nkf.Drawable

func (*ComboBox) ClearChildren

func (comboBox *ComboBox) ClearChildren()

func (*ComboBox) Color

func (comboBox *ComboBox) Color() nk.Color

func (*ComboBox) IndexOfChild

func (comboBox *ComboBox) IndexOfChild(drawable nkf.Drawable) int

func (*ComboBox) MaxHeight

func (comboBox *ComboBox) MaxHeight() float32

func (*ComboBox) Render

func (comboBox *ComboBox) Render(ctx *nk.Context)

func (*ComboBox) SetColor

func (comboBox *ComboBox) SetColor(color nk.Color)

func (*ComboBox) SetMaxHeight

func (comboBox *ComboBox) SetMaxHeight(maxHeight float32)

func (*ComboBox) SetWidth

func (comboBox *ComboBox) SetWidth(width float32)

func (*ComboBox) Width

func (comboBox *ComboBox) Width() float32

type Picker

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

func NewPicker

func NewPicker(initialColor nk.Color, format nk.ColorFormat, changeListener func(picker *Picker)) *Picker

func NewPickerAsChild

func NewPickerAsChild(parent nkf.RecursiveDrawable, initialColor nk.Color, format nk.ColorFormat, changeListener func(picker *Picker)) *Picker

func (*Picker) Color

func (picker *Picker) Color() nk.Color

func (*Picker) ColorFormat

func (picker *Picker) ColorFormat() nk.ColorFormat

func (*Picker) Render

func (picker *Picker) Render(ctx *nk.Context)

func (*Picker) SetColor

func (picker *Picker) SetColor(color nk.Color)

func (*Picker) SetColorFormat

func (picker *Picker) SetColorFormat(colorFormat nk.ColorFormat)

Jump to

Keyboard shortcuts

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