Versions in this module Expand all Collapse all v1 v1.0.3 Sep 11, 2022 v1.0.2 Sep 11, 2022 v1.0.1 Sep 10, 2022 Changes in this version + type Bool struct + Value bool + func (b *Bool) Changed() bool + func (b *Bool) Focused() bool + func (b *Bool) History() []Press + func (b *Bool) Hovered() bool + func (b *Bool) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions + func (b *Bool) Pressed() bool + type Border struct + Color color.NRGBA + CornerRadius unit.Dp + Width unit.Dp + 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) Focused() bool + func (b *Clickable) History() []Press + func (b *Clickable) Hovered() bool + func (b *Clickable) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions + func (b *Clickable) Pressed() bool + type Decorations struct + func (d *Decorations) Actions() system.Action + func (d *Decorations) Clickable(action system.Action) *Clickable + func (d *Decorations) LayoutMove(gtx layout.Context, w layout.Widget) layout.Dimensions + func (d *Decorations) Maximized() bool + func (d *Decorations) Perform(actions system.Action) + type Draggable struct + Type string + func (d *Draggable) Dragging() bool + func (d *Draggable) Layout(gtx layout.Context, w, drag layout.Widget) layout.Dimensions + func (d *Draggable) Offer(ops *op.Ops, mime string, data io.ReadCloser) + func (d *Draggable) Pos() f32.Point + func (d *Draggable) Requested() (mime string, requested bool) + type Editor struct + Alignment text.Alignment + Filter string + InputHint key.InputHint + Mask rune + MaxLen int + 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.Sp, ...) 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) Read(p []byte) (int, error) + func (e *Editor) Seek(offset int64, whence int) (int64, error) + 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 + func (e *Editor) WriteTo(w io.Writer) (int64, error) + type EditorEvent interface + type Enum struct + Value string + func (e *Enum) Changed() bool + func (e *Enum) Focused() (string, bool) + func (e *Enum) Hovered() (string, bool) + func (e *Enum) Layout(gtx layout.Context, k string, content layout.Widget) 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 + func NewIcon(data []byte) (*Icon, error) + func (ic *Icon) Layout(gtx layout.Context, color color.NRGBA) 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.Sp, txt string) layout.Dimensions + type List struct + type Press struct + Cancelled bool + End time.Time + Position image.Point + Start time.Time + type Scrollbar struct + func (s *Scrollbar) AddDrag(ops *op.Ops) + func (s *Scrollbar) AddIndicator(ops *op.Ops) + func (s *Scrollbar) AddTrack(ops *op.Ops) + func (s *Scrollbar) Dragging() bool + func (s *Scrollbar) IndicatorHovered() bool + func (s *Scrollbar) Layout(gtx layout.Context, axis layout.Axis, viewportStart, viewportEnd float32) layout.Dimensions + func (s *Scrollbar) ScrollDistance() float32 + func (s *Scrollbar) TrackHovered() bool + type SelectEvent struct + type SubmitEvent struct + Text string