src/gui/components/cc_frm_footer.cpp: add member getButtonLabel()

Allows to get button label object from button collection.
This commit is contained in:
2018-08-18 11:22:23 +02:00
parent 3955da6893
commit 5d212fc401
3 changed files with 17 additions and 2 deletions

View File

@@ -417,3 +417,10 @@ void CComponentsFooter::initDefaultFonts()
l_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE];
s_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_FOOT];
}
CComponentsButton* CComponentsFooter::getButtonLabel(const uint& item_id)
{
if (btn_container)
return static_cast<CComponentsButton*>(btn_container->getCCItem(item_id));
return NULL;
}