mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibGUI: Add DoClamp option to AbstractSlider::set_value()
This commit is contained in:
parent
ab4c73746c
commit
1d522e4b4c
Notes:
sideshowbarker
2024-07-17 16:34:15 +09:00
Author: https://github.com/itamar8910
Commit: 1d522e4b4c
Pull-request: https://github.com/SerenityOS/serenity/pull/13335
Reviewed-by: https://github.com/alimpfard ✅
7 changed files with 17 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue