1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

Base+Manpages: Add basic GML documentation

First draft of GML documentation, just to get things started.
This commit is contained in:
electrikmilk 2022-02-09 18:11:07 -05:00 committed by Brian Gianforcaro
parent d01d754b83
commit 58a865f349
51 changed files with 1242 additions and 0 deletions

View file

@ -0,0 +1,33 @@
## Name
## Description
Defines a GUI Button widget.
## Synopsis
`@GUI::Button`
## Examples
```gml
@GUI::Button {
name: "normal_button"
text: "Button"
}
@GUI::Button {
name: "disabled_normal_button"
text: "Disabled"
enabled: "false"
}
```
## Registered Properties
| Property | Type | Possible values | Description |
|--------------|--------|-----------------|------------------------------|
| button_style | enum | Normal, Coolbar | Sets the style of the button |
| text | string | Any string | Sets the label text |
| checked | bool | true or false | |
| checkable | bool | true or false | |