tabview

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UITabView

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

UITabView 封装基于现代 UI 理念的分段控制器/多标签视图

func NewUITabView

func NewUITabView(r *foundation.Rect) *UITabView

NewUITabView 创建一个新的分段标签容器

func (*UITabView) AddTab

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

AddTab 添加一个新标签页

func (*UITabView) OnTabChanged

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

OnTabChanged 注册切换标签的回调

func (*UITabView) Raw

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

Raw 返回底层容器

func (*UITabView) SelectTab

func (tv *UITabView) SelectTab(index int)

SelectTab 选中指定的标签页

func (*UITabView) View

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

View 实现 Viewable 接口

Jump to

Keyboard shortcuts

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