mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:47:34 +00:00
GScrollableWidget: Make the scrollbar metrics helpers public.
This commit is contained in:
parent
de4d85b097
commit
dd6b8135c2
1 changed files with 3 additions and 2 deletions
|
@ -34,6 +34,9 @@ public:
|
||||||
void scroll_to_top();
|
void scroll_to_top();
|
||||||
void scroll_to_bottom();
|
void scroll_to_bottom();
|
||||||
|
|
||||||
|
int width_occupied_by_vertical_scrollbar() const;
|
||||||
|
int height_occupied_by_horizontal_scrollbar() const;
|
||||||
|
|
||||||
virtual const char* class_name() const override { return "GScrollableWidget"; }
|
virtual const char* class_name() const override { return "GScrollableWidget"; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -44,8 +47,6 @@ protected:
|
||||||
void set_content_size(const Size&);
|
void set_content_size(const Size&);
|
||||||
void set_size_occupied_by_fixed_elements(const Size&);
|
void set_size_occupied_by_fixed_elements(const Size&);
|
||||||
|
|
||||||
int width_occupied_by_vertical_scrollbar() const;
|
|
||||||
int height_occupied_by_horizontal_scrollbar() const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void update_scrollbar_ranges();
|
void update_scrollbar_ranges();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue