1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:57:44 +00:00

GScrollableWidget: Add to_content_position(Point)

A handy helper function for converting a widget space coordinate into a
content space coordinate.
This commit is contained in:
Andreas Kling 2019-10-03 09:15:57 +02:00
parent f02c9aaac4
commit a181cae3e0
2 changed files with 10 additions and 0 deletions

View file

@ -41,6 +41,8 @@ public:
void set_should_hide_unnecessary_scrollbars(bool b) { m_should_hide_unnecessary_scrollbars = b; }
bool should_hide_unnecessary_scrollbars() const { return m_should_hide_unnecessary_scrollbars; }
Point to_content_position(const Point& widget_position) const;
protected:
explicit GScrollableWidget(GWidget* parent);
virtual void custom_layout() override;