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:
parent
c812d63ea6
commit
952f334de7
3 changed files with 11 additions and 13 deletions
|
@ -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"; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue