OptionButton.addItem

Adds an item, with text label and (optionally) id. If no id is passed, the item index will be used as the item's ID. New items are appended at the end.

struct OptionButton
@nogc nothrow
void
addItem
(
in String label
,
in long id = -1
)

Meta