diff options
author | Johannes Schickel | 2006-04-19 03:17:00 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-04-19 03:17:00 +0000 |
commit | 0a767b6467b8221d5404cc822c7bb49d4f449cb7 (patch) | |
tree | d63054c63a3c2a104ab07fa4d488c5e2499325ee /gui/theme.h | |
parent | 8828daba84a323e2f33dd37a980aded95cae314b (diff) | |
download | scummvm-rg350-0a767b6467b8221d5404cc822c7bb49d4f449cb7.tar.gz scummvm-rg350-0a767b6467b8221d5404cc822c7bb49d4f449cb7.tar.bz2 scummvm-rg350-0a767b6467b8221d5404cc822c7bb49d4f449cb7.zip |
Implements custom cursor support for the new theme and includes a standard cursor (it should be replaced though).
svn-id: r22019
Diffstat (limited to 'gui/theme.h')
-rw-r--r-- | gui/theme.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gui/theme.h b/gui/theme.h index 1c2f941135..cd191ac2d8 100644 --- a/gui/theme.h +++ b/gui/theme.h @@ -106,6 +106,8 @@ public: virtual void refresh() = 0; + virtual bool ownCursor() { return false; } + virtual void enable() = 0; virtual void disable() = 0; @@ -281,6 +283,8 @@ public: void refresh(); + bool ownCursor() { return true; } + void enable(); void disable(); @@ -428,6 +432,8 @@ public: kPopUpWidgetBkgdTop = 41, kPopUpWidgetBkgdLeft = 42, kPopUpWidgetBkgd = 43, + + kGUICursor = 44, kImageHandlesMax }; @@ -441,6 +447,15 @@ private: OverlayColor calcLuminance(OverlayColor col); OverlayColor calcDimColor(OverlayColor col); + void setUpCursor(); + void createCursor(); + int _cursorHotspotX, _cursorHotspotY; +#define MAX_CURS_COLORS 255 + byte *_cursor; + uint _cursorWidth, _cursorHeight; + byte _cursorPal[4*MAX_CURS_COLORS]; + byte _backUpCols[4*MAX_CURS_COLORS]; + private: const String *_imageHandles; const Graphics::Surface **_images; |