diff options
Diffstat (limited to 'gui/ThemeModern.h')
-rw-r--r-- | gui/ThemeModern.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gui/ThemeModern.h b/gui/ThemeModern.h index 584fae25ef..ab1b5a7835 100644 --- a/gui/ThemeModern.h +++ b/gui/ThemeModern.h @@ -60,20 +60,20 @@ public: int getStringWidth(const Common::String &str, FontStyle font = kFontStyleBold) const { if (_fonts[font]) return _fonts[font]->getStringWidth(str); return 0; } int getCharWidth(byte c, FontStyle font = kFontStyleBold) const { if (_fonts[font]) return _fonts[font]->getCharWidth(c); return 0; } - void drawDialogBackground(const Common::Rect &r, uint16 hints, State state); - void drawText(const Common::Rect &r, const Common::String &str, State state, TextAlign align, bool inverted, int deltax, bool useEllipsis, FontStyle font); - void drawChar(const Common::Rect &r, byte ch, const Graphics::Font *font, State state); - - void drawWidgetBackground(const Common::Rect &r, uint16 hints, WidgetBackground background, State state); - void drawButton(const Common::Rect &r, const Common::String &str, State state, uint16 hints); - void drawSurface(const Common::Rect &r, const Graphics::Surface &surface, State state, int alpha, bool themeTrans); - void drawSlider(const Common::Rect &r, int width, State state); - void drawCheckbox(const Common::Rect &r, const Common::String &str, bool checked, State state); - void drawTab(const Common::Rect &r, int tabHeight, int tabWidth, const Common::Array<Common::String> &tabs, int active, uint16 hints, int titleVPad, State state); - void drawScrollbar(const Common::Rect &r, int sliderY, int sliderHeight, ScrollbarState, State state); - void drawPopUpWidget(const Common::Rect &r, const Common::String &sel, int deltax, State state, TextAlign align); - void drawCaret(const Common::Rect &r, bool erase, State state); - void drawLineSeparator(const Common::Rect &r, State state); + void drawDialogBackground(const Common::Rect &r, uint16 hints, WidgetStateInfo state); + void drawText(const Common::Rect &r, const Common::String &str, WidgetStateInfo state, TextAlign align, bool inverted, int deltax, bool useEllipsis, FontStyle font); + void drawChar(const Common::Rect &r, byte ch, const Graphics::Font *font, WidgetStateInfo state); + + void drawWidgetBackground(const Common::Rect &r, uint16 hints, WidgetBackground background, WidgetStateInfo state); + void drawButton(const Common::Rect &r, const Common::String &str, WidgetStateInfo state, uint16 hints); + void drawSurface(const Common::Rect &r, const Graphics::Surface &surface, WidgetStateInfo state, int alpha, bool themeTrans); + void drawSlider(const Common::Rect &r, int width, WidgetStateInfo state); + void drawCheckbox(const Common::Rect &r, const Common::String &str, bool checked, WidgetStateInfo state); + void drawTab(const Common::Rect &r, int tabHeight, int tabWidth, const Common::Array<Common::String> &tabs, int active, uint16 hints, int titleVPad, WidgetStateInfo state); + void drawScrollbar(const Common::Rect &r, int sliderY, int sliderHeight, ScrollbarState, WidgetStateInfo state); + void drawPopUpWidget(const Common::Rect &r, const Common::String &sel, int deltax, WidgetStateInfo state, TextAlign align); + void drawCaret(const Common::Rect &r, bool erase, WidgetStateInfo state); + void drawLineSeparator(const Common::Rect &r, WidgetStateInfo state); void restoreBackground(Common::Rect r, bool special = false); bool addDirtyRect(Common::Rect r, bool backup = false, bool special = false); |