MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getButton

Method getButton

src/eepp/ui/uimenubar.cpp:184–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184UISelectButton* UIMenuBar::getButton( const String& buttonText ) const {
185 for ( const auto& it : mButtons )
186 if ( it.first->getText() == buttonText )
187 return it.first;
188 return nullptr;
189}
190
191UISelectButton* UIMenuBar::getButton( const Uint32& index ) const {
192 eeASSERT( index < mButtons.size() );

Callers 2

refreshLayoutListMethod · 0.80
createSettingsMenuMethod · 0.80

Calls 2

getTextMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected