MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / itemWidgetAt

Method itemWidgetAt

source/windowing/StarItemGridWidget.cpp:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57ItemSlotWidgetPtr ItemGridWidget::itemWidgetAt(Vec2I const& position) const {
58 auto pos = bagLocationAt(position);
59 if (pos != NPos)
60 return m_slots[pos];
61 return {};
62}
63
64ItemSlotWidgetPtr ItemGridWidget::itemWidgetAt(size_t index) const {
65 if (index < m_slots.size())

Callers 1

updateMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected