Function ItemList.setItemIconRegion

Sets the region of item's icon used. The whole icon will be used if the region has no area.

void setItemIconRegion (
  const(long) idx,
  const(Rect2) rect
) nothrow @nogc;