diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/wnd/cursor.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Wasabi/api/wnd/cursor.h')
-rw-r--r-- | Src/Wasabi/api/wnd/cursor.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Src/Wasabi/api/wnd/cursor.h b/Src/Wasabi/api/wnd/cursor.h new file mode 100644 index 00000000..cd5d5ef2 --- /dev/null +++ b/Src/Wasabi/api/wnd/cursor.h @@ -0,0 +1,62 @@ +#ifndef __CURSOR_H +#define __CURSOR_H +#ifdef _WIN32 // PORT ME +#include <bfc/dispatch.h> +#include <api/syscb/callbacks/skincb.h> +#include <bfc/string/bfcstring.h> +#include <bfc/string/StringW.h> + +class Cursor : public Dispatchable +{ + public: + OSCURSORHANDLE getOSHandle(); + + enum { + CURSOR_GETOSHANDLE = 0, + }; + +}; + +inline OSCURSORHANDLE Cursor::getOSHandle() { + return _call(CURSOR_GETOSHANDLE, (OSCURSORHANDLE)NULL); +} + +class CursorI : public Cursor { + + public: + + CursorI() {} + virtual ~CursorI() {} + + virtual OSCURSORHANDLE getOSHandle()=0; + + protected: + + RECVS_DISPATCH; + +}; + +#ifdef WASABI_COMPILE_SKIN + +class SkinCursor : public CursorI, public SkinCallbackI { + + public: + + SkinCursor(); + SkinCursor(const wchar_t *elementid); + virtual ~SkinCursor(); + + virtual void setCursorElementId(const wchar_t *id); + virtual int skincb_onReset(); + virtual OSCURSORHANDLE getOSHandle(); + virtual void reset(); + + private: + + StringW name; + OSCURSORHANDLE cursor; +}; + +#endif +#endif +#endif
\ No newline at end of file |