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

LibGUI: Add DoClamp option to AbstractSlider::set_value()

This commit is contained in:
Itamar 2022-03-29 16:01:59 +03:00 committed by Andreas Kling
parent ab4c73746c
commit 1d522e4b4c
7 changed files with 17 additions and 11 deletions

View file

@ -25,7 +25,7 @@ public:
void set_suffix(String suffix) { m_suffix = move(suffix); }
void set_knob_style(KnobStyle knobstyle) { m_knob_style = knobstyle; }
virtual void set_value(int value, AllowCallback = AllowCallback::Yes) override;
virtual void set_value(int value, AllowCallback = AllowCallback::Yes, DoClamp = DoClamp::Yes) override;
protected:
virtual void paint_event(PaintEvent&) override;