mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
LibGUI: Add ValueSlider widget
ValueSlider is a more generalized version of OpacitySlider when we need a slider with values displayed. It will always show the current value with a user defined suffix.
This commit is contained in:
parent
2cd8b21974
commit
07ad64da8c
5 changed files with 258 additions and 1 deletions
|
@ -27,7 +27,7 @@ public:
|
|||
bool jump_to_cursor() const { return m_jump_to_cursor; }
|
||||
|
||||
void set_range(int min, int max);
|
||||
void set_value(int);
|
||||
virtual void set_value(int);
|
||||
|
||||
void set_min(int min) { set_range(min, max()); }
|
||||
void set_max(int max) { set_range(min(), max); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue