aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEngine.h
diff options
context:
space:
mode:
authorEugene Sandulenko2014-05-03 02:50:47 +0300
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitf0c52096f3e9215cb584b3862f2cd4b9632761d5 (patch)
treedd16034089864033d71055e97f107f3c664250e7 /gui/ThemeEngine.h
parent53a42ececfff48b93cef414bc2762806786da8d5 (diff)
downloadscummvm-rg350-f0c52096f3e9215cb584b3862f2cd4b9632761d5.tar.gz
scummvm-rg350-f0c52096f3e9215cb584b3862f2cd4b9632761d5.tar.bz2
scummvm-rg350-f0c52096f3e9215cb584b3862f2cd4b9632761d5.zip
GUI: Implemented possibility to use alphabitmaps in GraphicsWidget
Diffstat (limited to 'gui/ThemeEngine.h')
-rw-r--r--gui/ThemeEngine.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/ThemeEngine.h b/gui/ThemeEngine.h
index 92aafc8975..ccc5e03f92 100644
--- a/gui/ThemeEngine.h
+++ b/gui/ThemeEngine.h
@@ -355,6 +355,9 @@ public:
void drawSurfaceClip(const Common::Rect &r, const Common::Rect &clippingRect, const Graphics::Surface &surface,
WidgetStateInfo state = kStateEnabled, int alpha = 255, bool themeTrans = false);
+ void drawASurface(const Common::Rect &r, Graphics::TransparentSurface &surface,
+ WidgetStateInfo state = kStateEnabled, int alpha = 256, bool themeTrans = false);
+
void drawSlider(const Common::Rect &r, int width,
WidgetStateInfo state = kStateEnabled);
void drawSliderClip(const Common::Rect &r, const Common::Rect &clippingRect, int width,
@@ -544,6 +547,10 @@ public:
return _bitmaps.contains(name) ? _bitmaps[name] : 0;
}
+ const Graphics::TransparentSurface *getAImageSurface(const Common::String &name) const {
+ return _abitmaps.contains(name) ? _abitmaps[name] : 0;
+ }
+
/**
* Interface for the Theme Parser: Creates a new cursor by loading the given
* bitmap and sets it as the active cursor.
@@ -630,6 +637,7 @@ protected:
bool elipsis, Graphics::TextAlign alignH = Graphics::kTextAlignLeft, TextAlignVertical alignV = kTextAlignVTop, int deltax = 0, const Common::Rect &drawableTextArea = Common::Rect(0, 0, 0, 0));
void queueBitmap(const Graphics::Surface *bitmap, const Common::Rect &r, bool alpha);
void queueBitmapClip(const Graphics::Surface *bitmap, const Common::Rect &clippingRect, const Common::Rect &r, bool alpha);
+ void queueABitmap(Graphics::TransparentSurface *bitmap, const Common::Rect &r, bool alpha);
/**
* DEBUG: Draws a white square and writes some text next to it.