/** * \brief Adjust the components of the layer. * \param elapsed_time Elapsed time since the last call. */ void bear::level_loader_progression_item::progress ( universe::time_type elapsed_time ) { super::progress(elapsed_time); const unsigned int item_index = get_item_index(); const unsigned int items_count = get_items_count(); m_item_bar.set_width( item_index * (unsigned int)get_width() / items_count ); } // level_loader_progression_item::progress()
ToolBarItem ToolBar::get_item_by_id(int id) { int index = get_item_index(id); return impl->items[index]; }