summaryrefslogtreecommitdiff
path: root/geometrymanager.h
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-03-03 13:16:46 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-03-10 17:42:46 +0100
commitcb6c9ba9c25e4f265ea34a540e10e6735fbf6a99 (patch)
treed8f86715f54921ff1afeaf3d9723453f1c23b6c2 /geometrymanager.h
parentb386b8cab6beb65bfc8e5999273516762d0ee301 (diff)
downloadskin-nopacity-cb6c9ba9c25e4f265ea34a540e10e6735fbf6a99.tar.gz
skin-nopacity-cb6c9ba9c25e4f265ea34a540e10e6735fbf6a99.tar.bz2
Simplify cGeometryManager
- Initiate osdLeft, osdTop, osdWidth and osdHeight with 0 in cGeometryManager::cGeometryManager(). - cGeometryManager::GeometryChanged(void) is renamed to cGeometryManager::SetOSDSize(void) and merged to set osdLeft, osdTop, osdWidth and osdHeight to cOsd::*. The cache is now created via cNopacity::SetOSDSize(void) when the skin is started for the first time or when the geometry is changed. All SetDisplay*() were merged and moved to cGeometryManager::SetGeometry. So we can delete then all unnecessary funktions.
Diffstat (limited to 'geometrymanager.h')
-rw-r--r--geometrymanager.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/geometrymanager.h b/geometrymanager.h
index 7db9084..08fce75 100644
--- a/geometrymanager.h
+++ b/geometrymanager.h
@@ -7,18 +7,11 @@ enum eBackgroundStyle {bsTrans = 0, bsFull};
class cGeometryManager {
private:
- void SetOSDSize(void);
- void SetDisplayMenuSizes(void);
- void SetDisplayChannelSizes(void);
- void SetDisplayReplaySizes(void);
- void SetDisplayMessageSizes(void);
- void SetDisplayTrackSizes(void);
- void SetDisplayVolumeSizes(void);
public:
cGeometryManager();
~cGeometryManager();
+ bool SetOSDSize(void);
void SetGeometry(void);
- bool GeometryChanged(void);
int osdWidth;
int osdHeight;
int osdLeft;