1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00

LibGUI: Implement calculated sizes for ValueSlider

This commit is contained in:
FrHun 2023-02-10 01:07:37 +01:00 committed by Sam Atkins
parent b6d45f9c1f
commit caf6dd5680
2 changed files with 27 additions and 2 deletions

View file

@ -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 };