1
0

shadowwnd.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _SHADOW_H
  2. #define _SHADOW_H
  3. #include "../common/guiobjwnd.h"
  4. #include "../bfc/paintcb.h"
  5. #define XUISHADOWWND_PARENT GuiObjectWnd
  6. class XuiShadowWnd : public XUISHADOWWND_PARENT, public PaintCallback {
  7. public:
  8. static const wchar_t *xuiobject_getXmlTag() { return "Shadow"; }
  9. static const char *xuiobject_getServiceName() { return "Shadow XuiObject"; }
  10. XuiShadowWnd();
  11. virtual ~XuiShadowWnd();
  12. virtual int onInit();
  13. virtual int onPaint(Canvas *canvas);
  14. virtual int setXuiParam(int xuihandle, int xmlattributeid, const wchar_t *xmlattributename, const wchar_t *value);
  15. virtual void onAfterPaint(PaintCallbackInfo *info);
  16. virtual void onInvalidation(PaintCallbackInfo *info);
  17. protected:
  18. virtual void onWindowDeleted(BaseWnd *w);
  19. void attachToGroup();
  20. virtual void timerclient_timerCallback(int id);
  21. private:
  22. int myxuihandle;
  23. StringW targetname;
  24. api_window *group;
  25. BltCanvas *bltcanvas;
  26. int c_w, c_h;
  27. int in_paint;
  28. };
  29. class XuiShadowWndSvc : public XuiObjectSvc2<XuiShadowWnd> {};
  30. #endif