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

LibGUI: Widget updates should invalidate their window-relative rect.

This commit is contained in:
Andreas Kling 2019-02-09 14:30:05 +01:00
parent 6a3ff7efc5
commit 5bd363c4bb
2 changed files with 12 additions and 1 deletions

View file

@ -31,6 +31,8 @@ public:
Rect relative_rect() const { return m_relative_rect; }
Point relative_position() const { return m_relative_rect.location(); }
Rect window_relative_rect() const;
int x() const { return m_relative_rect.x(); }
int y() const { return m_relative_rect.y(); }
int width() const { return m_relative_rect.width(); }