label

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 Button

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

func NewButton

func NewButton(content string, clickListener func(button *Button)) *Button

func NewButtonAsChild

func NewButtonAsChild(parent nkf.RecursiveDrawable, content string, clickListener func(button *Button)) *Button

func (*Button) Content

func (button *Button) Content() string

func (*Button) Render

func (button *Button) Render(ctx *nk.Context)

func (*Button) SetClickListener

func (button *Button) SetClickListener(clickListener func(buttonLabel *Button))

func (*Button) SetContent

func (button *Button) SetContent(content string)

type ComboBox

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

func NewComboBox

func NewComboBox(maxWidth, maxHeight float32, initialText string, clickListener func(comboBox *ComboBox)) *ComboBox

func NewComboBoxAsChild

func NewComboBoxAsChild(parent nkf.RecursiveDrawable, maxWidth, maxHeight float32, initialText string, 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) Content

func (comboBox *ComboBox) Content() string

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) SetContent

func (comboBox *ComboBox) SetContent(content string)

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 Option

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

func NewOption

func NewOption(content string, active bool, clickListener func(option *Option)) *Option

func NewOptionAsChild

func NewOptionAsChild(parent nkf.RecursiveDrawable, content string, active bool, clickListener func(option *Option)) *Option

func (*Option) Active

func (option *Option) Active() bool

func (*Option) Content

func (option *Option) Content() string

func (*Option) Render

func (option *Option) Render(ctx *nk.Context)

func (*Option) SetActive

func (option *Option) SetActive(active bool)

func (*Option) SetContent

func (option *Option) SetContent(content string)

Jump to

Keyboard shortcuts

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