Documentation
¶
Index ¶
- type TypeBaseTree
- func (t *TypeBaseTree) AddChild(parentID widget.TreeNodeID, data generation.TreeModel) (widget.TreeNodeID, error)
- func (t *TypeBaseTree) DoubleTapped(id widget.TreeNodeID, event *fyne.PointEvent)
- func (t *TypeBaseTree) RemoveChild(dataID widget.TreeNodeID)
- func (t *TypeBaseTree) Tapped(id widget.TreeNodeID, event *fyne.PointEvent)
- func (t *TypeBaseTree) TappedSecondary(id widget.TreeNodeID, event *fyne.PointEvent)
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)
Click to show internal directories.
Click to hide internal directories.