public popupContainsPoint(x as Int, y as Int) as Boolean:
Returns whether a point lies inside the visible popup surface.
Window backends use this method to dismiss a context menu before routing a pointer press outside it. Applications normally do not need to call it directly.
| Parameter | Description |
|---|---|
x | Horizontal coordinate in window space. |
y | Vertical coordinate in window space. |
true when the popup is open and contains the point.
if menu.popupContainsPoint(mouseX, mouseY):
print("inside context menu")