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

GWidget: Tidy up the hit-testing code somewhat.

This commit is contained in:
Andreas Kling 2019-04-16 13:25:00 +02:00
parent c812d63ea6
commit 952f334de7
3 changed files with 11 additions and 13 deletions

View file

@ -92,12 +92,10 @@ public:
struct HitTestResult {
GWidget* widget { nullptr };
int localX { 0 };
int localY { 0 };
Point local_position;
};
HitTestResult hit_test(int x, int y);
GWidget* child_at(const Point&);
HitTestResult hit_test(const Point&);
GWidget* child_at(const Point&) const;
virtual const char* class_name() const override { return "GWidget"; }