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

Method showPrevMenu

src/eepp/ui/uimenubar.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void UIMenuBar::showPrevMenu() {
81 if ( mCurrentMenu ) {
82 auto index = getMenuIndex( mCurrentMenu );
83 if ( index != eeINDEX_NOT_FOUND )
84 showMenu( static_cast<int>( index ) - 1 >= 0 ? index - 1 : mButtons.size() - 1 );
85 } else if ( !mButtons.empty() ) {
86 showMenu( 0 );
87 }
88}
89
90UIMenuBar::~UIMenuBar() {
91 destroyMenus();

Callers 1

onKeyDownMethod · 0.80

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected