aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/ewindowstyle.cpp
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-03-30 07:28:17 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-03-30 07:28:17 +0000
commitab5aa90e1e05a89845c6e802ef1b2366d203aa45 (patch)
tree24b8f67a1cc123481b3f21fdc026795969a073cf /lib/gui/ewindowstyle.cpp
parentcfe43ee16030fd37f6bce9ba99e367c15ecbf44f (diff)
downloadenigma2-ab5aa90e1e05a89845c6e802ef1b2366d203aa45.tar.gz
enigma2-ab5aa90e1e05a89845c6e802ef1b2366d203aa45.zip
- default fonts handled in windowstyle
- fixed 32bit ARGB support (drawLine) - add sdl (but currently disabled) - fixed /dev/vc/0 -> /dev/stdin for console input - added alignment to label - fixed skin parsing (getElementsByTagName didn't do what i expected)
Diffstat (limited to 'lib/gui/ewindowstyle.cpp')
-rw-r--r--lib/gui/ewindowstyle.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/gui/ewindowstyle.cpp b/lib/gui/ewindowstyle.cpp
index 25b89460..a2e0efb2 100644
--- a/lib/gui/ewindowstyle.cpp
+++ b/lib/gui/ewindowstyle.cpp
@@ -110,6 +110,27 @@ void eWindowStyleSimple::drawFrame(gPainter &painter, const eRect &frame, int wh
painter.line(frame.bottomLeft1(), frame.topLeft1());
}
+RESULT eWindowStyleSimple::getFont(int what, ePtr<gFont> &fnt)
+{
+ fnt = 0;
+ switch (what)
+ {
+ case fontStatic:
+ fnt = new gFont("Arial", 12);
+ break;
+ case fontButton:
+ fnt = new gFont("Arial", 20);
+ break;
+ case fontTitlebar:
+ fnt = new gFont("Arial", 25);
+ break;
+ default:
+ return -1;
+ }
+ return 0;
+}
+
+#if 0
DEFINE_REF(eWindowStyleSkinned);
eWindowStyleSkinned::eWindowStyleSkinned()
@@ -140,3 +161,4 @@ void eWindowStyleSkinned::drawBorder(gPainter &painter, const eSize &size, const
{
}
+#endif