treeview

package
v0.0.45 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TreeDataSource

type TreeDataSource interface {
	// RootNode 返回根节点的路径名称
	RootNode() string
	// Children 返回指定 path 下的所有子节点相对名称列表
	Children(path string) []string
	// HasChildren 判断指定 path 是否有子节点,用于懒加载展示折叠图标
	HasChildren(path string) bool
}

type UITreeView

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

func NewUITreeView

func NewUITreeView(r *foundation.Rect) *UITreeView

func (*UITreeView) OnItemSelected

func (tv *UITreeView) OnItemSelected(cb func(path string))

func (*UITreeView) Raw

func (tv *UITreeView) Raw() *fltk_bridge.Tree

func (*UITreeView) ReloadData

func (tv *UITreeView) ReloadData()

func (*UITreeView) SetDataSource

func (tv *UITreeView) SetDataSource(ds TreeDataSource)

func (*UITreeView) View

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

Jump to

Keyboard shortcuts

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