| 152 | } |
| 153 | |
| 154 | void ComboBox::Clear() { |
| 155 | if( m_entries.empty() ) { |
| 156 | return; |
| 157 | } |
| 158 | |
| 159 | m_entries.clear(); |
| 160 | |
| 161 | m_active_item = NONE; |
| 162 | |
| 163 | SetState( State::NORMAL ); |
| 164 | |
| 165 | Invalidate(); |
| 166 | } |
| 167 | |
| 168 | ComboBox::ConstIterator ComboBox::Begin() const { |
| 169 | // TODO: No std::cbegin in C++11 yet. |