mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
Base+Manpages: Add basic GML documentation
First draft of GML documentation, just to get things started.
This commit is contained in:
parent
d01d754b83
commit
58a865f349
51 changed files with 1242 additions and 0 deletions
20
Base/usr/share/man/man5/GML-Define-property.md
Normal file
20
Base/usr/share/man/man5/GML-Define-property.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
## Name
|
||||
|
||||
GML Property Definition
|
||||
|
||||
## Description
|
||||
|
||||
How to register property to a widget.
|
||||
|
||||
**LIbGUI** widget definitions contain macros that define the properties that can be used for a given widget.
|
||||
|
||||
However, widgets also understand properties defined by their parents. Such as `x`, `y`, `name`, etc.
|
||||
|
||||
## Examples
|
||||
|
||||
```cpp
|
||||
REGISTER_ENUM_PROPERTY(
|
||||
"button_style", button_style, set_button_style, Gfx::ButtonStyle,
|
||||
{ Gfx::ButtonStyle::Normal, "Normal" },
|
||||
{ Gfx::ButtonStyle::Coolbar, "Coolbar" });
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue