[][src]Module fungui_syntax::style

Parser for the UI style format

This module contains the AST and parser for the format used to style and position a UI element.

The format is as follows:

// Comments (only single line)

// Name of an element. Can be made up from any
// letter, number or _
root > panel > image(width=width, height=height) {
    width = width,
    height = height,
}
emoji(type="smile") {
    image = "icons/smile.png",
}
panel > @text {
    color = "#0050AA",
}

Structs

Document

A UI style document

Element

An element which can contain other elements and/or have properties attached.

ExprType
Rule
ValueType

Contains a value and debugging information for the value.

Enums

Expr
Matcher
Value

A parsed value for a property