diff options
author | Eugene Sandulenko | 2014-05-03 02:50:47 +0300 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | f0c52096f3e9215cb584b3862f2cd4b9632761d5 (patch) | |
tree | dd16034089864033d71055e97f107f3c664250e7 /gui/ThemeEngine.h | |
parent | 53a42ececfff48b93cef414bc2762806786da8d5 (diff) | |
download | scummvm-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.h | 8 |
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. |