Function ItemList.setItemIcon

Sets (or replaces) the icon's Texture associated with the specified index.

void setItemIcon (
  const(long) idx,
  Texture icon
) nothrow @nogc;