mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 17:45:08 +00:00
523 B
523 B
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
REGISTER_ENUM_PROPERTY(
"button_style", button_style, set_button_style, Gfx::ButtonStyle,
{ Gfx::ButtonStyle::Normal, "Normal" },
{ Gfx::ButtonStyle::Coolbar, "Coolbar" });