klyn.gui.windows.ContextMenu.popupContainsPoint
method
public popupContainsPoint(x as Int, y as Int) as Boolean:
Description

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.

Parameters
ParameterDescription
xHorizontal coordinate in window space.
yVertical coordinate in window space.
Returns

true when the popup is open and contains the point.

Example
if menu.popupContainsPoint(mouseX, mouseY):
print("inside context menu")