1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:07:35 +00:00

VisualBuilder: Add some widget-specific properties.

This commit is contained in:
Andreas Kling 2019-04-12 15:17:53 +02:00
parent 3674bb9429
commit c98bbff0cb
5 changed files with 66 additions and 25 deletions

View file

@ -11,6 +11,8 @@ public:
void set_value(int);
int value() const { return m_value; }
int min() const { return m_min; }
int max() const { return m_max; }
String caption() const { return m_caption; }
void set_caption(const String& caption) { m_caption = caption; }

View file

@ -13,6 +13,8 @@ public:
int value() const { return m_value; }
void set_value(int);
int min() const { return m_min; }
int max() const { return m_max; }
void set_range(int min, int max);
Function<void(int value)> on_change;