mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:35:06 +00:00
LibGUI: Register a whole bunch of properties in various widgets
This commit is contained in:
parent
20b74e4ede
commit
90aeacbb58
14 changed files with 65 additions and 7 deletions
|
@ -35,6 +35,12 @@ namespace GUI {
|
|||
ProgressBar::ProgressBar()
|
||||
{
|
||||
REGISTER_STRING_PROPERTY("text", text, set_text);
|
||||
REGISTER_ENUM_PROPERTY("format", format, set_format, Format,
|
||||
{ Format::NoText, "NoText" },
|
||||
{ Format::Percentage, "Percentage" },
|
||||
{ Format::ValueSlashMax, "ValueSlashMax" });
|
||||
REGISTER_INT_PROPERTY("min", min, set_min);
|
||||
REGISTER_INT_PROPERTY("max", max, set_max);
|
||||
}
|
||||
|
||||
ProgressBar::~ProgressBar()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue