mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
WindowServer: Make hit test results richer
Instead of just answering hit/no-hit when hit testing windows, we now return a HitTestResult object which tells you which window was hit, where it was hit, and whether you hit the frame or the content.
This commit is contained in:
parent
370d3749e5
commit
4133caba78
6 changed files with 91 additions and 45 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "HitTestResult.h"
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/NonnullOwnPtrVector.h>
|
||||
#include <AK/RefPtr.h>
|
||||
|
@ -78,7 +79,7 @@ public:
|
|||
|
||||
void theme_changed();
|
||||
|
||||
bool hit_test(const Gfx::IntPoint&) const;
|
||||
Optional<HitTestResult> hit_test(Gfx::IntPoint const&) const;
|
||||
|
||||
void open_menubar_menu(Menu&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue