1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:47:46 +00:00

LibGUI: Implement is_min() & is_max() helpers to AbstractSlider

This commit is contained in:
Marcus Nilsson 2021-09-16 18:58:09 +02:00 committed by Andreas Kling
parent c7a99aafac
commit 522119ab95

View file

@ -26,6 +26,9 @@ public:
int page_step() const { return m_page_step; }
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);
virtual void set_value(int);