Versions in this module Expand all Collapse all v0 v0.0.0 May 10, 2021 Changes in this version + type Bool struct + Value bool + func (b *Bool) Changed() bool + func (b *Bool) History() []Press + func (b *Bool) Hovered() bool + func (b *Bool) Layout(gtx layout.Context) layout.Dimensions + func (b *Bool) Pressed() bool + type Border struct + Color color.NRGBA + CornerRadius unit.Value + Width unit.Value + func (b Border) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions + type ChangeEvent struct + type Click struct + Modifiers key.Modifiers + NumClicks int + type Clickable struct + func (b *Clickable) Click() + func (b *Clickable) Clicked() bool + func (b *Clickable) Clicks() []Click + func (b *Clickable) History() []Press + func (b *Clickable) Hovered() bool + func (b *Clickable) Layout(gtx layout.Context) layout.Dimensions + func (b *Clickable) Pressed() bool + type Editor struct + Alignment text.Alignment + Mask rune + SingleLine bool + Submit bool + func (e *Editor) CaretCoords() f32.Point + func (e *Editor) CaretPos() (line, col int) + func (e *Editor) ClearSelection() + func (e *Editor) Delete(runes int) + func (e *Editor) Events() []EditorEvent + func (e *Editor) Focus() + func (e *Editor) Focused() bool + func (e *Editor) Insert(s string) + func (e *Editor) Layout(gtx layout.Context, sh text.Shaper, font text.Font, size unit.Value) layout.Dimensions + func (e *Editor) Len() int + func (e *Editor) MoveCaret(startDelta, endDelta int) + func (e *Editor) NumLines() int + func (e *Editor) PaintCaret(gtx layout.Context) + func (e *Editor) PaintSelection(gtx layout.Context) + func (e *Editor) PaintText(gtx layout.Context) + func (e *Editor) SelectedText() string + func (e *Editor) Selection() (start, end int) + func (e *Editor) SelectionLen() int + func (e *Editor) SetCaret(start, end int) + func (e *Editor) SetText(s string) + func (e *Editor) Text() string + type EditorEvent interface + type Enum struct + Value string + func (e *Enum) Changed() bool + func (e *Enum) Hovered() (string, bool) + func (e *Enum) Layout(gtx layout.Context, key string) layout.Dimensions + type Fit uint8 + const Contain + const Cover + const Fill + const ScaleDown + const Unscaled + type Float struct + Axis layout.Axis + Value float32 + func (f *Float) Changed() bool + func (f *Float) Dragging() bool + func (f *Float) Layout(gtx layout.Context, pointerMargin int, min, max float32) layout.Dimensions + func (f *Float) Pos() float32 + type Icon struct + Color color.NRGBA + func NewIcon(data []byte) (*Icon, error) + func (ic *Icon) Layout(gtx layout.Context, sz unit.Value) layout.Dimensions + type Image struct + Fit Fit + Position layout.Direction + Scale float32 + Src paint.ImageOp + func (im Image) Layout(gtx layout.Context) layout.Dimensions + type Label struct + Alignment text.Alignment + MaxLines int + func (l Label) Layout(gtx layout.Context, s text.Shaper, font text.Font, size unit.Value, txt string) layout.Dimensions + type Press struct + Cancelled bool + End time.Time + Position f32.Point + Start time.Time + type SelectEvent struct + type SubmitEvent struct + Text string