widgets

package
v0.0.0-...-c5bdd4e Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: Apache-2.0 Imports: 10 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 {
	uik.Foundation
	Label *Label

	Clickers      map[Clicker]bool
	AddClicker    chan Clicker
	RemoveClicker chan Clicker
	// contains filtered or unexported fields
}

func NewButton

func NewButton(label string) (b *Button)

func (*Button) GetConfig

func (b *Button) GetConfig() (cfg ButtonConfig)

func (*Button) Initialize

func (b *Button) Initialize()

func (*Button) SetConfig

func (b *Button) SetConfig(cfg ButtonConfig)

type ButtonConfig

type ButtonConfig struct {
	Color color.Color
}

type Checkbox

type Checkbox struct {
	uik.Block
	// contains filtered or unexported fields
}

func NewCheckbox

func NewCheckbox(size geom.Coord) (c *Checkbox)

type Checker

type Checker chan bool

type Clicker

type Clicker chan wde.Button

type Entry

type Entry struct {
	uik.Block
	// contains filtered or unexported fields
}

func NewEntry

func NewEntry(size geom.Coord) (e *Entry)

func (*Entry) GrabFocus

func (e *Entry) GrabFocus()

func (*Entry) Initialize

func (e *Entry) Initialize()

type Image

type Image struct {
	uik.Block
	// contains filtered or unexported fields
}

func NewImage

func NewImage(cfg ImageConfig) (i *Image)

func (*Image) GetConfig

func (i *Image) GetConfig() (cfg ImageConfig)

func (*Image) Initialize

func (i *Image) Initialize()

func (*Image) SetConfig

func (i *Image) SetConfig(cfg ImageConfig)

type ImageConfig

type ImageConfig struct {
	Image image.Image
}

func (ImageConfig) ImageSize

func (ic ImageConfig) ImageSize() (s geom.Coord)

type KeyGrab

type KeyGrab struct {
	uik.Block
	// contains filtered or unexported fields
}

func NewKeyGrab

func NewKeyGrab(size geom.Coord) (l *KeyGrab)

func (*KeyGrab) GrabFocus

func (l *KeyGrab) GrabFocus()

type Label

type Label struct {
	uik.Block
	// contains filtered or unexported fields
}

func NewLabel

func NewLabel(size geom.Coord, data LabelConfig) (l *Label)

func (*Label) GetConfig

func (l *Label) GetConfig() (cfg LabelConfig)

func (*Label) Initialize

func (l *Label) Initialize()

func (*Label) SetConfig

func (l *Label) SetConfig(cfg LabelConfig)

type LabelConfig

type LabelConfig struct {
	Text     string
	FontSize float64
	Color    color.Color
}

type Radio

type Radio struct {
	uik.Foundation

	SetOptions chan<- []string

	GetOptions <-chan []string

	SetSelection chan<- int

	GetSelection <-chan int

	AddSelectionListener chan<- SelectionListener

	RemoveSelectionListener <-chan SelectionListener
	// contains filtered or unexported fields
}

func NewRadio

func NewRadio(options []string) (r *Radio)

func (*Radio) HandleEvent

func (r *Radio) HandleEvent(e interface{})

func (*Radio) HandleEvents

func (r *Radio) HandleEvents()

func (*Radio) Initialize

func (r *Radio) Initialize()

type RadioSelection

type RadioSelection struct {
	Index  int
	Option string
}

type SelectionListener

type SelectionListener chan RadioSelection

Jump to

Keyboard shortcuts

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