message: Use packed `Rectangle` in `StructureListBox`
diff: @@ -18,7 +18,7 @@ static const Font* MAIN_FONT = nullptr;
  static const Font* MAIN_FONT_BOLD = nullptr;
  -static void drawItem(Renderer& renderer, StructureListBox::StructureListBoxItem& item, int x, int y, int w, bool highlight)
  +static void drawItem(Renderer& renderer, StructureListBox::StructureListBoxItem& item, NAS2D::Rectangle<int> rect, bool highlight)
  {
  Structure* structure = item.structure;
  @@ -27,13 +27,13 @@ static void drawItem(Renderer& renderer, StructureListBox::StructureListBoxItem&
  const auto highlightColor = NAS2D::Color{structureColor.red, structureColor.green, structureColor.blue, 75};
  // draw highlight rect so as not to tint/hue colors of everything else
  - if (highlight) { renderer.drawBoxFilled(NAS2D::Rectangle{x, y, w, LIST_ITEM_HEIGHT}, highlightColor); }
  + if (highlight) { renderer.drawBoxFilled(rect, highlightColor); }
  - renderer.drawBox(NAS2D::Rectangle{x + 2, y + 2, w - 4, LIST_ITEM_HEIGHT - 4}, structureColor);
  + renderer.drawBox(rect.inset(2), structureColor);
  - renderer.drawText(*MAIN_FONT_BOLD, item.text, NAS2D::Point{x + 5, ((y + 15) - MAIN_FONT_BOLD->height() / 2)}, structureTextColor);
  + renderer.drawText(*MAIN_FONT_BOLD, item.text, rect.startPoint() + NAS2D::Vector{5, 15 - MAIN_FONT_BOLD->height() / 2}, structureTextColor);
  - renderer.drawText(*MAIN_FONT, item.structureState, NAS2D::Point{x + w - MAIN_FONT->width(item.structureState) - 5, ((y + 15) - MAIN_FONT_BOLD->height() / 2)}, structureTextColor);
  + renderer.drawText(*MAIN_FONT, item.structureState, rect.crossXPoint() + NAS2D::Vector{-MAIN_FONT->width(item.structureState) - 5, 15 - MAIN_FONT_BOLD->height() / 2}, structureTextColor);
  }
  @@ -124,9 +124,12 @@ void StructureListBox::update()
  for (std::size_t i = 0; i < mItems.size(); ++i)
  {
  drawItem(renderer, *static_cast<StructureListBoxItem*>(mItems[i]),
  + {
  positionX(),
  positionY() + (static_cast<int>(i) * LIST_ITEM_HEIGHT) - static_cast<int>(draw_offset()),
  static_cast<int>(item_width()),
  + LIST_ITEM_HEIGHT
  + },
  i == selectedIndex());
  }
  