Documentation
¶
Index ¶
- type Style
- type UITabView
- func (tv *UITabView) ActiveIndex() int
- func (tv *UITabView) AddTab(title string, content view.Viewable)
- func (tv *UITabView) AddTabWithID(id, title string, content view.Viewable) int
- func (tv *UITabView) Count() int
- func (tv *UITabView) IndexOfID(id string) int
- func (tv *UITabView) OnTabChanged(cb func(index int))
- func (tv *UITabView) Raw() *fltk_bridge.Group
- func (tv *UITabView) RemoveTab(index int) bool
- func (tv *UITabView) SelectTab(index int)
- func (tv *UITabView) SetAutomationID(id string) *UITabView
- func (tv *UITabView) SetStyle(style Style)
- func (tv *UITabView) SetTabTitle(index int, title string) bool
- func (tv *UITabView) TabID(index int) string
- func (tv *UITabView) View() *view.UIView
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 (*UITabView) AddTab ¶
AddTab preserves the original convenience API and assigns a stable generated id.
func (*UITabView) AddTabWithID ¶ added in v0.0.33
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) OnTabChanged ¶
func (*UITabView) Raw ¶
func (tv *UITabView) Raw() *fltk_bridge.Group
func (*UITabView) RemoveTab ¶ added in v0.0.33
RemoveTab removes native and semantic ownership, then selects the nearest remaining tab. Removing a tab before the active one preserves active identity.
func (*UITabView) SetAutomationID ¶ added in v0.0.33
SetAutomationID assigns the tab list and stable child ids in the form <id>.tab.<tab-id>.
func (*UITabView) SetStyle ¶ added in v0.0.33
SetStyle applies semantic native colors and typography to the strip.