12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef _SHADOW_H
- #define _SHADOW_H
- #include "../common/guiobjwnd.h"
- #include "../bfc/paintcb.h"
- #define XUISHADOWWND_PARENT GuiObjectWnd
- class XuiShadowWnd : public XUISHADOWWND_PARENT, public PaintCallback {
- public:
- static const wchar_t *xuiobject_getXmlTag() { return "Shadow"; }
- static const char *xuiobject_getServiceName() { return "Shadow XuiObject"; }
- XuiShadowWnd();
- virtual ~XuiShadowWnd();
- virtual int onInit();
- virtual int onPaint(Canvas *canvas);
- virtual int setXuiParam(int xuihandle, int xmlattributeid, const wchar_t *xmlattributename, const wchar_t *value);
- virtual void onAfterPaint(PaintCallbackInfo *info);
- virtual void onInvalidation(PaintCallbackInfo *info);
- protected:
- virtual void onWindowDeleted(BaseWnd *w);
- void attachToGroup();
- virtual void timerclient_timerCallback(int id);
- private:
- int myxuihandle;
- StringW targetname;
- api_window *group;
- BltCanvas *bltcanvas;
- int c_w, c_h;
- int in_paint;
- };
- class XuiShadowWndSvc : public XuiObjectSvc2<XuiShadowWnd> {};
- #endif
|