summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/ValueSlider.h
diff options
context:
space:
mode:
authorFrHun <28605587+frhun@users.noreply.github.com>2023-02-10 01:07:37 +0100
committerSam Atkins <atkinssj@gmail.com>2023-02-17 16:25:57 +0000
commitcaf6dd56809bb305ae1ebffbcc39990c8c8b864c (patch)
tree528c27b232385d74e74ecd255a8f17762f9e7a69 /Userland/Libraries/LibGUI/ValueSlider.h
parentb6d45f9c1feca10d80da65a1c14ba7488691f44e (diff)
downloadserenity-caf6dd56809bb305ae1ebffbcc39990c8c8b864c.zip
LibGUI: Implement calculated sizes for ValueSlider
Diffstat (limited to 'Userland/Libraries/LibGUI/ValueSlider.h')
-rw-r--r--Userland/Libraries/LibGUI/ValueSlider.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/ValueSlider.h b/Userland/Libraries/LibGUI/ValueSlider.h
index 191da5a343..96db34c374 100644
--- a/Userland/Libraries/LibGUI/ValueSlider.h
+++ b/Userland/Libraries/LibGUI/ValueSlider.h
@@ -43,6 +43,10 @@ private:
int value_at(Gfx::IntPoint position) const;
Gfx::IntRect bar_rect() const;
Gfx::IntRect knob_rect() const;
+ int knob_length() const;
+
+ virtual Optional<UISize> calculated_min_size() const override;
+ virtual Optional<UISize> calculated_preferred_size() const override;
String m_suffix {};
Orientation m_orientation { Orientation::Horizontal };