summaryrefslogtreecommitdiff
path: root/menuitem.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-11-01 13:32:15 +0100
committerlouis <louis.braun@gmx.de>2013-11-01 13:32:15 +0100
commit8d889c5ee416bdd82c7316618dda67abcab0edcc (patch)
tree62576cdf4df766619bb975f5878a24f7ddb6d582 /menuitem.h
parentd7cbf12e4dc0836eaa1f04fd9a50c74cb790938d (diff)
downloadskin-nopacity-8d889c5ee416bdd82c7316618dda67abcab0edcc.tar.gz
skin-nopacity-8d889c5ee416bdd82c7316618dda67abcab0edcc.tar.bz2
cleaned up pixmaps in menuitems, avoided font pixelation in default menu items
Diffstat (limited to 'menuitem.h')
-rw-r--r--menuitem.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/menuitem.h b/menuitem.h
index 8ab13a3..34bf079 100644
--- a/menuitem.h
+++ b/menuitem.h
@@ -5,8 +5,8 @@ class cNopacityMenuItem : public cListObject, public cThread {
protected:
cOsd *osd;
cImageCache *imgCache;
- cPixmap *pixmap;
- cPixmap *pixmapIcon;
+ cPixmap *pixmapBackground;
+ cPixmap *pixmapStatic;
cPixmap *pixmapTextScroller;
cPixmap *pixmapForeground;
const char *Text;
@@ -38,9 +38,9 @@ protected:
public:
cNopacityMenuItem(cOsd *osd, cImageCache *imgCache, const char *text, bool sel);
virtual ~cNopacityMenuItem(void);
- void CreatePixmap();
+ void CreatePixmapBackground();
void CreatePixmapForeground();
- void CreatePixmapIcon(void);
+ void CreatePixmapStatic(void);
virtual void CreatePixmapTextScroller(int totalWidth);
void SetGeometry(int index, int top, int left, int width, int height, int spaceMenu);
void SetFont(cFont *font) {this->font = font;}
@@ -48,8 +48,8 @@ public:
void SetFontEPGWindow(cFont *font) {this->fontEPGWindow = font;}
void SetFontEPGWindowLarge(cFont *font) {this->fontEPGWindowLarge = font;}
void SetCurrent(bool cur);
- void SetAlpha(int alpha) {this->pixmap->SetAlpha(alpha);}
- void SetAlphaIcon(int alpha) {if (pixmapIcon) this->pixmapIcon->SetAlpha(alpha);}
+ void SetAlpha(int alpha) {this->pixmapBackground->SetAlpha(alpha);}
+ void SetAlphaIcon(int alpha) {if (pixmapStatic) this->pixmapStatic->SetAlpha(alpha);}
void SetAlphaText(int alpha) {if (pixmapTextScroller) this->pixmapTextScroller->SetAlpha(alpha);}
void SetTabs(cString *tabs, int *tabWidths, int numtabs);
void SetTextWindow(cRect *window) {textWindow = window;};