Function ItemList.addItem

Adds an item to the item list with specified text. Specify an icon, or use null as the icon for a list item with no icon. If selectable is true, the list item will be selectable.

void addItem (
  const(String) text,
  Texture icon = Texture(godot_object(null), ),
  const(bool) selectable = true
) nothrow @nogc;