diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/script/guru.h | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
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 |