diff options
Diffstat (limited to 'gui/ThemeEngine.h')
-rw-r--r-- | gui/ThemeEngine.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/gui/ThemeEngine.h b/gui/ThemeEngine.h index 4435848fb3..56a288f9d4 100644 --- a/gui/ThemeEngine.h +++ b/gui/ThemeEngine.h @@ -135,10 +135,12 @@ protected: kTextDataMAX }; - static const struct TextDataInfo { + struct TextDataInfo { TextData id; const char *name; - } kTextDataDefaults[]; + }; + + static const TextDataInfo kTextDataDefaults[]; public: //! Vertical alignment of the text. @@ -268,9 +270,8 @@ public: void updateScreen(); - /** - * FONT MANAGEMENT METHODS - */ + /** @name FONT MANAGEMENT METHODS */ + //@{ TextData fontStyleToData(FontStyle font) const { if (font == kFontStyleNormal) @@ -286,10 +287,12 @@ public: int getCharWidth(byte c, FontStyle font = kFontStyleBold) const; + //@} + + + /** @name WIDGET DRAWING METHODS */ + //@{ - /** - * WIDGET DRAWING METHODS - */ void drawWidgetBackground(const Common::Rect &r, uint16 hints, WidgetBackground background = kWidgetBackgroundPlain, WidgetStateInfo state = kStateEnabled); @@ -326,6 +329,10 @@ public: void drawChar(const Common::Rect &r, byte ch, const Graphics::Font *font, WidgetStateInfo state = kStateEnabled); + //@} + + + /** * Actual implementation of a Dirty Rect drawing routine. * Dirty rectangles are queued on a list and are later merged/calculated @@ -657,6 +664,7 @@ protected: Common::String _themeName; //!< Name of the currently loaded theme Common::String _themeFileName; + Common::Archive *_themeArchive; /** Custom Cursor Management */ void setUpCursor(); |