avyos.dev/pkg/graphics/widget/decl

package decl

Overview

No package-level documentation is provided.

Export GroupCount
Constants0
Variables0
Functions4
Types0

Functions

CollectFocusable

func CollectFocusable(root *ui.Element) []*ui.Element

CollectFocusable collects all elements with focusable=true.

FindElement

func FindElement(root *ui.Element, id string) *ui.Element

FindElement 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.