core.contextmenu
A context menu.
local contextmenu = require "core.contextmenu"
DIVIDER
(field) DIVIDER: table
A unique value representing the divider in a context menu.
__index
(field) __index: core.object
current_scale
(field) current_scale: number
height
(field) height: integer
items
(field) items: table
move_towards
(field) move_towards: fun(self: table, k: string, dest: number, rate?: number, name?: string)
position
(field) position: core.view.position
selected
(field) selected: number
show_context_menu
(field) show_context_menu: boolean
super
(field) super: core.object
core.contextmenu.item
An item in the context menu.
command
(field) command: string|fun()
info
(field) info: string|nil
If provided, this text is displayed on the right side of the menu.
text
(field) text: string
core.contextmenu.itemset
A list of items with the same predicate.