Documentation ¶
Index ¶
- Constants
- func BuildStyle(sheet Sheet) (*style.Style, event.Cookie, error)
- func Lex(filename string, reader io.Reader) parse.Lexer
- func LoadFile(name string) (*style.Style, event.Cookie, error)
- type Rule
- type Selector
- type Sheet
- type Value
- type ValueColor
- type ValueCut
- type ValueKeyword
- type ValueList
- type ValueNumber
- type ValueString
- type ValueVariable
Constants ¶
View Source
const ( Comment parse.TokenKind = iota LBrace RBrace LBracket RBracket Equals Colon Comma Semicolon Star Dot Dollar Slash Color Ident Number String )
Variables ¶
This section is empty.
Functions ¶
func BuildStyle ¶
BuildStyle builds a Tomo style from the specified sheet. Resources associated with it (such as textures) can be freed by closing the returned cookie.
Types ¶
type Sheet ¶
type ValueColor ¶
type ValueColor uint32
func (ValueColor) RGBA ¶
func (value ValueColor) RGBA() (r, g, b, a uint32)
type ValueKeyword ¶
type ValueKeyword string
type ValueNumber ¶
type ValueNumber int
type ValueString ¶
type ValueString string
type ValueVariable ¶
type ValueVariable string
Click to show internal directories.
Click to hide internal directories.