From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Wasabi/api/wnd/wndclass/gradientwnd.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Src/Wasabi/api/wnd/wndclass/gradientwnd.h (limited to 'Src/Wasabi/api/wnd/wndclass/gradientwnd.h') diff --git a/Src/Wasabi/api/wnd/wndclass/gradientwnd.h b/Src/Wasabi/api/wnd/wndclass/gradientwnd.h new file mode 100644 index 00000000..c7c02695 --- /dev/null +++ b/Src/Wasabi/api/wnd/wndclass/gradientwnd.h @@ -0,0 +1,31 @@ +#ifndef _GRADIENTWND_H +#define _GRADIENTWND_H + +#include +#include +#include + +#define GRADIENTWND_PARENT GuiObjectWnd +class GradientWnd : public GRADIENTWND_PARENT, public Gradient, public SkinCallbackI { +public: + GradientWnd(); + virtual ~GradientWnd(); + + virtual int onPaint(Canvas *canvas); + +protected: + virtual void onParamChange(); + +private: + int recreate; + + int last_w, last_h; + int cache_w, cache_h; + BltCanvas bitmap; + +protected: + int onInit(); + int skincb_onColorThemeChanged(const wchar_t *newcolortheme); +}; + +#endif -- cgit