aboutsummaryrefslogtreecommitdiff
path: root/gui/theme.h
diff options
context:
space:
mode:
authorJohannes Schickel2006-02-13 18:00:04 +0000
committerJohannes Schickel2006-02-13 18:00:04 +0000
commite067a7f288098d78fdd1067ab4ddfa24087b512a (patch)
treea824e9bf295dce33b8ab9574b3c0de76619c418f /gui/theme.h
parent1b459ee95976c36a4b4c46f32c8190377a1609f0 (diff)
downloadscummvm-rg350-e067a7f288098d78fdd1067ab4ddfa24087b512a.tar.gz
scummvm-rg350-e067a7f288098d78fdd1067ab4ddfa24087b512a.tar.bz2
scummvm-rg350-e067a7f288098d78fdd1067ab4ddfa24087b512a.zip
Implemented new tab drawing, should look nicer now. (The border under the active tab isn't drawn anymore)
svn-id: r20669
Diffstat (limited to 'gui/theme.h')
-rw-r--r--gui/theme.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/theme.h b/gui/theme.h
index 4dac643c19..3d3bb86dc6 100644
--- a/gui/theme.h
+++ b/gui/theme.h
@@ -121,7 +121,7 @@ public:
virtual void drawSurface(const Common::Rect &r, const Graphics::Surface &surface, kState state = kStateEnabled) = 0;
virtual void drawSlider(const Common::Rect &r, int width, kState state = kStateEnabled) = 0;
virtual void drawCheckbox(const Common::Rect &r, const Common::String &str, bool checked, kState state = kStateEnabled) = 0;
- virtual void drawTab(const Common::Rect &r, const Common::String &str, bool active, kState state = kStateEnabled) = 0;
+ virtual void drawTab(const Common::Rect &r, int tabHeight, int tabWidth, const Common::Array<Common::String> &tabs, int active, uint16 hints, kState state = kStateEnabled) = 0;
virtual void drawScrollbar(const Common::Rect &r, int sliderY, int sliderHeight, kScrollbarState, kState state = kStateEnabled) = 0;
virtual void drawCaret(const Common::Rect &r, bool erase, kState state = kStateEnabled) = 0;
virtual void drawLineSeparator(const Common::Rect &r, kState state = kStateEnabled) = 0;
@@ -200,7 +200,7 @@ public:
void drawSurface(const Common::Rect &r, const Graphics::Surface &surface, kState state);
void drawSlider(const Common::Rect &r, int width, kState state);
void drawCheckbox(const Common::Rect &r, const Common::String &str, bool checked, kState state);
- void drawTab(const Common::Rect &r, const Common::String &str, bool active, kState state);
+ void drawTab(const Common::Rect &r, int tabHeight, int tabWidth, const Common::Array<Common::String> &tabs, int active, uint16 hints, kState state);
void drawScrollbar(const Common::Rect &r, int sliderY, int sliderHeight, kScrollbarState, kState state);
void drawCaret(const Common::Rect &r, bool erase, kState state);
void drawLineSeparator(const Common::Rect &r, kState state);
@@ -208,7 +208,7 @@ private:
void restoreBackground(Common::Rect r);
bool addDirtyRect(Common::Rect r, bool save = false);
- void box(int x, int y, int width, int height, OverlayColor colorA, OverlayColor colorB);
+ void box(int x, int y, int width, int height, OverlayColor colorA, OverlayColor colorB, bool skipLastRow = false);
void box(int x, int y, int width, int height);
OverlayColor getColor(kState state);
@@ -269,7 +269,7 @@ public:
void drawSurface(const Common::Rect &r, const Graphics::Surface &surface, kState state);
void drawSlider(const Common::Rect &r, int width, kState state);
void drawCheckbox(const Common::Rect &r, const Common::String &str, bool checked, kState state);
- void drawTab(const Common::Rect &r, const Common::String &str, bool active, kState state);
+ void drawTab(const Common::Rect &r, int tabHeight, int tabWidth, const Common::Array<Common::String> &tabs, int active, uint16 hints, kState state);
void drawScrollbar(const Common::Rect &r, int sliderY, int sliderHeight, kScrollbarState, kState state);
void drawCaret(const Common::Rect &r, bool erase, kState state);
void drawLineSeparator(const Common::Rect &r, kState state);