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/script/guru.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/script/guru.h')
-rw-r--r-- | Src/Wasabi/api/script/guru.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Src/Wasabi/api/script/guru.h b/Src/Wasabi/api/script/guru.h new file mode 100644 index 00000000..2af5e5b2 --- /dev/null +++ b/Src/Wasabi/api/script/guru.h @@ -0,0 +1,51 @@ +//PORTABLE +#ifndef _GURU_H +#define _GURU_H + +#include <api/wnd/basewnd.h> + +#ifdef WASABI_COMPILE_WND +#define GURU_PARENT BaseWnd +#else +class _Guru {}; +#define GURU_PARENT _Guru +#endif + +class SystemObject; + +#define GURU_TIMERID 2482 + +class Guru : public GURU_PARENT { +public: +#ifdef WASABI_COMPILE_WND + Guru(); + virtual ~Guru(); +#endif + + static void spawn(SystemObject *_script, int code, const wchar_t *pub = NULL, int intinfo = 0); + +#ifdef WASABI_COMPILE_WND + virtual int onPaint(Canvas *canvas); + virtual int onLeftButtonUp(int x, int y); + virtual int onInit(); + void setCode(int c); + void setPublicTxt(const wchar_t *t); + void setIntInfo(int info); +#endif + +#ifdef WASABI_COMPILE_WND +protected: + virtual void timerCallback(int id); + +private: + int code; + const wchar_t *txt; + int fcount; + int intinfo; + static int mustquit; + static int last_iterator; + static SystemObject * script; +#endif +}; + +#endif |