view

package
v0.0.0-...-a59fafb Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TypeBaseTree

type TypeBaseTree struct {
	widget.Tree
	*generation.TreeModelRegistry
	OnTapped func(id widget.TreeNodeID, model generation.TreeModel, event *fyne.PointEvent) // OnTapped is called by the typeBaseNode that receives an event from Fyne.

	OnDoubleTapped func(id widget.TreeNodeID, model generation.TreeModel, event *fyne.PointEvent) // OnDoubleTapped is called by the typeBaseNode that receives an event from Fyne.

	OnTappedSecondary func(id widget.TreeNodeID, model generation.TreeModel, event *fyne.PointEvent) // OnTappedSecondary is called by the typeBaseNode that receives an event from Fyne.

}

TypeBaseTree is a widget.Tree implementation that manages IDs through generation.TreeModelRegistry. This is designed to be the gatekeeper for all widget and model mutations.

func NewTypeBaseTree

func NewTypeBaseTree(modelRoots ...generation.TreeModel) *TypeBaseTree

NewTypeBaseTree initializes the tree and adds all modelRoots to the registry.

func (*TypeBaseTree) AddChild

func (t *TypeBaseTree) AddChild(parentID widget.TreeNodeID, data generation.TreeModel) (widget.TreeNodeID, error)

func (*TypeBaseTree) DoubleTapped

func (t *TypeBaseTree) DoubleTapped(id widget.TreeNodeID, event *fyne.PointEvent)

func (*TypeBaseTree) RemoveChild

func (t *TypeBaseTree) RemoveChild(dataID widget.TreeNodeID)

func (*TypeBaseTree) Tapped

func (t *TypeBaseTree) Tapped(id widget.TreeNodeID, event *fyne.PointEvent)

func (*TypeBaseTree) TappedSecondary

func (t *TypeBaseTree) TappedSecondary(id widget.TreeNodeID, event *fyne.PointEvent)

Jump to

Keyboard shortcuts

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