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

Method SelectItem

src/SFGUI/ComboBox.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void 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
63void ComboBox::AppendItem( const sf::String& text ) {
64 m_entries.push_back( text );

Callers 1

RunMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by 1

RunMethod · 0.64