mirror of
https://github.com/RGBCube/serenity
synced 2025-10-27 13:02:07 +00:00
802 B
802 B
Name
GML Basic Syntax
Description
How to write GML using proper syntax.
Basic Syntax
Each widget begins with @GUI::, with the name of the widget following. To define the properties of this widget, we follow with curly brackets and a list of properties.
Properties
A property's value is required to be in the property's set type:
intboolstringreadonly_stringenumfont_weighttext_alignmenttext_wrappingrectsizemargins
Properties are never ended with ; or ,, and the property name is never enclosed in quotes or double quotes.
Properties are always surrounded by curly brackets (e.g. {}). If no properties are set however, no brackets are required.
Examples
@GUI::Widget {
name: "my_first_widget"
}