Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Wasabi/api/imgldr/imggen/shadowwnd.h

41 lines
1.0 KiB
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#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