klyn.gui.windows.ContextMenu.open
method
public open(layerX as Int, layerY as Int, layerWidth as Int, layerHeight as Int, menuX as Int, menuY as Int) as Void:
Description

Opens the popup inside an overlay layer.

The menu is automatically moved when necessary to remain inside the provided layer bounds.

Parameters
ParameterDescription
layerXOverlay left coordinate.
layerYOverlay top coordinate.
layerWidthOverlay width.
layerHeightOverlay height.
menuXRequested popup left coordinate.
menuYRequested popup top coordinate.
Example
menu.open(panel.x, panel.y, panel.width, panel.height, event.x, event.y)