PopupMenu.addMultistateItem

Adds a new multistate item with text label. Contrarily to normal binary items, multistate items can have more than two states, as defined by max_states. Each press or activate of the item will increase the state by one. The default value is defined by default_state. An id can optionally be provided, as well as an accelerator (accel). If no id is provided, one will be created from the index. If no accel is provided then the default 0 will be assigned to it. See getItemAccelerator for more info on accelerators.

struct PopupMenu
@nogc nothrow
void
addMultistateItem
(
in String label
,
in long max_states
,
in long default_state = 0
,
in long id = -1
,
in long accel = 0
)

Meta