MCPcopy Create free account
hub / github.com/TankOs/SFGUI / Clear

Method Clear

src/SFGUI/ComboBox.cpp:154–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void 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
168ComboBox::ConstIterator ComboBox::Begin() const {
169 // TODO: No std::cbegin in C++11 yet.

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected