1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:15:07 +00:00
serenity/Base/usr/share/man/man5/GML-Define-property.md
electrikmilk 58a865f349 Base+Manpages: Add basic GML documentation
First draft of GML documentation, just to get things started.
2022-03-03 14:59:00 -08:00

20 lines
523 B
Markdown

## 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" });
```