Versions in this module Expand all Collapse all v0 v0.3.1 Jul 29, 2026 Changes in this version + func DrawText(dst *ebiten.Image, str string, options *text.DrawOptions) + func ParseHexColor(s string) (color.RGBA, error) + type ContainerLayout struct + BodyBounds image.Rectangle + Bounds image.Rectangle + ContentSize image.Point + ScrollOffset image.Point + type Context struct + func (c *Context) BringRootContainerToFront() + func (c *Context) Button(text string) EventHandler + func (c *Context) Checkbox(state *bool, label string) EventHandler + func (c *Context) Clickable(draw func(bounds image.Rectangle)) EventHandler + func (c *Context) ClosePopup(popupID PopupID) + func (c *Context) ConsumeSecondaryClick(bounds image.Rectangle) bool + func (c *Context) DragArea(screenDraw func(screen *ebiten.Image, bounds image.Rectangle), ...) EventHandler + func (c *Context) DrawOnlyWidget(f func(screen *ebiten.Image)) + func (c *Context) DrawSolidRect(bounds image.Rectangle, fill color.Color) + func (c *Context) Dropdown(selectedIndex *int, options []string) EventHandler + func (c *Context) GridCell(f func(bounds image.Rectangle)) + func (c *Context) Header(label string, initialExpansion bool, f func()) + func (c *Context) IDScope(name string, f func()) + func (c *Context) Loop(count int, f func(i int)) + func (c *Context) NumberField(value *int, step int) EventHandler + func (c *Context) NumberFieldF(value *float64, step float64, digits int) EventHandler + func (c *Context) OpenPopup(popupID PopupID) + func (c *Context) Panel(f func(layout ContainerLayout)) + func (c *Context) Popup(f func(layout ContainerLayout, popupID PopupID)) PopupID + func (c *Context) Scale() int + func (c *Context) SetGridLayout(widths []int, heights []int) + func (c *Context) SetScale(scale int) + func (c *Context) SetScroll(scroll image.Point) + func (c *Context) SetTextFieldValue(value string) + func (c *Context) Slider(value *int, low, high int, step int) EventHandler + func (c *Context) SliderF(value *float64, low, high float64, step float64, digits int) EventHandler + func (c *Context) SliderFNoValue(value *float64, low, high float64, step float64, digits int) EventHandler + func (c *Context) SliderNoValue(value *int, low, high int, step int) EventHandler + func (c *Context) Text(text string) + func (c *Context) TextField(buf *string) EventHandler + func (c *Context) TreeNode(label string, f func()) + func (c *Context) Window(title string, initialBounds image.Rectangle, f func(layout ContainerLayout)) + type DebugUI struct + func (d *DebugUI) Draw(screen *ebiten.Image) + func (d *DebugUI) LoadStyleFile(path string) error + func (d *DebugUI) LoadStyleReader(r io.Reader) error + func (d *DebugUI) SetStyle(s *Style) + func (d *DebugUI) Style() Style + func (d *DebugUI) Update(f func(ctx *Context) error) (InputCapturingState, error) + type EventHandler interface + On func(func()) + type InputCapturingState int + const InputCapturingStateFocus + const InputCapturingStateHover + type PopupID widgetID + type Style struct + Colors StyleColors + DefaultHeight int + DefaultWidth int + Indent int + Padding int + ScrollbarSize int + Spacing int + ThumbSize int + TitleHeight int + func BuiltInTheme(name string) (Style, error) + func DefaultStyle() Style + func ParseStyleJSON(data []byte) (Style, error) + func ThemeLight() Style + type StyleColors struct + Base color.RGBA + BaseFocus color.RGBA + BaseHover color.RGBA + Border color.RGBA + Button color.RGBA + ButtonFocus color.RGBA + ButtonHover color.RGBA + PanelBG color.RGBA + ScrollBase color.RGBA + ScrollThumb color.RGBA + Selection color.RGBA + SliderThumb color.RGBA + SliderThumbFocus color.RGBA + SliderThumbHover color.RGBA + Text color.RGBA + TitleBG color.RGBA + TitleBGTransparent color.RGBA + TitleText color.RGBA + WindowBG color.RGBA + type ThemeOption struct + Key string + Label string + func BuiltInThemeMenu() []ThemeOption