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

Parameter | Description
--- | ---
`layerX` | Overlay left coordinate.
`layerY` | Overlay top coordinate.
`layerWidth` | Overlay width.
`layerHeight` | Overlay height.
`menuX` | Requested popup left coordinate.
`menuY` | Requested popup top coordinate.

Example

    menu.open(panel.x, panel.y, panel.width, panel.height, event.x, event.y)