Versions in this module Expand all Collapse all v0 v0.7.4 Jan 11, 2025 Changes in this version + var Baseline = _l.Baseline + var End = _l.End + var Exact = _l.Exact + var Expanded = _l.Expanded + var FillShape = _p.FillShape + var Flexed = _l.Flexed + var Horizontal = _l.Horizontal + var Middle = _l.Middle + var Pt = _i.Pt + var Rigid = _l.Rigid + var SpaceAround = _l.SpaceAround + var SpaceBetween = _l.SpaceBetween + var SpaceEnd = _l.SpaceEnd + var SpaceEvenly = _l.SpaceEvenly + var SpaceSides = _l.SpaceSides + var SpaceStart = _l.SpaceStart + var Stacked = _l.Stacked + var Start = _l.Start + var UniformInset = _l.UniformInset + var Vertical = _l.Vertical + type Alignment = _l.Alignment + type Axis = _l.Axis + type Constraints = _l.Constraints + type Dim = _l.Dimensions + type Dp = _u.Dp + type Flex = _l.Flex + type FlexChild = _l.FlexChild + type Gx = _l.Context + type Inset = _l.Inset + type NRGBA = _c.NRGBA + type Point = _i.Point + type Rectangle = _i.Rectangle + type Sp = _u.Sp + type Spacer = _l.Spacer + type Spacing = _l.Spacing + type Stack = _l.Stack + type Widget = _l.Widget v0.7.3 Jan 11, 2025 v0.7.2 Jan 11, 2025 Changes in this version + type Bool struct + Value 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 + 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) 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, bool) + 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(gtx layout.Context, 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) (deletedRunes int) + func (e *Editor) Insert(s string) (insertedRunes int) + 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) (EditorEvent, bool) + 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) 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) bool + type SubmitEvent struct + Text string + type TextInfo struct + Truncated int