Versions in this module Expand all Collapse all v0 v0.1.1 Nov 11, 2026 v0.1.0 Nov 8, 2026 Changes in this version + const ALIGN_CENTER + const ALIGN_LEFT + const ALIGN_NONE + const ALIGN_RIGHT + const CornerSnapThreshold + const FLOW_HORIZONTAL + const FLOW_HORIZONTAL_REV + const FLOW_OVERLAY + const FLOW_VERTICAL + const FLOW_VERTICAL_REV + const ITEM_BUTTON + const ITEM_CHECKBOX + const ITEM_COLORWHEEL + const ITEM_DROPDOWN + const ITEM_FLOW + const ITEM_IMAGE + const ITEM_IMAGE_FAST + const ITEM_INPUT + const ITEM_NONE + const ITEM_PROGRESS + const ITEM_RADIO + const ITEM_SLIDER + const ITEM_TEXT + const MinWindowSize + const PART_BAR + const PART_BOTTOM + const PART_BOTTOM_LEFT + const PART_BOTTOM_RIGHT + const PART_CLOSE + const PART_LEFT + const PART_MAXIMIZE + const PART_NONE + const PART_RIGHT + const PART_SCROLL_H + const PART_SCROLL_V + const PART_SEARCH + const PART_TOP + const PART_TOP_LEFT + const PART_TOP_RIGHT + const PIN_BOTTOM_CENTER + const PIN_BOTTOM_LEFT + const PIN_BOTTOM_RIGHT + const PIN_MID_CENTER + const PIN_MID_LEFT + const PIN_MID_RIGHT + const PIN_TOP_CENTER + const PIN_TOP_LEFT + const PIN_TOP_RIGHT + const UnsnapThreshold + var ColorAqua = NewColor(114, 228, 231, 255) + var ColorBlack = NewColor(0, 0, 0, 255) + var ColorBlue = NewColor(41, 128, 185, 255) + var ColorBrown = NewColor(176, 116, 78, 255) + var ColorCharcoal = NewColor(16, 16, 16, 255) + var ColorCharcoalSemi = NewColor(16, 16, 16, 128) + var ColorDarkAqua = NewColor(45, 154, 154, 255) + var ColorDarkBlue = NewColor(22, 98, 146, 255) + var ColorDarkFuchsia = NewColor(154, 45, 141, 255) + var ColorDarkGray = NewColor(111, 111, 111, 255) + var ColorDarkGreen = NewColor(22, 146, 24, 255) + var ColorDarkLime = NewColor(122, 154, 45, 255) + var ColorDarkMaroon = NewColor(110, 27, 55, 255) + var ColorDarkNavy = NewColor(16, 46, 85, 255) + var ColorDarkOlive = NewColor(60, 101, 19, 255) + var ColorDarkOrange = NewColor(175, 117, 32, 255) + var ColorDarkPink = NewColor(128, 64, 64, 255) + var ColorDarkPurple = NewColor(137, 32, 175, 255) + var ColorDarkRed = NewColor(146, 22, 22, 255) + var ColorDarkSilver = NewColor(162, 162, 162, 255) + var ColorDarkTeal = NewColor(27, 110, 86, 255) + var ColorDarkYellow = NewColor(139, 146, 22, 255) + var ColorFuchsia = NewColor(209, 114, 231, 255) + var ColorGray = NewColor(128, 128, 128, 255) + var ColorGreen = NewColor(40, 180, 99, 255) + var ColorLightAqua = NewColor(196, 246, 253, 255) + var ColorLightBlue = NewColor(159, 186, 255, 255) + var ColorLightFuchsia = NewColor(239, 196, 253, 255) + var ColorLightGray = NewColor(236, 236, 236, 255) + var ColorLightGreen = NewColor(170, 255, 159, 255) + var ColorLightLime = NewColor(219, 243, 153, 255) + var ColorLightMaroon = NewColor(215, 124, 143, 255) + var ColorLightNavy = NewColor(128, 152, 197, 255) + var ColorLightOlive = NewColor(186, 228, 144, 255) + var ColorLightOrange = NewColor(252, 213, 134, 255) + var ColorLightPink = NewColor(254, 163, 182, 255) + var ColorLightPurple = NewColor(254, 163, 245, 255) + var ColorLightRed = NewColor(255, 83, 83, 255) + var ColorLightSilver = NewColor(228, 228, 228, 255) + var ColorLightTeal = NewColor(152, 221, 210, 255) + var ColorLightYellow = NewColor(255, 251, 159, 255) + var ColorLime = NewColor(206, 231, 114, 255) + var ColorMaroon = NewColor(199, 54, 103, 255) + var ColorNavy = NewColor(99, 114, 166, 255) + var ColorOlive = NewColor(134, 166, 99, 255) + var ColorOrange = NewColor(243, 156, 18, 255) + var ColorPink = NewColor(255, 151, 197, 255) + var ColorPurple = NewColor(165, 105, 189, 255) + var ColorRed = NewColor(203, 67, 53, 255) + var ColorRust = NewColor(210, 113, 52, 255) + var ColorSilver = NewColor(209, 209, 209, 255) + var ColorTeal = NewColor(64, 199, 178, 255) + var ColorVeryDarkGray = NewColor(64, 64, 64, 255) + var ColorWhite = NewColor(255, 255, 255, 255) + var ColorYellow = NewColor(244, 208, 63, 255) + var ErrContextDisposed = errors.New("eui: context is disposed") + var ErrContextReentry = errors.New("eui: recursive Update/Draw on the same context") + func MeasureTextWidth(s string, face text.Face) float64 + func Required(value string) string + func SetColorSwatch(item *ItemData, col Color) + func SetProgressIndeterminate(pb *ItemData, ind bool) + func ValidateStyleSource(data []byte) error + func WrapText(s string, face text.Face, maxWidth float64) (int, []string) + type AlignType = alignType + type Clipboard interface + ReadText func() (string, error) + WriteText func(string) error + type Color color.RGBA + func NewColor(r, g, b, a uint8) Color + func NewColorHSV(h, s, v, a float64) Color + func (c *Color) UnmarshalJSON(data []byte) error + func (c Color) HSVA() (h, s, v, a float64) + func (c Color) MarshalJSON() ([]byte, error) + func (c Color) RGBA() (r, g, b, a uint32) + func (c Color) ToRGBA() color.RGBA + type Context struct + AutoHiDPI bool + AutoReload bool + CacheCheck bool + CapsLockToggleHandler func() + CtrlPressed bool + DebugMode bool + DumpMode bool + GamepadCancelHandler func() + ModalBackdrop Color + RepaintObserver func(RepaintStats) + ShiftPressed bool + TreeMode bool + UnmanagedImageCreated func(width int, height int, elapsed time.Duration, site string) + WindowStateChanged func() + func NewContext() (*Context, error) + func (ctx *Context) AccentColor() Color + func (ctx *Context) AccentSaturation() float64 + func (ctx *Context) ActiveGamepad() (ebiten.GamepadID, bool) + func (ctx *Context) ApplyBoldFace(it *ItemData) + func (ctx *Context) BoldFontSource() *text.GoTextFaceSource + func (ctx *Context) ClearFocus(it *ItemData) + func (ctx *Context) ClearRenderTargetPool() + func (ctx *Context) CloseContextMenus() + func (ctx *Context) ContextMenusOpen() bool + func (ctx *Context) CurrentStyleName() string + func (ctx *Context) CurrentSyntaxColors() SyntaxColors + func (ctx *Context) CurrentThemeName() string + func (ctx *Context) CursorShape() ebiten.CursorShapeType + func (ctx *Context) Dispose() + func (ctx *Context) Draw(screen *ebiten.Image) + func (ctx *Context) DrawCheckboxIndicator(screen *ebiten.Image, bounds image.Rectangle, checked bool) + func (ctx *Context) DrawItemAt(screen *ebiten.Image, item *ItemData, position Point) + func (ctx *Context) DumpCachedImages() error + func (ctx *Context) DumpTree() error + func (ctx *Context) EditableThemeFile(name string, style bool) (string, error) + func (ctx *Context) EnsureBoldFontSource(ttf []byte) error + func (ctx *Context) EnsureFontSource(ttf []byte) error + func (ctx *Context) Focus(it *ItemData) + func (ctx *Context) FocusedItem() *ItemData + func (ctx *Context) FocusedTextInput() *ItemData + func (ctx *Context) FontSource() *text.GoTextFaceSource + func (ctx *Context) GamepadInputHandled() bool + func (ctx *Context) GamepadNavigation() bool + func (ctx *Context) HasTextSelection() bool + func (ctx *Context) InputEnabled() bool + func (ctx *Context) IsDisposed() bool + func (ctx *Context) IsLightTheme() bool + func (ctx *Context) Layout(outsideWidth, outsideHeight int) (int, int) + func (ctx *Context) LayoutWindowBody(win *WindowData, root, body *ItemData) + func (ctx *Context) ListStyles() ([]string, error) + func (ctx *Context) ListThemes() ([]string, error) + func (ctx *Context) LoadStyle(name string) error + func (ctx *Context) LoadTheme(name string) error + func (ctx *Context) MiddleClickMove() bool + func (ctx *Context) ModalWindow() *WindowData + func (ctx *Context) NavigationPrompts() []NavigationPrompt + func (ctx *Context) NewActionButton(label string, action func()) *ItemData + func (ctx *Context) NewButton() (*itemData, *EventHandler) + func (ctx *Context) NewCheckbox() (*itemData, *EventHandler) + func (ctx *Context) NewColorSwatch(title string, initial Color, choose func(string, Color, func(Color)), ...) *ItemData + func (ctx *Context) NewColorWheel() (*itemData, *EventHandler) + func (ctx *Context) NewColumn(children ...*ItemData) *ItemData + func (ctx *Context) NewDropdown() (*itemData, *EventHandler) + func (ctx *Context) NewForm(fields ...*FormField) *Form + func (ctx *Context) NewFormField(name, label, value string, validators ...TextValidator) *FormField + func (ctx *Context) NewImageFastItem(w, h int) (*itemData, *ebiten.Image) + func (ctx *Context) NewImageItem(w, h int) (*itemData, *ebiten.Image) + func (ctx *Context) NewImageReferenceItem(w, h int) *itemData + func (ctx *Context) NewInput() (*itemData, *EventHandler) + func (ctx *Context) NewItem(config ItemData) *ItemData + func (ctx *Context) NewLabel(label string) *ItemData + func (ctx *Context) NewOverlay(children ...*ItemData) *ItemData + func (ctx *Context) NewProgressBar() (*itemData, *EventHandler) + func (ctx *Context) NewRadio() (*itemData, *EventHandler) + func (ctx *Context) NewRow(children ...*ItemData) *ItemData + func (ctx *Context) NewSection(title string, width float32) *ItemData + func (ctx *Context) NewSlider() (*itemData, *EventHandler) + func (ctx *Context) NewSplitButton(first, second *ItemData) *ItemData + func (ctx *Context) NewSubheading(title string, width float32) *ItemData + func (ctx *Context) NewText() (*itemData, *EventHandler) + func (ctx *Context) NewTextArea() (*itemData, *EventHandler) + func (ctx *Context) NewTextWindow(title string, hz HZone, vz VZone, withInput bool) (*WindowData, *ItemData, *ItemData) + func (ctx *Context) NewWindow() *windowData + func (ctx *Context) NewWrappedLabel(value string, width float32) *ItemData + func (ctx *Context) ParseColor(data []byte) (Color, error) + func (ctx *Context) PointerCursorClaimed() bool + func (ctx *Context) PointerPosition() (int, int) + func (ctx *Context) PointerPressHandled() bool + func (ctx *Context) PointerPressWindow() *WindowData + func (ctx *Context) RenderTargetPoolStats() renderpool.Stats + func (ctx *Context) SaveTheme(name string) error + func (ctx *Context) ScreenSize() (int, int) + func (ctx *Context) ScrollbarWidth() float32 + func (ctx *Context) SearchActive() bool + func (ctx *Context) SetAccentColor(c Color) + func (ctx *Context) SetAccentSaturation(s float64) + func (ctx *Context) SetBoldFontSource(src *text.GoTextFaceSource) + func (ctx *Context) SetClipboard(value Clipboard) Clipboard + func (ctx *Context) SetCurrentStyleName(name string) + func (ctx *Context) SetCurrentThemeName(name string) + func (ctx *Context) SetFontSource(src *text.GoTextFaceSource) + func (ctx *Context) SetGamepadNavigation(enabled bool) + func (ctx *Context) SetInputEnabled(enabled bool) + func (ctx *Context) SetInputSource(source InputSource) InputSource + func (ctx *Context) SetKeyboardInputCaptured(captured bool) + func (ctx *Context) SetMiddleClickMove(enabled bool) + func (ctx *Context) SetPotatoMode(v bool) + func (ctx *Context) SetScreenSize(w, h int) + func (ctx *Context) SetTileDividers(dividers []TileDivider) + func (ctx *Context) SetUIScale(scale float32) + func (ctx *Context) SetUserDataRoot(root string) + func (ctx *Context) SetUserUIScale(scale float32) + func (ctx *Context) SetWindowShadows(v bool) + func (ctx *Context) SetWindowSnapping(enabled bool) + func (ctx *Context) ShowColorPicker(title string, initial Color, apply func(Color)) *WindowData + func (ctx *Context) ShowContextMenu(options []string, x, y float32, onSelect func(int)) *ItemData + func (ctx *Context) ShowContextMenuWithIcons(options []string, icons []*ebiten.Image, x, y float32, onSelect func(int)) *ItemData + func (ctx *Context) ShowModal(title, message string, buttons []PopupButton, extras ...*ItemData) *WindowData + func (ctx *Context) ShowPopup(title, message string, buttons []PopupButton, extras ...*ItemData) *WindowData + func (ctx *Context) SizeTextWindowList(list *ItemData, clientW, clientH float32) + func (ctx *Context) SubtleAlternateRowColor() Color + func (ctx *Context) TextColor() Color + func (ctx *Context) UIScale() float32 + func (ctx *Context) Update() (err error) + func (ctx *Context) UpdateTextWindow(win *WindowData, list, input *ItemData, msgs []string, ...) + func (ctx *Context) UserUIScale() float32 + func (ctx *Context) ValidateThemeSource(data []byte) error + func (ctx *Context) WindowRepaintStats() []RepaintStats + func (ctx *Context) WindowSnapping() bool + func (ctx *Context) Windows() []*WindowData + type DragType = dragType + type EventHandler struct + Handle func(UIEvent) + func (h *EventHandler) DisableQueue() + func (h *EventHandler) DroppedEvents() uint64 + func (h *EventHandler) Emit(ev UIEvent) + func (h *EventHandler) EnableQueue(capacity int) <-chan UIEvent + func (h *EventHandler) Events() <-chan UIEvent + type FlowType = flowType + type Form struct + func (form *Form) Apply() error + func (form *Form) Cancel() + func (form *Form) Dirty() bool + func (form *Form) Draft() map[string]string + func (form *Form) Errors() map[string]string + func (form *Form) Fields() []*FormField + func (form *Form) Validate() bool + func (form *Form) Values() map[string]string + func (form *Form) View() *ItemData + type FormField struct + func (field *FormField) Error() string + func (field *FormField) ErrorLabel() *ItemData + func (field *FormField) Input() *ItemData + func (field *FormField) Name() string + func (field *FormField) Validate() bool + func (field *FormField) View() *ItemData + type FormValidationError struct + Fields map[string]string + func (err *FormValidationError) Error() string + type GamepadInput struct + Buttons []ebiten.StandardGamepadButton + ID ebiten.GamepadID + LeftX float64 + LeftY float64 + type HZone int + const HZoneCenter + const HZoneCenterLeft + const HZoneCenterRight + const HZoneLeft + const HZoneLeftCenter + const HZoneRight + const HZoneRightCenter + type InputFrame struct + Gamepads []GamepadInput + Keys []ebiten.Key + Mac bool + MouseButtons []ebiten.MouseButton + PointerX int + PointerY int + Text string + TextInput []TextInputEvent + Time time.Time + Touches []TouchPoint + Unfocused bool + WheelX float64 + WheelY float64 + type InputSource func() InputFrame + type Insets struct + Bottom float32 + Left float32 + Right float32 + Top float32 + type ItemData = itemData + func (item *ItemData) UpdateText(text string) + func (parent *ItemData) AddItem(child *ItemData) + func (parent *ItemData) InsertItem(idx int, child *ItemData) + func (parent *ItemData) PrependItem(child *ItemData) + func (parent *ItemData) RemoveItem(child *ItemData) + func (parent *ItemData) ReplaceItem(idx int, child *ItemData) + func (parent *ItemData) SetItems(children []*ItemData) + type ItemTypeData = itemTypeData + type LayoutAlign uint8 + const LayoutCenter + const LayoutEnd + const LayoutStart + type NavigationPrompt struct + Action string + Label string + type PinType = pinType + type Point = point + type PopupButton struct + Action func() + Cancel bool + Color *Color + Default bool + HoverColor *Color + Text string + Width float32 + type Rect = rect + type RepaintStats struct + Count uint64 + DeferredFrames uint64 + LastDuration time.Duration + LastPixels int + LastReason string + Pixels uint64 + Title string + type RoundRect = roundRect + type SliderRange struct + Color Color + End float32 + Start float32 + type StyleBools struct + Button bool + Checkbox bool + Dropdown bool + Input bool + Radio bool + Slider bool + Tab bool + Text bool + Window bool + type StyleNumbers struct + Button float32 + Checkbox float32 + Dropdown float32 + Input float32 + Radio float32 + Slider float32 + Tab float32 + Text float32 + Window float32 + type StyleTheme struct + ActiveOutline StyleBools + Border StyleNumbers + BorderPad StyleNumbers + DropdownArrowPad float32 + Filled StyleBools + Fillet StyleNumbers + Outlined StyleBools + SliderValueGap float32 + TextPadding float32 + type SyntaxColors struct + Bindings Color + Comments Color + Keywords Color + Numbers Color + Strings Color + Variables Color + func DefaultSyntaxColors(background Color) SyntaxColors + func (colors SyntaxColors) MarshalJSON() ([]byte, error) + type TextColorSpan struct + Color Color + End int + Start int + type TextHighlighter func(string) []TextColorSpan + type TextInputEvent struct + Kind TextInputKind + Passthrough bool + Replacement *TextReplacement + SelectionEnd int + SelectionStart int + Target *ItemData + Text string + type TextInputKind uint8 + const TextInputCancel + const TextInputCommit + const TextInputCompose + const TextInputEnd + type TextReplacement struct + Caret int + End int + Start int + type TextSpan struct + End int + MatchTextColor bool + Start int + type TextValidator func(string) string + func IntegerRange(minimum, maximum int64) TextValidator + func NumberRange(minimum, maximum float64) TextValidator + type TextWindowOptions struct + AlternateRows bool + Face text.Face + FirstChanged int + FontSize float64 + FontSource *text.GoTextFaceSource + InputAction *ItemData + InputEditable bool + InputExternalEditing bool + InputText string + InputUnderlines func(string) []TextSpan + OnURLClick func(string) + type TextWindowWrapCache struct + type Theme struct + Button itemData + Checkbox itemData + Dropdown itemData + Input itemData + Progress itemData + Radio itemData + Slider itemData + Syntax SyntaxColors + Tab itemData + Text itemData + Window windowData + type TileDivider struct + End float32 + HitSize float32 + OnDrag func(position float32) + Orientation TileDividerOrientation + Position float32 + Start float32 + Thickness float32 + type TileDividerOrientation uint8 + const TileDividerHorizontal + const TileDividerVertical + type TouchPoint struct + ID ebiten.TouchID + X int + Y int + type UIEvent struct + Checked bool + Color Color + Index int + Item *ItemData + Text string + Type UIEventType + Value float32 + type UIEventType int + const EventCheckboxChanged + const EventClick + const EventColorChanged + const EventDropdownSelected + const EventInputChanged + const EventRadioSelected + const EventSliderChanged + const EventSliderReleased + type VZone int + const VZoneBottom + const VZoneBottomMiddle + const VZoneCenter + const VZoneMiddleBottom + const VZoneMiddleTop + const VZoneTop + const VZoneTopMiddle + type WindowData = windowData + func (win *WindowData) AddItem(child *ItemData) + func (win *WindowData) InsertItem(idx int, child *ItemData) + func (win *WindowData) PrependItem(child *ItemData) + func (win *WindowData) RemoveItem(child *ItemData) + func (win *WindowData) ReplaceItem(idx int, child *ItemData)