Versions in this module Expand all Collapse all v0 v0.3.0 Nov 30, 2026 v0.2.0 Nov 30, 2026 v0.1.12 Nov 28, 2026 v0.1.11 Nov 26, 2026 v0.1.10 Nov 23, 2026 v0.1.9 Nov 21, 2026 Changes in this version + func CaretVisible(world *ecs.World) bool v0.1.8 Nov 20, 2026 Changes in this version + func SetHTMLSelectOpen(world *ecs.World, entity ecs.Entity, open bool) + type RefreshHTMLScope func() v0.1.7 Nov 14, 2026 v0.1.6 Nov 13, 2026 v0.1.5 Nov 12, 2026 v0.1.4 Nov 11, 2026 v0.1.3 Nov 9, 2026 v0.1.2 Nov 9, 2026 Changes in this version + const MaxFileBrowserEntries + const WindowTitleBarButtonWidth + func BindControlComposition(world *ecs.World, composition ControlComposition, owner ecs.Entity, ...) error + func BindControl[T any](world *ecs.World, entity ecs.Entity, opts ControlOptions, component T) error + func BindList[T any](world *ecs.World, entity ecs.Entity, opts ListOptions[T]) bool + func BindPart[T any](world *ecs.World, entity ecs.Entity) error + func BindRelation[T any](world *ecs.World, entity, owner ecs.Entity) error + func BindSelector(world *ecs.World, entity ecs.Entity, opts SelectorOptions) error + func BindVariant[T comparable](world *ecs.World, owner ecs.Entity, variant Variant[T]) error + func BindVirtualJoystick(world *ecs.World, entity ecs.Entity, opts ControlOptions, ...) error + func BlurHTMLControl(world *ecs.World, entity ecs.Entity) + func CaretBlinkDelay(world *ecs.World) (time.Duration, bool) + func ControlBounds(world *ecs.World, entity ecs.Entity) (float32, float32, bool) + func FindPart[P, T any](world *ecs.World, owner ecs.Entity) (ecs.Entity, bool) + func FocusControl(world *ecs.World, entity ecs.Entity) bool + func FocusedInputSystem(name string) ecs.SystemConfig + func GetScrollAreaOffset(world *ecs.World, entity ecs.Entity) (mgl32.Vec2, bool) + func ImageGridCellSize(width float32, columns int, gap float32) float32 + func ImageGridHeight(width float32, itemCount, columns int, gap float32) float32 + func LayoutPending(world *ecs.World) bool + func ListItemEntities[T any](world *ecs.World, entity ecs.Entity) []ecs.Entity + func NormalizeNumberInputValue(value string, input NumberInput) (string, bool) + func RegisterRuntimeExtension(world *ecs.World, extension RuntimeExtension) + func RegisterRuntimeFeature[T RuntimeFeature](world *ecs.World) + func ResetHTMLForm(world *ecs.World, owner ecs.Entity, formID string) bool + func ResetVirtualJoystick(world *ecs.World, entity ecs.Entity) bool + func SetControlBounds(world *ecs.World, entity ecs.Entity, width, height float32) + func SetControlDisabled(world *ecs.World, entity ecs.Entity, disabled bool) + func SetControlInputFilter(world *ecs.World, entity ecs.Entity, filter scene.InputFilter) + func SetControlPassThrough(world *ecs.World, entity ecs.Entity, passThrough bool) + func SetControlSelected(world *ecs.World, entity ecs.Entity, selected bool) + func SetHTMLControlChecked(world *ecs.World, control ecs.Entity, checked bool) bool + func SetHTMLControlOptionSelected(world *ecs.World, control ecs.Entity, option int, selected bool) bool + func SetHTMLControlSelected(world *ecs.World, control ecs.Entity, selected int) bool + func SetHTMLControlSelectionRange(world *ecs.World, control ecs.Entity, anchor, focus int) bool + func SetHTMLControlValue(world *ecs.World, control ecs.Entity, value string) bool + func SetHTMLEditableSelection(world *ecs.World, editable ecs.Entity, anchor, focus int) bool + func SetHTMLEditableValue(world *ecs.World, editable ecs.Entity, value string) bool + func SetListItems[T any](world *ecs.World, entity ecs.Entity, items []T) bool + func SetPosition(world *ecs.World, entity ecs.Entity, position scene.Val2) bool + func SetScrollAreaOffset(world *ecs.World, entity ecs.Entity, offset mgl32.Vec2) bool + func SetSelectorScrollOffset(world *ecs.World, selector ecs.Entity, offset float32) bool + func SetSize(world *ecs.World, entity ecs.Entity, width, height float32) bool + func SetText(world *ecs.World, entity ecs.Entity, value string) bool + func SetVirtualJoystickRawValue(world *ecs.World, entity ecs.Entity, value mgl32.Vec2) bool + func SpawnButton(world *ecs.World, opts ButtonOptions) ecs.Entity + func SpawnButtonGroup[T any](world *ecs.World, opts ButtonGroupOptions[T]) ecs.Entity + func SpawnCheckbox(world *ecs.World, opts CheckboxOptions) ecs.Entity + func SpawnContextMenu(world *ecs.World, opts ContextMenuOptions) ecs.Entity + func SpawnControl[T any](world *ecs.World, opts ControlOptions, component T) ecs.Entity + func SpawnDialog(world *ecs.World, opts DialogOptions) ecs.Entity + func SpawnImageGrid(world *ecs.World, opts ImageGridOptions) ecs.Entity + func SpawnInput(world *ecs.World, opts TextOptions) ecs.Entity + func SpawnLabel(world *ecs.World, opts LabelOptions) ecs.Entity + func SpawnList[T any](world *ecs.World, opts ListOptions[T]) ecs.Entity + func SpawnMenu(world *ecs.World, opts MenuOptions) ecs.Entity + func SpawnNode2[A, B any](world *ecs.World, options NodeOptions, a A, b B) ecs.Entity + func SpawnNode[T any](world *ecs.World, options NodeOptions, value T) ecs.Entity + func SpawnNumberInput(world *ecs.World, opts NumberInputOptions) ecs.Entity + func SpawnPanel(world *ecs.World, opts PanelOptions) ecs.Entity + func SpawnProgress(world *ecs.World, opts ProgressOptions) ecs.Entity + func SpawnScrollArea(world *ecs.World, opts ScrollAreaOptions) ecs.Entity + func SpawnScrollContent(world *ecs.World, area ecs.Entity, x, y float32) ecs.Entity + func SpawnSelector(world *ecs.World, opts SelectorOptions) ecs.Entity + func SpawnTab(world *ecs.World, opts TabOptions) ecs.Entity + func SpawnTabPanel(world *ecs.World, tabs ecs.Entity, opts TabPanelOptions) ecs.Entity + func SpawnTextarea(world *ecs.World, opts TextOptions) ecs.Entity + func SpawnTree[T comparable](world *ecs.World, opts TreeOptions[T]) ecs.Entity + func SpawnVirtualJoystick(world *ecs.World, opts VirtualJoystickOptions) ecs.Entity + func SpawnWindowTitleBar(world *ecs.World, opts WindowTitleBarOptions) ecs.Entity + func StepNumberInputValue(value string, input NumberInput, direction int) (string, bool) + func Sync(world *ecs.World) error + func SyncAfterLayout(world *ecs.World) error + func SyncAfterLayoutSystem(name string) ecs.SystemConfig + func SyncAfterLayoutWith[F RuntimeFeature](world *ecs.World) error + func SyncHTML(world *ecs.World) error + func SyncHTMLSystem(name string) ecs.SystemConfig + func SyncLayoutSystem(name string) ecs.SystemConfig + func SyncListSystem[T any](name string) ecs.SystemConfig + func SyncSystem(name string) ecs.SystemConfig + func SyncTextInputSystem(name string) ecs.SystemConfig + func SyncTreeSystem[T comparable](name string) ecs.SystemConfig + func SyncWith[F RuntimeFeature](world *ecs.World) error + func TextCaretIndex[V piecetree.Value](text *scene.Text2D, value V, x, y float32) int + func TextareaScrollBarAt(world *ecs.World, screenX, screenY float32) bool + func UnbindControl(world *ecs.World, entity ecs.Entity) + func UnbindControlCompositionPart(world *ecs.World, entity ecs.Entity) + func UnbindVariant[T comparable](world *ecs.World, owner, entity ecs.Entity) + func UpdateLayout(world *ecs.World) error + func UpdateSystem(name string) ecs.SystemConfig + func UpdateWindowTitleBar(world *ecs.World, entity ecs.Entity, opts WindowTitleBarOptions) bool + type Action struct + Value T + type AuthoredControls struct + type BodyPart struct + type Button struct + type ButtonContentAlignment uint8 + const ButtonContentCenter + const ButtonContentStart + type ButtonGroup struct + Buttons []ecs.Entity + Height float32 + StackIndex int + Width float32 + type ButtonGroupDividerOptions struct + Color graphics.ColorRGBA + Inset float32 + Width float32 + type ButtonGroupItem struct + Disabled bool + Icon IconStyle + Label string + Value T + Width float32 + type ButtonGroupOptions struct + DPI float64 + Divider *ButtonGroupDividerOptions + FontSize float64 + Height float32 + Items []ButtonGroupItem[T] + PassThrough bool + Radius CornerRadius + Style *ButtonGroupStyle + Theme Theme + X float32 + Y float32 + type ButtonGroupStyle struct + Button ButtonStyle + Divider SurfaceStyle + Frame SurfaceStyle + type ButtonGroupValue struct + Group ecs.Entity + Index int + Value T + type ButtonOptions struct + ContentAlign ButtonContentAlignment + DPI float64 + Disabled bool + FontSize float64 + Height float32 + Icon IconStyle + JoinLeft bool + JoinRight bool + Label string + PassThrough bool + Radius CornerRadius + Style *ButtonStyle + Theme Theme + Variant ButtonVariant + Width float32 + X float32 + Y float32 + type ButtonStyle struct + Body StateStyle[SurfaceStyle] + JoinedEdge StateStyle[SurfaceStyle] + type ButtonStyles struct + Danger ButtonStyle + Primary ButtonStyle + Surface ButtonStyle + type ButtonVariant uint8 + const ButtonPrimary + const ButtonSurface + type CaretPart struct + type ChangedEvent struct + Entity ecs.Entity + Value T + type CheckboxOptions struct + Checked bool + DPI float64 + Disabled bool + FontSize float64 + Height float32 + Label string + PassThrough bool + Radius CornerRadius + Style *CheckboxStyle + Theme Theme + Width float32 + X float32 + Y float32 + type CheckboxStyle struct + Mark StateStyle[SurfaceStyle] + Track ToggleStyle[SurfaceStyle] + type CodeToken struct + End int + Offset int + Quoted bool + RuneEnd int + RuneStart int + Start int + func CodeTokenAt[V piecetree.Value](inputValue V, index int) (token CodeToken) + type CompositionNode struct + Height float32 + Kind CompositionNodeKind + Text string + Visible bool + Width float32 + X float32 + Y float32 + type CompositionNodeKind uint8 + const CompositionGroup + const CompositionSprite + const CompositionText + type Content struct + Value T + type ContextMenu struct + ItemHeight float32 + Open bool + Padding float32 + Selected int + StackIndex int + Width float32 + type ContextMenuItem = Item[ContextMenu] + type ContextMenuOptions struct + ItemHeight float32 + Items []string + Open bool + Padding float32 + PassThrough bool + Radius CornerRadius + Style *MenuStyle + Theme Theme + Width float32 + X float32 + Y float32 + type ContextMenuPanelPart struct + type Control struct + Selected bool + type ControlComposition map[ecs.Entity]CompositionNode + type ControlOptions struct + Disabled bool + Height float32 + PassThrough bool + StackIndex int + Width float32 + X float32 + Y float32 + type ControlState struct + Disabled bool + Focused bool + Hovered bool + Pressed bool + Selected bool + type ControlVariant uint8 + const VariantAlways + const VariantChecked + const VariantClosedHovered + const VariantClosedNormal + const VariantFocused + const VariantHovered + const VariantInputNormal + const VariantOpen + const VariantOpenEnabled + const VariantPressed + const VariantUnfocusedHovered + const VariantUnfocusedNormal + type CornerRadius float32 + const Circle + type Danger struct + type DecrementPart struct + type Dialog struct + type DialogOptions = PanelOptions + type FileBrowser struct + CurrentDir string + Extensions []string + SelectedPath string + Truncated bool + func NewFileBrowser(start string, extensions ...string) (FileBrowser, error) + func (browser *FileBrowser) Entries() ([]FileBrowserEntry, error) + func (browser *FileBrowser) OpenDirectory(path string) error + func (browser *FileBrowser) OpenParent() error + func (browser *FileBrowser) OpenValue(value string) (string, error) + func (browser *FileBrowser) SaveValue(value string) (string, error) + func (browser *FileBrowser) Select(path string) error + type FileBrowserEntry struct + IsDir bool + Name string + Path string + type FillPart struct + type FocusChangedEvent struct + Entity ecs.Entity + FocusVisible bool + Focused bool + type FrameBorderPart struct + type FullRuntime struct + type HTMLRenderer struct + type HTMLSelectStyle struct + Item StateStyle[SurfaceStyle] + Text StateStyle[graphics.ColorRGBA] + type IconContent struct + Value IconStyle + type IconPart struct + type IconStyle struct + Fallback string + Height float32 + Texture *graphics.Texture + Width float32 + func TextIcon(value string) IconStyle + func TextureIcon(texture *graphics.Texture, width, height float32) IconStyle + func (icon IconStyle) Empty() bool + type ImageGrid struct + Columns int + DeleteIcon IconStyle + Gap float32 + Items []ImageGridItem + LabelHeight float32 + Padding float32 + Width float32 + type ImageGridEvent struct + Grid ecs.Entity + Index int + type ImageGridItem struct + Label string + Removable bool + Texture *graphics.Texture + type ImageGridOptions struct + Columns int + DeleteIcon IconStyle + Gap float32 + Items []ImageGridItem + LabelHeight float32 + Padding float32 + PassThrough bool + Radius CornerRadius + Style *ImageGridStyle + Theme Theme + Width float32 + X float32 + Y float32 + type ImageGridStyle struct + Cell SurfaceStyle + Remove StateStyle[SurfaceStyle] + type IncrementPart struct + type Indexed struct + Value int + type Input struct + type InputEvent struct + Entity ecs.Entity + Value T + type Item struct + Disabled bool + Index int + Label string + Owner ecs.Entity + type ItemPart struct + type KnobPart struct + type Label struct + Color graphics.ColorRGBA + DPI float64 + FontSize float64 + Value string + type LabelOptions struct + Color graphics.ColorRGBA + DPI float64 + FontSize float64 + PassThrough bool + Theme Theme + Value string + X float32 + Y float32 + type LabelPart struct + type Layout struct + AffectedByScale bool + AutoAlignment bool + CellSize mgl32.Vec2 + Constraint LayoutConstraint + ConstraintNum int + HorizontalDirection LayoutHorizontalDirection + Padding scene.UIRect + PaddingBottom float32 + PaddingLeft float32 + PaddingRight float32 + PaddingTop float32 + ResizeMode LayoutResizeMode + SpacingX float32 + SpacingY float32 + StartAxis LayoutStartAxis + Type LayoutType + VerticalDirection LayoutVerticalDirection + func NewLayout() Layout + type LayoutConstraint uint8 + const LayoutConstraintFixedColumn + const LayoutConstraintFixedRow + const LayoutConstraintNone + type LayoutHorizontalDirection uint8 + const LayoutLeftToRight + const LayoutRightToLeft + type LayoutResizeMode uint8 + const LayoutResizeChildren + const LayoutResizeContainer + const LayoutResizeNone + type LayoutStartAxis uint8 + const LayoutStartHorizontal + const LayoutStartVertical + type LayoutType uint8 + const LayoutGrid + const LayoutHorizontal + const LayoutNone + const LayoutVertical + type LayoutVerticalDirection uint8 + const LayoutBottomToTop + const LayoutTopToBottom + type LinkActivatedEvent struct + Entity ecs.Entity + Target string + type List struct + Axis ListAxis + BindItem func(*ecs.World, ecs.Entity, int, T) + First int + ItemSize float32 + Items []T + Last int + Overscan int + UnbindItem func(*ecs.World, ecs.Entity) + type ListAxis uint8 + const ListHorizontal + const ListVertical + type ListItem struct + Index int + List ecs.Entity + Value T + type ListOptions struct + Axis ListAxis + BarSize float32 + BindItem func(*ecs.World, ecs.Entity, int, T) + BuildItem func(*ecs.World, ecs.Entity) + Controlled bool + Height float32 + HoverBarSize float32 + ItemSize float32 + Items []T + MinThumbSize float32 + Overscan int + PassThrough bool + Radius CornerRadius + ReserveScrollbarSpace bool + ScrollX float32 + ScrollY float32 + Style *ScrollStyle + Theme Theme + ThumbBarSize float32 + UnbindItem func(*ecs.World, ecs.Entity) + Width float32 + X float32 + Y float32 + type Menu struct + ItemHeight float32 + Label string + Open bool + Padding float32 + Selected int + StackIndex int + Width float32 + type MenuItem = Item[Menu] + type MenuOptions struct + Height float32 + Items []string + Label string + Padding float32 + PassThrough bool + Radius CornerRadius + Style *MenuStyle + Theme Theme + Width float32 + X float32 + Y float32 + type MenuPanelPart struct + type MenuStyle struct + Indicator IconStyle + Item StateStyle[SurfaceStyle] + Popup SurfaceStyle + Trigger ButtonStyle + type NodeOptions struct + Anchor *scene.Anchor + Hidden bool + Parent ecs.Entity + StackIndex int + X float32 + Y float32 + type NodeSpawner struct + func NewNodeSpawner[T any](world *ecs.World) NodeSpawner[T] + func (s *NodeSpawner[T]) Reserve(capacity int) + func (s *NodeSpawner[T]) Spawn(options NodeOptions, value T) ecs.Entity + type NodeSpawner2 struct + func NewNodeSpawner2[A, B any](world *ecs.World) NodeSpawner2[A, B] + func (s *NodeSpawner2[A, B]) Reserve(capacity int) + func (s *NodeSpawner2[A, B]) Spawn(options NodeOptions, a A, b B) ecs.Entity + type NumberInput struct + Changed bool + DownIcon IconStyle + Integer bool + Step float64 + StepButtonWidth float32 + UpIcon IconStyle + type NumberInputBorderPart struct + type NumberInputOptions struct + DPI float64 + Disabled bool + DownIcon IconStyle + FontSize float64 + Height float32 + Integer bool + MaxRunes int + PassThrough bool + Placeholder string + Radius CornerRadius + Step float64 + StepButtonWidth float32 + Style *NumberInputStyle + Theme Theme + UpIcon IconStyle + Value string + Width float32 + X float32 + Y float32 + type NumberInputStep struct + Direction int + Input ecs.Entity + type NumberInputStyle struct + Field TextFieldStyle + Step StateStyle[SurfaceStyle] + type NumberStepIconPart struct + type Panel struct + Title string + type PanelOptions struct + Border graphics.ColorRGBA + BorderWidth float32 + Height float32 + PassThrough bool + Radius CornerRadius + Style *PanelStyle + Theme Theme + Title string + Width float32 + X float32 + Y float32 + type PanelPart struct + type PanelStyle struct + Body SurfaceStyle + type Part struct + type Progress struct + Changed bool + Fill ecs.Entity + Indeterminate bool + Max float32 + Min float32 + Slider bool + Thumb ecs.Entity + Value float32 + type ProgressOptions struct + Height float32 + Indeterminate bool + Max float32 + Min float32 + PassThrough bool + Radius CornerRadius + Slider bool + Style *ProgressStyle + Theme Theme + ThumbSize float32 + Value float32 + Width float32 + X float32 + Y float32 + type ProgressStyle struct + Fill SurfaceStyle + Thumb StateStyle[SurfaceStyle] + Track StateStyle[SurfaceStyle] + type ProgressThumb struct + Progress ecs.Entity + type Relation struct + Owner ecs.Entity + type RuntimeExtension struct + Sync ecs.System + type RuntimeFeature interface + type ScrollArea struct + BarSize float32 + ContentHeight float32 + ContentWidth float32 + Controlled bool + DisableDrag bool + DraggingHorizontal bool + DraggingVertical bool + Height float32 + HoverBarSize float32 + HoverHorizontal bool + HoverVertical bool + MinThumbSize float32 + ReserveScrollbarSpace bool + ScrollBarStackIndex int + StackIndex int + ThumbBarSize float32 + WheelStep float32 + Width float32 + func (area ScrollArea) Measure() ScrollMetrics + type ScrollAreaOptions struct + BarSize float32 + ContentHeight float32 + ContentWidth float32 + Controlled bool + DisableDrag bool + Height float32 + HoverBarSize float32 + MinThumbSize float32 + PassThrough bool + Radius CornerRadius + ReserveScrollbarSpace bool + ScrollBarStackIndex int + ScrollX float32 + ScrollY float32 + Style *ScrollStyle + Theme Theme + ThumbBarSize float32 + WheelStep float32 + Width float32 + X float32 + Y float32 + type ScrollContent struct + Area ecs.Entity + X float32 + Y float32 + type ScrollMetrics struct + HorizontalVisible bool + MaxScrollX float32 + MaxScrollY float32 + VerticalVisible bool + ViewportHeight float32 + ViewportWidth float32 + func GetScrollAreaMetrics(world *ecs.World, entity ecs.Entity) (ScrollMetrics, bool) + func MeasureScrollArea(width, height, contentWidth, contentHeight float32) ScrollMetrics + type ScrollStyle struct + Thumb StateStyle[SurfaceStyle] + Track SurfaceStyle + type ScrollThumbHorizontalPart struct + type ScrollThumbVerticalPart struct + type ScrollTrackHorizontalPart struct + type ScrollTrackVerticalPart struct + type SelectedEvent struct + Entity ecs.Entity + Index int + Value T + type SelectionPart struct + type Selector struct + Icon IconStyle + ItemHeight float32 + Label string + ListHeight float32 + Open bool + Selected int + StackIndex int + Upward bool + type SelectorIconPart struct + type SelectorItem = Item[Selector] + type SelectorList struct + Selector ecs.Entity + type SelectorListPart struct + type SelectorOptions struct + Disabled bool + Height float32 + Icon IconStyle + ItemHeight float32 + JoinLeft bool + JoinRight bool + Label string + ListHeight float32 + Options []string + PassThrough bool + Radius CornerRadius + ScrollY float32 + Selected int + Style *SelectorStyle + Theme Theme + Upward bool + Width float32 + X float32 + Y float32 + type SelectorPanelBorderPart struct + type SelectorPanelPart struct + type SelectorScrollThumbPart struct + type SelectorScrollTrackPart struct + type SelectorStyle struct + Body StateStyle[SurfaceStyle] + Item StateStyle[SurfaceStyle] + Popup SurfaceStyle + type Skin struct + Button ButtonStyles + ButtonGroup ButtonGroupStyle + Checkbox CheckboxStyle + ContextMenu MenuStyle + ImageGrid ImageGridStyle + Menu MenuStyle + NumberInput NumberInputStyle + Panel PanelStyle + Progress ProgressStyle + Scroll ScrollStyle + Selector SelectorStyle + Tab TabStyle + TextField TextFieldStyle + Tree TreeStyle + VirtualJoystick VirtualJoystickStyle + func DefaultSkin(theme Theme) Skin + type StateStyle struct + Disabled *T + Focused *T + Hovered *T + Normal T + Pressed *T + Selected *T + func NewStateStyle[T any](normal T) StateStyle[T] + func (style StateStyle[T]) Resolve(state ControlState) T + func (style StateStyle[T]) WithDisabled(value T) StateStyle[T] + func (style StateStyle[T]) WithFocused(value T) StateStyle[T] + func (style StateStyle[T]) WithHovered(value T) StateStyle[T] + func (style StateStyle[T]) WithPressed(value T) StateStyle[T] + func (style StateStyle[T]) WithSelected(value T) StateStyle[T] + type StyleOverride struct + Value T + type SubmittedEvent struct + Entity ecs.Entity + Value T + type SurfaceStyle struct + Background scene.Shape2D + Border scene.Shape2D + Image scene.UIImage2D + func ColorSurface(color graphics.ColorRGBA) SurfaceStyle + func NineSliceSurface(texture *graphics.Texture, slice scene.NineSlice2D) SurfaceStyle + func TextureSurface(texture *graphics.Texture) SurfaceStyle + func (surface SurfaceStyle) WithBackground(shape scene.Shape2D) SurfaceStyle + func (surface SurfaceStyle) WithBorder(shape scene.Shape2D) SurfaceStyle + type Tab struct + HeaderHeight float32 + Height float32 + Highlight graphics.ColorRGBA + ItemBorders bool + Selected int + Width float32 + type TabItem struct + Disabled bool + Icon IconStyle + Index int + Label string + Tabs ecs.Entity + Width float32 + type TabItemBorder struct + Side TabItemBorderSide + type TabItemBorderPart struct + type TabItemBorderSide uint8 + const TabItemBorderBottom + const TabItemBorderLeft + const TabItemBorderRight + const TabItemBorderTop + type TabItemSpec struct + Disabled bool + Icon IconStyle + Label string + type TabOptions struct + HeaderHeight float32 + Height float32 + Highlight graphics.ColorRGBA + ItemBorders bool + Items []TabItemSpec + PassThrough bool + Radius CornerRadius + Selected int + Style *TabStyle + Theme Theme + Width float32 + X float32 + Y float32 + type TabPanel struct + Index int + Tabs ecs.Entity + type TabPanelOptions struct + Index int + PassThrough bool + Radius CornerRadius + Style *TabStyle + Theme Theme + type TabStyle struct + Frame SurfaceStyle + Item ToggleStyle[SurfaceStyle] + Panel SurfaceStyle + type TextControl struct + DPI float64 + FontSize float64 + MaxRunes int + Padding float32 + Password bool + Placeholder string + Value string + Wrap bool + type TextControlMode interface + type TextField struct + Anchor int + Buffer *input.TextBuffer + Caret int + Composition string + DPI float64 + Focused bool + FontSize float64 + MaxRunes int + Password bool + Placeholder string + ScrollX float32 + Selecting bool + Source piecetree.Snapshot + Submitted bool + Value string + func (f *TextField) RecordEdit(previous TextField) + func (f TextField) Text() piecetree.Snapshot + type TextFieldKeyHandler struct + Handle func(*input.State) bool + type TextFieldStyle struct + Body StateStyle[SurfaceStyle] + Caret SurfaceStyle + Selection SurfaceStyle + type TextOptions struct + DPI float64 + Disabled bool + FontSize float64 + Height float32 + JoinLeft bool + JoinRight bool + MaxRunes int + PassThrough bool + Password bool + Placeholder string + Radius CornerRadius + Style *TextFieldStyle + Theme Theme + Value string + Width float32 + Wrap bool + X float32 + Y float32 + type Textarea struct + BarSize float32 + CaptureTab bool + DisableHorizontalScroll bool + FollowTail bool + Padding float32 + ScrollX float32 + ScrollY float32 + SelectTokens bool + WheelStep float32 + Wrap bool + WrapTokens bool + WrapWidthPercent float32 + func (textarea *Textarea) ResetScroll() + func (textarea *Textarea) RestoreScroll(x, y float32) + type Theme struct + Accent graphics.ColorRGBA + Background graphics.ColorRGBA + DPI float64 + Danger graphics.ColorRGBA + Font *onixtext.Font + FontSize float64 + Muted graphics.ColorRGBA + Primary graphics.ColorRGBA + PrimaryActive graphics.ColorRGBA + PrimaryHover graphics.ColorRGBA + Selection graphics.ColorRGBA + StackIndex int + Surface graphics.ColorRGBA + SurfaceActive graphics.ColorRGBA + SurfaceDisabled graphics.ColorRGBA + SurfaceHover graphics.ColorRGBA + Text graphics.ColorRGBA + func DefaultTheme() Theme + func ThemeForWorld(world *ecs.World, theme Theme) Theme + func ThemeWithDefaults(theme Theme) Theme + type ThumbPart struct + type TitlePart struct + type Toggle struct + Changed bool + Off T + On T + Value T + type ToggleStyle struct + Off StateStyle[T] + On StateStyle[T] + func (style ToggleStyle[T]) Resolve(on bool, state ControlState) T + type TrackPart struct + type Tree struct + HasSelection bool + RowHeight float32 + Selected T + Width float32 + type TreeEvent struct + ID T + Label string + Node ecs.Entity + Tree ecs.Entity + type TreeIndicatorImagePart struct + type TreeIndicatorTextPart struct + type TreeNode struct + Depth int + Disabled bool + Expanded bool + HasParent bool + ID T + Label string + Leaf bool + Order int + Parent T + Selected bool + Tree ecs.Entity + type TreeNodeSpec struct + Expanded bool + HasParent bool + ID T + Label string + Leaf bool + Parent T + type TreeOptions struct + Nodes []TreeNodeSpec[T] + PassThrough bool + Radius CornerRadius + RowHeight float32 + Style *TreeStyle + Theme Theme + Width float32 + X float32 + Y float32 + type TreeStyle struct + Background SurfaceStyle + Collapsed IconStyle + Expanded IconStyle + Leaf IconStyle + Row ToggleStyle[SurfaceStyle] + type TreeTextPart struct + type Typography struct + Color graphics.ColorRGBA + DPI float64 + FontSize float64 + type ValuePart struct + type Variant struct + Enabled bool + Entity ecs.Entity + State T + type Variants struct + Items []Variant[T] + type VirtualJoystick struct + Active bool + Axis VirtualJoystickAxis + DeadZone float32 + Floating bool + Knob ecs.Entity + RawValue mgl32.Vec2 + Track ecs.Entity + Value mgl32.Vec2 + type VirtualJoystickActiveEvent struct + Active bool + Entity ecs.Entity + type VirtualJoystickAxis uint8 + const VirtualJoystickBoth + const VirtualJoystickHorizontal + const VirtualJoystickVertical + type VirtualJoystickKnobPart struct + type VirtualJoystickOptions struct + Axis VirtualJoystickAxis + DeadZone float32 + Disabled bool + Floating bool + KnobSize float32 + PassThrough bool + Size float32 + Style *VirtualJoystickStyle + Theme Theme + X float32 + Y float32 + type VirtualJoystickStyle struct + Knob StateStyle[SurfaceStyle] + Track StateStyle[SurfaceStyle] + type VirtualJoystickTrackPart struct + type Widget struct + AlignBottom bool + AlignLeft bool + AlignMode WidgetAlignMode + AlignRight bool + AlignTop bool + Bottom scene.Val + Enabled bool + Left scene.Val + Right scene.Val + Target ecs.Entity + TargetID string + Top scene.Val + func NewWidget() Widget + func (w *Widget) UnmarshalJSON(data []byte) error + type WidgetAlignMode uint8 + const WidgetAlignAlways + const WidgetAlignOnWindowResize + const WidgetAlignOnce + type Widgets struct + type WindowTitleBar struct + Buttons []ecs.Entity + Height float32 + StackIndex int + Width float32 + type WindowTitleBarAction uint8 + const WindowTitleBarClose + const WindowTitleBarFullscreen + const WindowTitleBarMaximize + const WindowTitleBarMinimize + type WindowTitleBarButton struct + Action WindowTitleBarAction + Bar ecs.Entity + type WindowTitleBarEvent struct + Action WindowTitleBarAction + Bar ecs.Entity + Button ecs.Entity + type WindowTitleBarItem struct + Action WindowTitleBarAction + Icon IconStyle + Style *ButtonStyle + Width float32 + type WindowTitleBarOptions struct + Height float32 + Items []WindowTitleBarItem + PassThrough bool + Radius CornerRadius + StackIndex int + Theme Theme + Width float32 + X float32 + Y float32