mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
infoicons: add getHeightRel() to get relative height
Origin commit data
------------------
Branch: ni/coolstream
Commit: 94a5fcb66d
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-10-21 (Mon, 21 Oct 2024)
Origin message was:
------------------
- infoicons: add getHeightRel() to get relative height
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -306,6 +306,19 @@ void CInfoIcons::enableInfoIcons(bool enable)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int CInfoIcons::getHeightRel()
|
||||||
|
{
|
||||||
|
if (is_painted)
|
||||||
|
{
|
||||||
|
if (g_settings.mode_icons_background)
|
||||||
|
return y + height + OFFSET_SHADOW;
|
||||||
|
else
|
||||||
|
return y + height;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return y;
|
||||||
|
}
|
||||||
|
|
||||||
void CInfoIcons::saveIconstate()
|
void CInfoIcons::saveIconstate()
|
||||||
{
|
{
|
||||||
std::ofstream file("/var/etc/infoicons");
|
std::ofstream file("/var/etc/infoicons");
|
||||||
|
@@ -78,6 +78,7 @@ class CInfoIcons
|
|||||||
void enableInfoIcons(bool enable);
|
void enableInfoIcons(bool enable);
|
||||||
void switchInfoIconsOnOff();
|
void switchInfoIconsOnOff();
|
||||||
void saveIconstate();
|
void saveIconstate();
|
||||||
|
int getHeightRel();
|
||||||
|
|
||||||
bool getStatus(void) { return status; }
|
bool getStatus(void) { return status; }
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user