Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildError ¶
BuildError represents an error during element tree construction.
func (*BuildError) Error ¶
func (e *BuildError) Error() string
type ComponentDef ¶
type ComponentDef struct {
Name string
Properties []*Property // property declarations with defaults
Signals []SignalDecl // signal declarations
Defaults []*Property // default attribute values
Children []*Node // child element templates (future)
Line int
}
ComponentDef represents a component definition.
type Document ¶
type Document struct {
Imports []ImportDecl
Components []*ComponentDef
Root *Node // the root element (Window, VBox, etc.)
}
Document is the top-level parse result.
type ImportDecl ¶
ImportDecl represents an import statement.
type Node ¶
Node represents an element in the UI tree.
func (*Node) PropString ¶
PropString returns the string representation of a property.
type ParseError ¶
ParseError represents an error during UI parsing with location info.
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type SignalDecl ¶
SignalDecl represents a signal declaration inside a component.
Click to show internal directories.
Click to hide internal directories.