diff options
author | Alexander Tkachev | 2016-06-21 15:15:15 +0600 |
---|---|---|
committer | Eugene Sandulenko | 2016-07-03 12:14:45 +0200 |
commit | d7278cc48b7fd9c1848da6402316663af2d0c7bd (patch) | |
tree | a94911c75c82d77d560e03423ceda956db8678d3 /gui/ThemeEngine.h | |
parent | 34af71a8ef81db5fb4ee6d502df77a8c15540266 (diff) | |
download | scummvm-rg350-d7278cc48b7fd9c1848da6402316663af2d0c7bd.tar.gz scummvm-rg350-d7278cc48b7fd9c1848da6402316663af2d0c7bd.tar.bz2 scummvm-rg350-d7278cc48b7fd9c1848da6402316663af2d0c7bd.zip |
GUI: Prepare button to be clipped
Diffstat (limited to 'gui/ThemeEngine.h')
-rw-r--r-- | gui/ThemeEngine.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/ThemeEngine.h b/gui/ThemeEngine.h index eab98312f8..76581fae10 100644 --- a/gui/ThemeEngine.h +++ b/gui/ThemeEngine.h @@ -344,6 +344,9 @@ public: void drawButton(const Common::Rect &r, const Common::String &str, WidgetStateInfo state = kStateEnabled, uint16 hints = 0); + void drawButtonClip(const Common::Rect &r, const Common::Rect &clippingRect, const Common::String &str, + WidgetStateInfo state = kStateEnabled, uint16 hints = 0); + void drawSurface(const Common::Rect &r, const Graphics::Surface &surface, WidgetStateInfo state = kStateEnabled, int alpha = 256, bool themeTrans = false); @@ -586,6 +589,7 @@ protected: * This function is called from all the Widget Drawing methods. */ void queueDD(DrawData type, const Common::Rect &r, uint32 dynamic = 0, bool restore = false); + void queueDDClip(DrawData type, const Common::Rect &r, const Common::Rect &clippingRect, uint32 dynamic = 0, bool restore = false); void queueDDText(TextData type, TextColor color, const Common::Rect &r, const Common::String &text, bool restoreBg, bool elipsis, Graphics::TextAlign alignH = Graphics::kTextAlignLeft, TextAlignVertical alignV = kTextAlignVTop, int deltax = 0, const Common::Rect &drawableTextArea = Common::Rect(0, 0, 0, 0)); void queueDDTextClip(TextData type, TextColor color, const Common::Rect &r, const Common::Rect &clippingRect, const Common::String &text, bool restoreBg, |