Function OptionButton.addIconItem

Adds an item, with a texture icon, 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.

void addIconItem (
  Texture texture,
  const(String) label,
  const(long) id = -1L
) nothrow @nogc;