| 92 | //! Get item data from specified position |
| 93 | template<typename ValueType> |
| 94 | ValueType* getItemDataAt(size_t _index, bool _throw = true) const |
| 95 | { |
| 96 | MYGUI_ASSERT_RANGE(_index, mItemsInfo.size(), "ListBox::getItemDataAt"); |
| 97 | return mItemsInfo.at(_index).second.castType<ValueType>(_throw); |
| 98 | } |
| 99 | //@} |
| 100 | |
| 101 | //------------------------------------------------------------------------------// |