mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-18 23:05:52 +01:00
41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
#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
|