avyos.dev/pkg/graphics/widget/decl
package decl
Overview
No package-level documentation is provided.
| Export Group | Count |
|---|---|
| Constants | 0 |
| Variables | 0 |
| Functions | 4 |
| Types | 0 |
Functions
CollectFocusable
func CollectFocusable(root *ui.Element) []*ui.ElementCollectFocusable collects all elements with focusable=true.
FindElement
func FindElement(root *ui.Element, id string) *ui.ElementFindElement searches the tree for an element by id.
LoadFile
func LoadFile(path string, handler interface{}) (*ui.Element, error)LoadFile parses a declarative UI file and builds an element tree.
LoadString
func LoadString(source string, handler interface{}) (*ui.Element, error)LoadString parses declarative UI source and builds an element tree.