| 52 | } |
| 53 | |
| 54 | void ComboBox::SelectItem( IndexType index ) { |
| 55 | if( index >= static_cast<IndexType>( m_entries.size() ) || index < 0 ) { |
| 56 | return; |
| 57 | } |
| 58 | |
| 59 | m_active_item = index; |
| 60 | Invalidate(); |
| 61 | } |
| 62 | |
| 63 | void ComboBox::AppendItem( const sf::String& text ) { |
| 64 | m_entries.push_back( text ); |