PopupMenu

@Contract(value = "_, _, _, null, true, _ -> fail")
@JvmName(name = "PopupMenu")
fun PopupMenu(vararg children: Drawable?, size: Vec2 = Vec2.ZERO, align: Align = AlignDefault, polyUI: PolyUI?, openNow: Boolean = true, position: Point = Point.At): Block

Spawn a menu at the mouse position.

Parameters

polyUI

an instance of PolyUI. If null, openNow must be false, or else an exception will be thrown.

openNow

if true, the menu is opened immediately. else, call PolyUI.focus on the return value to open it.