mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
CComponentsFooter: add members to set or get select a defined button
This commit is contained in:
@@ -249,6 +249,21 @@ void CComponentsFooter::showButtonContour(bool show)
|
||||
}
|
||||
}
|
||||
|
||||
void CComponentsFooter::setSelectedButton(size_t item_id)
|
||||
{
|
||||
if (chain)
|
||||
chain->setSelectedItem(item_id);
|
||||
}
|
||||
|
||||
int CComponentsFooter::getSelectedButton()
|
||||
{
|
||||
int ret = -1;
|
||||
if (chain)
|
||||
ret = chain->getSelectedItem();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
void CComponentsFooter::paintButtons(const int& x_pos,
|
||||
const int& y_pos,
|
||||
|
Reference in New Issue
Block a user