mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-08 10:01:53 +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" });