Versions in this module Expand all Collapse all v0 v0.1.1 Oct 19, 2026 v0.1.0 Oct 19, 2026 Changes in this version + var EnglishEditingWords = EditingWords + type AccessibleNode struct + Area draw2d.Rect + ID ID + LongPressable bool + Parent ID + Pressable bool + Scrollable bool + Typing bool + type Align int + const Center + const End + const Start + type Backdrop interface + Paint func(area draw2d.Rect, drawing *draw2d.List) + type ChipLook struct + Fill draw2d.Color + Ink draw2d.Color + type Column struct + Align Align + Title string + Weight draw2d.Weight + Width Sizing + type Context struct + KeyboardNavigation KeyboardNavigation + LessMotion bool + Theme Theme + func New() (*Context, error) + func NewWithMeasurer(measurer draw2d.Measurer) *Context + func (ui *Context) Animate(name string, target float32, duration time.Duration) float32 + func (ui *Context) Appear(name string, duration time.Duration) float32 + func (ui *Context) Area(path ...string) (draw2d.Rect, bool) + func (ui *Context) Back() bool + func (ui *Context) Begin(state *input.State) + func (ui *Context) Box(layout Layout, content func()) + func (ui *Context) Button(label string) bool + func (ui *Context) Caption(text string) + func (ui *Context) Checkbox(label string, value *bool) bool + func (ui *Context) Chip(icon, label string, look ChipLook) bool + func (ui *Context) Clickable(name string, layout Layout, looks Looks, content func()) bool + func (ui *Context) ClipboardText() string + func (ui *Context) Column(content func()) + func (ui *Context) Copy(text string) + func (ui *Context) Describe(description Description) + func (ui *Context) DragSource(name string, payload any, layout Layout, content func()) bool + func (ui *Context) Dragging() (Drag, bool) + func (ui *Context) Drawing() *draw2d.List + func (ui *Context) DropTarget(name string, layout Layout, accepts func(payload any) bool, content func()) (payload any, dropped bool) + func (ui *Context) DroppedOnScreen() (Drag, bool) + func (ui *Context) EditTypedField(edit KeyboardText) + func (ui *Context) EditingWords() EditingWords + func (ui *Context) End() + func (ui *Context) FieldFocused(name string) bool + func (ui *Context) FilePicker(options FilePickerOptions) (path string, closed bool) + func (ui *Context) FlatButton(label string) bool + func (ui *Context) FlatIconButton(icon, label string) bool + func (ui *Context) Focus(path ...string) + func (ui *Context) FocusField(name string) + func (ui *Context) Fold(name string, open bool, duration time.Duration, layout Layout, content func()) + func (ui *Context) Frame(layout Layout, look Look, content func()) + func (ui *Context) Grid(columns int, content func()) + func (ui *Context) HasKeyboard() bool + func (ui *Context) Heading(text string) + func (ui *Context) Icon(name string) + func (ui *Context) IconButton(icon, label string) bool + func (ui *Context) IconSized(name string, size float32, color draw2d.Color) + func (ui *Context) Image(picture *draw2d.Image, layout Layout, radius float32) + func (ui *Context) Insets() Insets + func (ui *Context) Label(text string) + func (ui *Context) List(name string, layout Layout, count int, rowHeight float32, row func(index int)) + func (ui *Context) ListBox(name string, layout Layout, items []string, selected *int) bool + func (ui *Context) LongPressed() bool + func (ui *Context) MenuButton(icon, label string, content func()) + func (ui *Context) MenuItem(icon, label, hint string) bool + func (ui *Context) Modal(name string, options LayerOptions, content func()) (dismissed bool) + func (ui *Context) NumberField(name string, value *float32, minimum, maximum, step float32, format string) bool + func (ui *Context) Overlay(name string, options LayerOptions, content func()) + func (ui *Context) Paint(layout Layout, paint func(area draw2d.Rect, drawing *draw2d.List)) + func (ui *Context) Panel(title string, content func()) + func (ui *Context) PanelWith(title string, options PanelOptions, content func()) + func (ui *Context) Pointer() (x, y float32) + func (ui *Context) Pop() + func (ui *Context) Popover(name string, open *bool, look Look, content func()) + func (ui *Context) Pressing() bool + func (ui *Context) PrimaryButton(label string) bool + func (ui *Context) PrimaryIconButton(icon, label string) bool + func (ui *Context) Push(name string) + func (ui *Context) ReleaseKeyboard() + func (ui *Context) RemovableChip(icon, label string, look ChipLook) (clicked, removed bool) + func (ui *Context) RequestFrame(delay time.Duration) + func (ui *Context) Resizable(name string, side Side, size *float32, minimum, maximum float32, layout Layout, ...) bool + func (ui *Context) Row(content func()) + func (ui *Context) ScreenReaderAct(id ID, action ReaderAction) + func (ui *Context) ScreenReaderNodes() []AccessibleNode + func (ui *Context) ScreenReaderOn() bool + func (ui *Context) ScreenReaderSetText(id ID, text string) + func (ui *Context) ScrollArea(name string, layout Layout, content func()) + func (ui *Context) ScrollOffset(name string) float32 + func (ui *Context) ScrollPull(name string) (pulling, releasedAt float32) + func (ui *Context) Select(name string, selected *int, options []string) bool + func (ui *Context) Selectable(icon, label string, selected bool) bool + func (ui *Context) Separator() + func (ui *Context) SetEditingWords(words EditingWords) + func (ui *Context) SetInsets(insets Insets) + func (ui *Context) SetScreenReader(on bool) + func (ui *Context) SetScreenReaderFocus(id ID) + func (ui *Context) SetTextScale(scale float32) + func (ui *Context) Sheet(title string, options SheetOptions, content func()) (dismissed bool) + func (ui *Context) Size() (width, height float32) + func (ui *Context) Slider(name string, value *float32, minimum, maximum float32) bool + func (ui *Context) SliderStep(name string, value *float32, minimum, maximum, step float32) bool + func (ui *Context) Spacer() + func (ui *Context) SwipeBox(name string, layout Layout, axis Direction, content func(swipe Swipe)) + func (ui *Context) Table(name string, layout Layout, columns []Column, rows func(table *Table)) + func (ui *Context) Tabs(name string, selected *int, labels ...string) bool + func (ui *Context) TakeKeyboard() + func (ui *Context) Text(text string, style TextStyle) + func (ui *Context) TextField(name string, text *string) bool + func (ui *Context) TextFieldWith(name string, text *string, options TextFieldOptions) bool + func (ui *Context) TextScale() float32 + func (ui *Context) Toast(text string, warning bool) + func (ui *Context) Toggle(label string, value *bool) bool + func (ui *Context) Tooltip(text string) + func (ui *Context) Touches() []input.Touch + func (ui *Context) TypedField() (KeyboardText, bool) + func (ui *Context) Typing() bool + func (ui *Context) WantsKeyboard() bool + func (ui *Context) WantsMouse() bool + type Description struct + Checked bool + Disabled bool + Hidden bool + Label string + Range Range + Role Role + Secret bool + Selected bool + Value string + type Direction int + const Horizontal + const Vertical + type Drag struct + OverScreen bool + Payload any + X float32 + Y float32 + type Edge int + const DockBottom + const DockLeft + const DockRight + const DockTop + const Floating + type EditingWords struct + Copy string + Cut string + Paste string + SelectAll string + type FileEntry struct + Folder bool + Name string + type FilePickerOptions struct + Folder bool + Places []string + ReadFolder func(folder string) ([]FileEntry, error) + Start string + Suffixes []string + Title string + type ID uint64 + type Insets struct + Bottom float32 + Left float32 + Right float32 + Top float32 + type KeyboardNavigation int + const Always + const WhenGiven + type KeyboardText struct + ComposingEnd int + ComposingStart int + Field ID + Secret bool + SelectionEnd int + SelectionStart int + Text string + type LayerOptions struct + AlignX Align + AlignY Align + Height Sizing + Hidden float32 + Leave Leave + Padding Padding + Width Sizing + type Layout struct + AlignX Align + AlignY Align + Columns int + Direction Direction + Gap float32 + Height Sizing + Padding Padding + Width Sizing + Wrap bool + type Leave struct + Duration time.Duration + X float32 + Y float32 + type Look struct + Backdrop Backdrop + Border draw2d.Color + BorderWidth float32 + Clip bool + Edge draw2d.Color + EdgeWidth float32 + Fill draw2d.Color + Radius float32 + Shadow bool + type Looks struct + Hovered Look + Normal Look + Pressed Look + type Padding struct + Bottom float32 + Left float32 + Right float32 + Top float32 + func Pad(all float32) Padding + func PadXY(horizontal, vertical float32) Padding + type PanelOptions struct + Dock Edge + Height Sizing + Locked bool + Width Sizing + X float32 + Y float32 + type Range struct + Current float32 + Maximum float32 + Minimum float32 + type ReaderAction int + const ReaderBackward + const ReaderForward + const ReaderLongPress + const ReaderPress + type Role int + const ButtonRole + const CheckboxRole + const FieldRole + const HeadingRole + const ImageRole + const NoRole + const RadioRole + const ScrollRole + const SliderRole + const SwitchRole + const TabRole + const TextRole + type RowLook struct + Icon string + IconInk draw2d.Color + Indent float32 + Secondary string + SecondaryWeight draw2d.Weight + Tile draw2d.Color + type SheetOptions struct + Width Sizing + type Side int + const BottomSide + const LeftSide + const RightSide + const TopSide + type Sizing struct + Max float32 + Min float32 + func Fit() Sizing + func Fixed(pixels float32) Sizing + func Grow() Sizing + func GrowBy(weight float32) Sizing + func Percent(share float32) Sizing + func Share(weight float32) Sizing + func (sizing Sizing) Between(minimum, maximum float32) Sizing + type Swipe struct + Area draw2d.Rect + Held bool + Offset float32 + Released bool + Velocity float32 + type Table struct + func (table *Table) Group(caption string) + func (table *Table) Row(id string, selected bool, cells ...string) bool + func (table *Table) RowWith(id string, selected bool, look RowLook, cells ...string) bool + type TextFieldOptions struct + MaxLength int + Placeholder string + Plain bool + Secret bool + Weight draw2d.Weight + Width Sizing + type TextStyle struct + Color draw2d.Color + Shadow draw2d.Color + Size float32 + Weight draw2d.Weight + type Theme struct + BackdropBlur float32 + Background draw2d.Color + ButtonGap float32 + ButtonPadding float32 + ButtonRadius float32 + ButtonWeight draw2d.Weight + CheckBorder float32 + CheckLine draw2d.Color + CheckMark float32 + CheckRadius float32 + CheckSize float32 + CheckedBorder draw2d.Color + Chosen draw2d.Color + ChosenInk draw2d.Color + ChosenWeight draw2d.Weight + ControlHeight float32 + ControlLine draw2d.Color + ControlRadius float32 + Danger draw2d.Color + EdgeWidth float32 + FieldFocusEdge bool + FlatHeight float32 + FlatInk draw2d.Color + FlatPadding float32 + FocusRing draw2d.Color + FocusWidth float32 + Gap float32 + HeadingLineHeight float32 + HeadingSize float32 + IconSize float32 + Ink draw2d.Color + InkQuiet draw2d.Color + InkSoft draw2d.Color + ItemGap float32 + ItemIconInk draw2d.Color + ItemPadding float32 + Line draw2d.Color + LineHeight float32 + OnPrimary draw2d.Color + Padding float32 + PanelMinWidth float32 + PanelRadius float32 + Positive draw2d.Color + PressScale float32 + Primary draw2d.Color + PrimaryEdge draw2d.Color + PrimaryTint draw2d.Color + Scrim draw2d.Color + ScrollStep float32 + Selection draw2d.Color + Shadow draw2d.Color + ShadowBlur float32 + ShadowDrop float32 + SmallTextSize float32 + Sunken draw2d.Color + Surface draw2d.Color + TextSize float32 + TooltipDelay time.Duration + Warning draw2d.Color + func DarkTheme() Theme + func LightTheme() Theme