diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-06-25 05:14:13 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-25 05:14:13 +0000 |
| commit | 273b9d60502eb5b6c13cc773403fd51d9c7adf75 (patch) | |
| tree | dd99f1e4afc17829210643744d1817fba632423c /utils/themeeditor/graphics/rbviewport.h | |
| parent | 691d049177d646861a52e96146ad880d9dc18bbe (diff) | |
| download | rockbox-273b9d60502eb5b6c13cc773403fd51d9c7adf75.zip rockbox-273b9d60502eb5b6c13cc773403fd51d9c7adf75.tar.gz rockbox-273b9d60502eb5b6c13cc773403fd51d9c7adf75.tar.bz2 rockbox-273b9d60502eb5b6c13cc773403fd51d9c7adf75.tar.xz | |
Theme Editor: Fixed some compiler warnings and a segfault. Got some basic text rendering working (only with plaintext elements, no font support yet) as well as Viewport background color support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27126 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics/rbviewport.h')
| -rw-r--r-- | utils/themeeditor/graphics/rbviewport.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.h b/utils/themeeditor/graphics/rbviewport.h index 29d0b0a..5726c5c 100644 --- a/utils/themeeditor/graphics/rbviewport.h +++ b/utils/themeeditor/graphics/rbviewport.h @@ -23,6 +23,7 @@ #define RBVIEWPORT_H #include "skin_parser.h" +#include "rbfont.h" class RBScreen; class RBRenderInfo; @@ -45,16 +46,21 @@ public: void makeCustomUI(){ customUI = true; } void clearCustomUI(){ customUI = false; } - - void newline(); + void newLine(); + void write(QString text); private: + QRectF size; QColor background; QColor foreground; + RBFont* font; bool customUI; + QPoint textOffset; + int lineHeight; + RBScreen* screen; }; #endif // RBVIEWPORT_H |