tabview

package
v0.0.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Style added in v0.0.33

type Style struct {
	BarBackground     uint
	ContentBackground uint
	NormalText        uint
	ActiveText        uint
	Indicator         uint
	FontSize          int
}

Style controls the native tab strip without requiring application-local drawing patches. Zero values retain the platform-neutral defaults.

type UITabView

type UITabView struct {
	// contains filtered or unexported fields
}

UITabView is a native segmented tab container with explicit dynamic-tab lifecycle, stable identity and semantic automation support.

func NewUITabView

func NewUITabView(r *foundation.Rect) *UITabView

NewUITabView creates a native tab container.

func (*UITabView) ActiveIndex added in v0.0.33

func (tv *UITabView) ActiveIndex() int

func (*UITabView) AddTab

func (tv *UITabView) AddTab(title string, content view.Viewable)

AddTab preserves the original convenience API and assigns a stable generated id.

func (*UITabView) AddTabWithID added in v0.0.33

func (tv *UITabView) AddTabWithID(id, title string, content view.Viewable) int

AddTabWithID adds a tab with application-stable identity and returns its index. Duplicate ids select and update the existing tab rather than creating ambiguity.

func (*UITabView) Count added in v0.0.33

func (tv *UITabView) Count() int

func (*UITabView) IndexOfID added in v0.0.33

func (tv *UITabView) IndexOfID(id string) int

func (*UITabView) OnTabChanged

func (tv *UITabView) OnTabChanged(cb func(index int))

func (*UITabView) Raw

func (tv *UITabView) Raw() *fltk_bridge.Group

func (*UITabView) RemoveTab added in v0.0.33

func (tv *UITabView) RemoveTab(index int) bool

RemoveTab removes native and semantic ownership, then selects the nearest remaining tab. Removing a tab before the active one preserves active identity.

func (*UITabView) SelectTab

func (tv *UITabView) SelectTab(index int)

func (*UITabView) SetAutomationID added in v0.0.33

func (tv *UITabView) SetAutomationID(id string) *UITabView

SetAutomationID assigns the tab list and stable child ids in the form <id>.tab.<tab-id>.

func (*UITabView) SetStyle added in v0.0.33

func (tv *UITabView) SetStyle(style Style)

SetStyle applies semantic native colors and typography to the strip.

func (*UITabView) SetTabTitle added in v0.0.33

func (tv *UITabView) SetTabTitle(index int, title string) bool

func (*UITabView) TabID added in v0.0.33

func (tv *UITabView) TabID(index int) string

func (*UITabView) View

func (tv *UITabView) View() *view.UIView

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL