mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
LibGUI: Implement is_min() & is_max() helpers to AbstractSlider
This commit is contained in:
parent
c7a99aafac
commit
522119ab95
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,9 @@ public:
|
||||||
int page_step() const { return m_page_step; }
|
int page_step() const { return m_page_step; }
|
||||||
bool jump_to_cursor() const { return m_jump_to_cursor; }
|
bool jump_to_cursor() const { return m_jump_to_cursor; }
|
||||||
|
|
||||||
|
bool is_min() const { return m_value == m_min; }
|
||||||
|
bool is_max() const { return m_value == m_max; }
|
||||||
|
|
||||||
void set_range(int min, int max);
|
void set_range(int min, int max);
|
||||||
virtual void set_value(int);
|
virtual void set_value(int);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue