Versions in this module Expand all Collapse all v0 v0.0.1 Jan 21, 2024 Changes in this version + type Bool struct + Value 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) OnChecked(fn func(bool)) + func (b *Bool) Update(gtx layout.Context) 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(gtx layout.Context) bool + func (b *Clickable) Focus() + 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 + func (b *Clickable) Update(gtx layout.Context) []Click + type Decorations struct + 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) + func (d *Decorations) Update(gtx layout.Context) 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) Update(gtx layout.Context) (mime string, requested bool) + type Editor struct + Alignment text.Alignment + Filter string + InputHint key.InputHint + LineHeight unit.Sp + LineHeightScale float32 + Mask rune + MaxLen int + ReadOnly bool + SingleLine bool + Submit bool + WrapPolicy text.WrapPolicy + func (e *Editor) CaretCoords() f32.Point + func (e *Editor) CaretPos() (line, col int) + func (e *Editor) ClearSelection() + func (e *Editor) Delete(graphemeClusters 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, lt *text.Shaper, font font.Font, size unit.Sp, ...) layout.Dimensions + func (e *Editor) Len() int + func (e *Editor) MoveCaret(startDelta, endDelta int) + func (e *Editor) Read(p []byte) (int, error) + func (e *Editor) Regions(start, end int, regions []Region) []Region + 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) Update(gtx layout.Context) + func (e *Editor) WriteTo(w io.Writer) (int64, error) + type EditorEvent interface + type Enum struct + Value string + 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 + func (e *Enum) Update(gtx layout.Context) bool + type Fit uint8 + const Contain + const Cover + const Fill + const ScaleDown + const Unscaled + type Float struct + Value float32 + func (f *Float) Dragging() bool + func (f *Float) Layout(gtx layout.Context, axis layout.Axis, pointerMargin unit.Dp) layout.Dimensions + func (f *Float) Update(gtx layout.Context) bool + 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 + LineHeight unit.Sp + LineHeightScale float32 + MaxLines int + Truncator string + WrapPolicy text.WrapPolicy + func (l Label) Layout(gtx layout.Context, lt *text.Shaper, font font.Font, size unit.Sp, txt string, ...) layout.Dimensions + func (l Label) LayoutDetailed(gtx layout.Context, lt *text.Shaper, font font.Font, size unit.Sp, txt string, ...) (layout.Dimensions, TextInfo) + type List struct + type Press struct + Cancelled bool + End time.Time + Position image.Point + Start time.Time + type Region struct + Baseline int + Bounds image.Rectangle + 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) ScrollDistance() float32 + func (s *Scrollbar) TrackHovered() bool + func (s *Scrollbar) Update(gtx layout.Context, axis layout.Axis, viewportStart, viewportEnd float32) + type SelectEvent struct + type Selectable struct + Alignment text.Alignment + LineHeight unit.Sp + LineHeightScale float32 + MaxLines int + Truncator string + WrapPolicy text.WrapPolicy + func (l *Selectable) ClearSelection() + func (l *Selectable) Events() []EditorEvent + func (l *Selectable) Focus() + func (l *Selectable) Focused() bool + func (l *Selectable) Layout(gtx layout.Context, lt *text.Shaper, font font.Font, size unit.Sp, ...) layout.Dimensions + func (l *Selectable) Regions(start, end int, regions []Region) []Region + func (l *Selectable) SelectedText() string + func (l *Selectable) Selection() (start, end int) + func (l *Selectable) SelectionLen() int + func (l *Selectable) SetCaret(start, end int) + func (l *Selectable) SetText(s string) + func (l *Selectable) Text() string + func (l *Selectable) Truncated() bool + func (l *Selectable) Update(gtx layout.Context) + type SubmitEvent struct + Text string + type TextInfo struct + Truncated int