Versions in this module Expand all Collapse all v0 v0.2.2 Oct 28, 2026 v0.2.1 Oct 22, 2026 v0.2.0 Oct 20, 2026 Changes in this version type Font + func (f Font) MeasureStyled(s string, style TextStyle) int v0.1.0 Oct 16, 2026 Changes in this version + const AlertIconSize + const AlertWidth + const BadgeHeight + const BannerHeight + const BevelHeight + const ButtonHeight + const ButtonMinWidth + const ButtonPadding + const CalendarCellH + const CalendarCellW + const CalendarHeight + const CalendarWidth + const ChasingArrowsSize + const CheckGap + const CheckHeight + const CheckSize + const ColorWellH + const ColorWellW + const ColumnViewWidth + const DefaultRing + const DisclosureSize + const FileButtonW + const FileListH + const FileListW + const FlashDuration + const FrameWidth + const GroupPadding + const GrowBoxSize + const IconCellH + const IconCellW + const Indeterminate + const ListRowHeight + const MaxScale + const MenuBarHeight + const MenuFlash + const MenuItemHeight + const MenuSeparatorHeight + const MenuTitlePadding + const PlacardHeight + const PopupArrowBox + const PopupHeight + const PopupTabHeight + const ProgressHeight + const RulerHeight + const ScrollBarWidth + const ScrollMinThumb + const SheetCellH + const SheetCellW + const SheetRowHeadW + const SliderHeight + const SliderMinWidth + const SliderThumbH + const SliderThumbW + const SliderTrackH + const SplitMin + const SplitterWidth + const SpringDelay + const StepperHeight + const StepperWidth + const TabHeight + const TabPadding + const TabRaise + const TableHeaderHeight + const TableMinColumn + const TextFieldHeight + const TextLineHeight + const TitleBarHeight + const TitleBoxSize + const ToolbarHeight + const TreeIndent + const UtilityBarHeight + const UtilityBoxSize + const WindowHeaderHeight + const ZoomDuration + var Black = ui.RGB(0x00, 0x00, 0x00) + var Ember = Accent + var Graphite = Accent + var Gray1 = ui.RGB(0xEE, 0xEE, 0xEE) + var Gray10 = ui.RGB(0x55, 0x55, 0x55) + var Gray11 = ui.RGB(0x44, 0x44, 0x44) + var Gray12 = ui.RGB(0x22, 0x22, 0x22) + var Gray2 = ui.RGB(0xDD, 0xDD, 0xDD) + var Gray3 = ui.RGB(0xCC, 0xCC, 0xCC) + var Gray4 = ui.RGB(0xBB, 0xBB, 0xBB) + var Gray5 = ui.RGB(0xAA, 0xAA, 0xAA) + var Gray6 = ui.RGB(0x99, 0x99, 0x99) + var Gray7 = ui.RGB(0x88, 0x88, 0x88) + var Gray8 = ui.RGB(0x77, 0x77, 0x77) + var Gray9 = ui.RGB(0x66, 0x66, 0x66) + var Harbor = Accent + var IconAlign = [3][]string + var IconBold = []string + var IconItalic = []string + var IconUnderline = []string + var Lavender = Accent + var MacKeys = macKeyboard() + var Moss = Accent + var Orchid = Accent + var Papers = []struct{ ... } + var White = ui.RGB(0xFF, 0xFF, 0xFF) + func Alert(c *ui.Context, open *bool, kind AlertKind, message, detail string, ...) int + func Badge(c *ui.Context, text string) ui.Element + func Balloon(c *ui.Context, anchor ui.Element, text string) + func Banner(c *ui.Context, open *bool, kind AlertKind, text string) ui.Element + func Breadcrumbs(c *ui.Context, path []string) int + func Card(c *ui.Context, fn func()) ui.Element + func ChasingArrows(c *ui.Context) ui.Element + func ContextMenu(c *ui.Context, target ui.Element, items []MenuItem) + func Dialog(c *ui.Context, open *bool, title string, width int, fn func()) + func DrawAlertFrame(pn Pen) + func DrawAlertIcon(pn Pen, kind AlertKind) + func DrawBalloon(pn Pen) + func DrawBevelButton(pn Pen, s State, on bool) + func DrawButton(pn Pen, label string, s State) + func DrawCalendar(pn Pen, locale string, first time.Weekday, month, chosen, today time.Time, ...) + func DrawChasingArrows(pn Pen, step int) + func DrawCheckbox(pn Pen, mark CheckMark, s State) + func DrawContentRing(pn Pen) + func DrawDefaultRing(pn Pen, x, y, w, h int, s State) + func DrawDisclosure(pn Pen, open bool, s State) + func DrawFocusCircle(pn Pen, c ui.Color) + func DrawFocusRing(pn Pen, r int, c ui.Color) + func DrawGroupBox(pn Pen, title string, disabled bool) + func DrawGrowBox(pn Pen, active bool) + func DrawIcon(pn Pen, rows []string, a Accent, inverted bool) + func DrawIconView(pn Pen, items []IconItem, sel int, focused bool, a Accent) + func DrawLabelBox(pn Pen, face ui.Color) + func DrawListBox(pn Pen, items []string, top, sel int, focused, disabled bool, a Accent) + func DrawMenuBar(pn Pen, menus []Menu, hl int, a Accent) + func DrawMenuItem(pn Pen, it MenuItem, highlighted bool, a Accent) + func DrawMenuPanel(pn Pen, items []MenuItem, hl, w int, a Accent) + func DrawPagePreview(pn Pen, st PageSetupState) + func DrawPalette(pn Pen, chosen ui.Color) + func DrawPlacard(pn Pen) + func DrawPopupButton(pn Pen, text string, s State) + func DrawPopupWindow(pn Pen, title string, tabW int, open, active, pressed bool) + func DrawProgress(pn Pen, f float64, a Accent) + func DrawProgressIndeterminate(pn Pen, phase int, a Accent) + func DrawRadio(pn Pen, on bool, s State) + func DrawRuler(pn Pen, left, right, first int) + func DrawScrollBar(pn Pen, horizontal bool, value, visible, total float64, pressed ScrollPart, ...) + func DrawScrollBarInactive(pn Pen, horizontal bool) + func DrawSearchDecor(pn Pen, clear, disabled bool) + func DrawSheet(pn Pen, st *SheetState, top, left, rows, cols int, focused bool, a Accent) + func DrawSlider(pn Pen, f float64, n int, s State, a Accent) + func DrawSliderThumb(pn Pen, s State, a Accent) + func DrawSmallAlertIcon(pn Pen, kind AlertKind) + func DrawSplitter(pn Pen, vertical bool) + func DrawStepper(pn Pen, pressed int, s State) + func DrawTab(pn Pen, label string, selected bool, s State) + func DrawTabPane(pn Pen, gapX, gapW int) + func DrawTable(pn Pen, st *TableState, cols []TableColumn, order []int, top int, ...) + func DrawTextFrame(pn Pen, disabled bool) + func DrawTimeField(pn Pen, parts, seps []string, xs []int, seg int, focused, inactive bool, ...) + func DrawTitleBox(pn Pen, part WindowPart, pressed bool) + func DrawTree(pn Pen, roots []*TreeNode, top int, sel *TreeNode, focused bool, a Accent) + func DrawWell(pn Pen) + func DrawWindowFrame(pn Pen, title string, opts WindowOptions, collapsed bool, pressed WindowPart) + func DrawWindowHeader(pn Pen, left, right string) + func DrawZoomRects(pn Pen, from, to ui.Rect, t float32) + func EditCommand(c *ui.Context, cmd string) bool + func EmptyState(c *ui.Context, text string) ui.Element + func Find(text, query string, from int, o FindOptions) (int, int) + func FormatBar(c *ui.Context, d *RichText) ui.Element + func FormulaBar(c *ui.Context, st *SheetState) ui.Element + func GroupBox(c *ui.Context, title string, fn func()) ui.Element + func ImageWell(c *ui.Context, bmp *ui.Bitmap) ui.Element + func Inset(i, h, r int) int + func ItalicSlant(f Font) int + func Label(c *ui.Context, text string) ui.Element + func MenuBar(c *ui.Context, menus []Menu) ui.Element + func PageSetup(c *ui.Context, open *bool, st *PageSetupState) bool + func Pagination(c *ui.Context, page *int, pages int) ui.Element + func Paragraph(c *ui.Context, text string, f Font, width int) ui.Element + func PathPopup(c *ui.Context, path []string) int + func Placard(c *ui.Context, text string) ui.Element + func ProgressBar(c *ui.Context, value float64) ui.Element + func ProgressDialog(c *ui.Context, open *bool, title, message string, value float64, detail string) bool + func RadioGroup(c *ui.Context, fn func()) ui.Element + func ReplaceAll(text, query, with string, o FindOptions) (string, int) + func Ruler(c *ui.Context, st *RulerState) ui.Element + func SaveDialog(c *ui.Context, open *bool, st *FileDialogState, roots []*TreeNode, ...) bool + func ScrollView(c *ui.Context, st *ui.ScrollState, fn func()) ui.Element + func Separator(c *ui.Context) ui.Element + func SetClock(now func() time.Time) (previous func() time.Time) + func SetEastAsian(regular, bold func() *bitmap.Face) + func Split(c *ui.Context, pos *float32, first, second func()) ui.Element + func SplitPercent(c *ui.Context, p *float32, first, second func()) ui.Element + func SplitVertical(c *ui.Context, pos *float32, first, second func()) ui.Element + func SplitVerticalPercent(c *ui.Context, p *float32, first, second func()) ui.Element + func SpringOpen[T any](c *ui.Context, w *PopupWindowWidget, st *PopupWindowState) + func StatusBar(c *ui.Context, texts ...string) ui.Element + func Tag(c *ui.Context, text string) ui.Element + func TextIn(c *ui.Context, text string, f Font, ink ui.Color) ui.Element + func TimeField(c *ui.Context, t *time.Time, step int) ui.Element + func Toasts(c *ui.Context) ui.Element + func Toolbar(c *ui.Context, items []ToolItem) ui.Element + func ToolbarSeparator(c *ui.Context) ui.Element + func Use(c *ui.Context, th *Theme) + func WindowHeader(c *ui.Context, left, right string) ui.Element + func ZoomRects(c *ui.Context, from, to ui.Rect, start time.Time) bool + type Accent struct + Dark ui.Color + Light ui.Color + Mid ui.Color + Name string + func Accents() []Accent + type AlertKind int + const AlertCaution + const AlertNote + const AlertStop + type Align uint8 + const AlignCenter + const AlignLeft + const AlignRight + type BevelButtonWidget struct + func BevelButton(c *ui.Context, label string) *BevelButtonWidget + func IconButton(c *ui.Context, icon []string, label string) *BevelButtonWidget + func (b *BevelButtonWidget) Clicked() bool + func (b *BevelButtonWidget) Disabled(d bool) *BevelButtonWidget + func (b *BevelButtonWidget) Element() ui.Element + func (b *BevelButtonWidget) Icon(rows []string) *BevelButtonWidget + func (b *BevelButtonWidget) Menu(items []MenuItem) *BevelButtonWidget + func (b *BevelButtonWidget) Size(w, h int) *BevelButtonWidget + func (b *BevelButtonWidget) Toggle(on *bool) *BevelButtonWidget + type ButtonWidget struct + func Button(c *ui.Context, label string) *ButtonWidget + func (b *ButtonWidget) Cancel() *ButtonWidget + func (b *ButtonWidget) Clicked() bool + func (b *ButtonWidget) Default() *ButtonWidget + func (b *ButtonWidget) Disabled(d bool) *ButtonWidget + func (b *ButtonWidget) Element() ui.Element + func (b *ButtonWidget) Flash() *ButtonWidget + func (b *ButtonWidget) Width(w int) *ButtonWidget + type CalendarWidget struct + func Calendar(c *ui.Context, day *time.Time) *CalendarWidget + func (w *CalendarWidget) Changed() bool + func (w *CalendarWidget) Element() ui.Element + func (w *CalendarWidget) Label(s string) *CalendarWidget + type Cell struct + Col int + Row int + func ParseCell(s string) (Cell, bool) + func (c Cell) String() string + type CheckMark int + const CheckMixed + const CheckNone + const CheckOn + type CheckboxWidget struct + func Checkbox(c *ui.Context, checked *bool, label string) *CheckboxWidget + func (b *CheckboxWidget) Changed() bool + func (b *CheckboxWidget) Disabled(d bool) *CheckboxWidget + func (b *CheckboxWidget) Element() ui.Element + func (b *CheckboxWidget) Mixed() *CheckboxWidget + type ColorWellWidget struct + func ColorWell(c *ui.Context, col *ui.Color) *ColorWellWidget + func (w *ColorWellWidget) Changed() bool + func (w *ColorWellWidget) Disabled(d bool) *ColorWellWidget + func (w *ColorWellWidget) Element() ui.Element + func (w *ColorWellWidget) Label(s string) *ColorWellWidget + type ColumnViewWidget struct + func ColumnView(c *ui.Context, roots []*TreeNode, path *[]*TreeNode) *ColumnViewWidget + func (w *ColumnViewWidget) Changed() bool + func (w *ColumnViewWidget) Element() ui.Element + func (w *ColumnViewWidget) Label(s string) *ColumnViewWidget + func (w *ColumnViewWidget) ScrollBarRoom(px int) *ColumnViewWidget + func (w *ColumnViewWidget) Submitted() bool + type ComboboxWidget struct + func Combobox(c *ui.Context, value *string, items []string) *ComboboxWidget + func (w *ComboboxWidget) Changed() bool + func (w *ComboboxWidget) Element() ui.Element + func (w *ComboboxWidget) Label(l string) *ComboboxWidget + type DatePickerWidget struct + func DatePicker(c *ui.Context, day *time.Time) *DatePickerWidget + func (w *DatePickerWidget) Changed() bool + func (w *DatePickerWidget) Element() ui.Element + type DisclosureWidget struct + func Disclosure(c *ui.Context, open *bool, label string) *DisclosureWidget + func (d *DisclosureWidget) Changed() bool + func (d *DisclosureWidget) Disabled(dis bool) *DisclosureWidget + func (d *DisclosureWidget) Element() ui.Element + type DocumentTabsWidget struct + func DocumentTabs(c *ui.Context, selected *int, titles []string, fn func(i int)) *DocumentTabsWidget + func (w *DocumentTabsWidget) Changed() bool + func (w *DocumentTabsWidget) Closed() int + func (w *DocumentTabsWidget) Element() ui.Element + type FileDialogState struct + Name string + NewFolder func(in *TreeNode) string + Path []*TreeNode + type FindAction int + const FindNext + const FindNone + const ReplaceEvery + const ReplaceOne + func FindReplace(c *ui.Context, open *bool, st *FindState) FindAction + type FindOptions struct + MatchCase bool + WholeWord bool + type FindState struct + Note string + Options FindOptions + Query string + With string + type Font int + const AppFont + const SystemFont + func (f Font) Ascent() int + func (f Font) CapHeight() int + func (f Font) Has(r rune) bool + func (f Font) Height() int + func (f Font) Measure(s string) int + func (f Font) Truncate(s string, width int) string + type FontChoice struct + Bold bool + Family string + Italic bool + Size float64 + Underline bool + type FontPickerWidget struct + func FontPicker(c *ui.Context, ch *FontChoice, families []string) *FontPickerWidget + func (w *FontPickerWidget) Changed() bool + func (w *FontPickerWidget) Element() ui.Element + type IconItem struct + Icon *ui.Bitmap + Name string + type IconViewWidget struct + func IconView(c *ui.Context, items []IconItem, selected *int) *IconViewWidget + func (w *IconViewWidget) Changed() bool + func (w *IconViewWidget) Element() ui.Element + func (w *IconViewWidget) Label(s string) *IconViewWidget + func (w *IconViewWidget) Submitted() bool + type ListBoxWidget struct + func ListBox(c *ui.Context, selected *int, items []string) *ListBoxWidget + func (w *ListBoxWidget) Arrows(rows []bool) *ListBoxWidget + func (w *ListBoxWidget) Changed() bool + func (w *ListBoxWidget) Dim(rows []bool) *ListBoxWidget + func (w *ListBoxWidget) Disabled(d bool) *ListBoxWidget + func (w *ListBoxWidget) Element() ui.Element + func (w *ListBoxWidget) FocusRing(on bool) *ListBoxWidget + func (w *ListBoxWidget) Icons(icons [][]string) *ListBoxWidget + func (w *ListBoxWidget) Label(s string) *ListBoxWidget + func (w *ListBoxWidget) ScrollBarAlways() *ListBoxWidget + func (w *ListBoxWidget) Submitted() bool + type Menu struct + Action func() + Icon []string + IconTitle bool + Items []MenuItem + Right bool + Title string + func SizeMenu(d *RichText) Menu + type MenuItem struct + Action func() + Checked bool + Disabled bool + Key ui.Key + Mods ui.Modifiers + Separator bool + Submenu []MenuItem + Title string + func SeparatorItem() MenuItem + type NumberFieldWidget struct + func NumberField(c *ui.Context, value *float64, lo, hi, step float64, digits int) *NumberFieldWidget + func (w *NumberFieldWidget) Changed() bool + func (w *NumberFieldWidget) Element() ui.Element + func (w *NumberFieldWidget) Label(l string) *NumberFieldWidget + type PageSetupState struct + Landscape bool + Margin float64 + Paper int + Scale float64 + type Pen struct + H int + P *ui.Painter + W int + X int + Y int + func NewPen(p *ui.Painter, r ui.Rect) Pen + func (pn Pen) Bevel(x, y, w, h int, tl, br ui.Color) + func (pn Pen) Bitmap(x, y int, rows []string, c ui.Color) + func (pn Pen) Clip(x, y, w, h int, fn func()) + func (pn Pen) Dimmed(d bool) Pen + func (pn Pen) Dot(x, y int, c ui.Color) + func (pn Pen) Faded(f bool) Pen + func (pn Pen) FillRound(x, y, w, h, r int, c ui.Color) + func (pn Pen) Frame(x, y, w, h int, c ui.Color) + func (pn Pen) HLine(x, y, w int, c ui.Color) + func (pn Pen) Pattern(x, y, w, h int, pat [8]byte, fg, bg ui.Color) + func (pn Pen) Rect(x, y, w, h int, c ui.Color) + func (pn Pen) RoundFrame(x, y, w, h, r int, line, face ui.Color) + func (pn Pen) Sub(x, y, w, h int) Pen + func (pn Pen) Text(x, y int, s string, f Font, c ui.Color) int + func (pn Pen) TextCentered(x, y, w, h int, s string, f Font, c ui.Color) + func (pn Pen) TextMiddle(x, y, h int, s string, f Font, c ui.Color) int + func (pn Pen) TextScaled(x, y int, s string, f Font, c ui.Color, k int) int + func (pn Pen) TextStyled(x, y int, s string, f Font, c ui.Color, style TextStyle) int + func (pn Pen) VLine(x, y, h int, c ui.Color) + type PopupMenuWidget struct + func PopupMenu(c *ui.Context, selected *int, label string, items []string) *PopupMenuWidget + func (w *PopupMenuWidget) Changed() bool + func (w *PopupMenuWidget) Disabled(d bool) *PopupMenuWidget + func (w *PopupMenuWidget) Element() ui.Element + type PopupWindowState struct + H int + Open bool + W int + X int + type PopupWindowWidget struct + func PopupWindow(c *ui.Context, st *PopupWindowState, title string, opts WindowOptions, ...) *PopupWindowWidget + func (w *PopupWindowWidget) Activated() bool + func (w *PopupWindowWidget) Closed() bool + func (w *PopupWindowWidget) Element() ui.Element + func (w *PopupWindowWidget) Tab() ui.Element + func (w *PopupWindowWidget) TornOff() bool + type RadioWidget struct + func Radio[T comparable](c *ui.Context, selected *T, value T, label string) *RadioWidget + func (b *RadioWidget) Changed() bool + func (b *RadioWidget) Disabled(d bool) *RadioWidget + func (b *RadioWidget) Element() ui.Element + type RichText struct + Text string + func NewRichText(text string) *RichText + func (d *RichText) Align() Align + func (d *RichText) Aligns() []Align + func (d *RichText) Runs() []Run + func (d *RichText) SetAlign(align Align) + func (d *RichText) SetAligns(aligns []Align) + func (d *RichText) SetRuns(runs []Run) + func (d *RichText) SetSize(k int) + func (d *RichText) Size() int + func (d *RichText) Style() TextStyle + func (d *RichText) Toggle(s TextStyle) + type RulerState struct + First int + Left int + Right int + type Run struct + Style TextStyle + Text string + type ScrollBarWidget struct + func ScrollBar(c *ui.Context, value *float64, visible, total float64) *ScrollBarWidget + func (s *ScrollBarWidget) Changed() bool + func (s *ScrollBarWidget) Element() ui.Element + func (s *ScrollBarWidget) Horizontal() *ScrollBarWidget + func (s *ScrollBarWidget) Inactive() *ScrollBarWidget + func (s *ScrollBarWidget) Label(l string) *ScrollBarWidget + func (s *ScrollBarWidget) Step(step float64) *ScrollBarWidget + type ScrollPart int + const ScrollDownArrow + const ScrollNone + const ScrollPageDown + const ScrollPageUp + const ScrollThumb + const ScrollUpArrow + type SegmentedWidget struct + func Segmented(c *ui.Context, selected *int, labels ...string) *SegmentedWidget + func (w *SegmentedWidget) Changed() bool + func (w *SegmentedWidget) Element() ui.Element + func (w *SegmentedWidget) Label(s string) *SegmentedWidget + type SheetState struct + Anchor Cell + Cells map[Cell]string + Cursor Cell + Editing string + IsEditing bool + NoFocusRing bool + func NewSheetState() *SheetState + func (s *SheetState) Value(c Cell) string + type SheetWidget struct + func Sheet(c *ui.Context, st *SheetState, rows, cols int) *SheetWidget + func (w *SheetWidget) Changed() bool + func (w *SheetWidget) Element() ui.Element + func (w *SheetWidget) Label(s string) *SheetWidget + type SliderWidget struct + func Slider(c *ui.Context, value *float64, lo, hi float64) *SliderWidget + func (s *SliderWidget) Changed() bool + func (s *SliderWidget) Disabled(d bool) *SliderWidget + func (s *SliderWidget) Element() ui.Element + func (s *SliderWidget) Label(l string) *SliderWidget + func (s *SliderWidget) Step(step float64) *SliderWidget + func (s *SliderWidget) Ticks(n int) *SliderWidget + func (s *SliderWidget) Width(w int) *SliderWidget + type State int + const StateDisabled + const StateInactive + const StateNormal + const StatePressed + type StepperWidget struct + func Stepper(c *ui.Context, value *float64, lo, hi, step float64) *StepperWidget + func (s *StepperWidget) Changed() bool + func (s *StepperWidget) Disabled(d bool) *StepperWidget + func (s *StepperWidget) Element() ui.Element + func (s *StepperWidget) Label(l string) *StepperWidget + type TabControlWidget struct + func TabControl(c *ui.Context, selected *int, labels []string, fn func(i int)) *TabControlWidget + func (t *TabControlWidget) Changed() bool + func (t *TabControlWidget) Element() ui.Element + type TableColumn struct + Fixed bool + Icon func(r int) []string + Less func(a, b int) bool + Right bool + Title string + Width int + type TableState struct + Descending bool + NoFocusRing bool + ScrollBarAlways bool + Selected map[int]bool + SortColumn int + Widths []int + func NewTableState() *TableState + type TableWidget struct + func Table(c *ui.Context, st *TableState, cols []TableColumn, rows int, ...) *TableWidget + func (w *TableWidget) Changed() bool + func (w *TableWidget) Cursor() int + func (w *TableWidget) Element() ui.Element + func (w *TableWidget) Label(s string) *TableWidget + func (w *TableWidget) Order() []int + func (w *TableWidget) Sorted() bool + func (w *TableWidget) Submitted() bool + type TextFieldWidget struct + func RichTextArea(c *ui.Context, d *RichText) *TextFieldWidget + func SearchField(c *ui.Context, value *string) *TextFieldWidget + func TextArea(c *ui.Context, value *string) *TextFieldWidget + func TextField(c *ui.Context, value *string) *TextFieldWidget + func (w *TextFieldWidget) Changed() bool + func (w *TextFieldWidget) Disabled(d bool) *TextFieldWidget + func (w *TextFieldWidget) Document(left, width int) *TextFieldWidget + func (w *TextFieldWidget) Element() ui.Element + func (w *TextFieldWidget) Indent(first int) *TextFieldWidget + func (w *TextFieldWidget) Label(s string) *TextFieldWidget + func (w *TextFieldWidget) MaxLength(n int) *TextFieldWidget + func (w *TextFieldWidget) Password() *TextFieldWidget + func (w *TextFieldWidget) Placeholder(s string) *TextFieldWidget + func (w *TextFieldWidget) Select(a, b int) *TextFieldWidget + func (w *TextFieldWidget) Selection() (int, int) + func (w *TextFieldWidget) Submitted() bool + func (w *TextFieldWidget) Width(px int) *TextFieldWidget + type TextStyle uint8 + const Bold + const Italic + const Underline + func (s TextStyle) Scale() int + func (s TextStyle) Scaled(k int) TextStyle + type Theme struct + Accent Accent + Background ui.Color + func DefaultTheme() *Theme + func ThemeOf(c *ui.Context) *Theme + type ToolItem struct + Action func() + Disabled bool + Icon []string + IconOnly bool + Label string + On *bool + Separator bool + func FormatItems(d *RichText) []ToolItem + type TreeNode struct + Children []*TreeNode + Data any + Icon []string + Open bool + Title string + func OpenDialog(c *ui.Context, open *bool, st *FileDialogState, roots []*TreeNode) *TreeNode + type TreeViewWidget struct + func TreeView(c *ui.Context, roots []*TreeNode, selected **TreeNode) *TreeViewWidget + func (w *TreeViewWidget) Changed() bool + func (w *TreeViewWidget) Element() ui.Element + func (w *TreeViewWidget) Label(s string) *TreeViewWidget + func (w *TreeViewWidget) Submitted() bool + type WindowOptions struct + Active bool + Dragging bool + Interactive bool + Modal bool + NoClose bool + NoCollapse bool + NoGrow bool + NoZoom bool + Path []string + Utility bool + ZoomTo [4]int + type WindowPart int + const PartClose + const PartCollapse + const PartContent + const PartGrow + const PartNone + const PartTitle + const PartZoom + func WindowPartAt(x, y float32, w, h int, opts WindowOptions, collapsed bool) WindowPart + type WindowState struct + Collapsed bool + H int + MinH int + MinW int + Unzoomed [4]int + W int + X int + Y int + Zoomed bool + type WindowWidget struct + func Window(c *ui.Context, st *WindowState, title string, opts WindowOptions, fn func()) *WindowWidget + func (w *WindowWidget) Activated() bool + func (w *WindowWidget) Closed() bool + func (w *WindowWidget) Element() ui.Element + func (w *WindowWidget) PathChosen() int