1
0

gradientwnd.h 604 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _GRADIENTWND_H
  2. #define _GRADIENTWND_H
  3. #include <api/wnd/wndclass/guiobjwnd.h>
  4. #include <bfc/draw/gradient.h>
  5. #include <tataki/canvas/bltcanvas.h>
  6. #define GRADIENTWND_PARENT GuiObjectWnd
  7. class GradientWnd : public GRADIENTWND_PARENT, public Gradient, public SkinCallbackI {
  8. public:
  9. GradientWnd();
  10. virtual ~GradientWnd();
  11. virtual int onPaint(Canvas *canvas);
  12. protected:
  13. virtual void onParamChange();
  14. private:
  15. int recreate;
  16. int last_w, last_h;
  17. int cache_w, cache_h;
  18. BltCanvas bitmap;
  19. protected:
  20. int onInit();
  21. int skincb_onColorThemeChanged(const wchar_t *newcolortheme);
  22. };
  23. #endif