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/skin/widgets/xuirect.h

44 lines
1.0 KiB
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#ifndef _XUIRECT_H
#define _XUIRECT_H
#include <api/wnd/wndclass/guiobjwnd.h>
#include <tataki/color/skinclr.h>
#include <tataki/canvas/bltcanvas.h>
#define SCRIPTRECT_PARENT GuiObjectWnd
class ScriptRect : public SCRIPTRECT_PARENT {
public:
static const wchar_t *xuiobject_getXmlTag() { return L"Rect"; }
static const char *xuiobject_getServiceName() { return "Rect XuiObject"; }
ScriptRect();
virtual ~ScriptRect();
virtual int onInit();
virtual int onPaint(Canvas *c);
virtual int setXuiParam(int xuihandle, int xmlattributeid, const wchar_t *xmlattributename, const wchar_t *value);
protected:
/*static */void CreateXMLParameters(int master_handle);
private:
enum {
SCRIPTRECT_SETCOLOR = 0,
SCRIPTRECT_SETFILLED,
SCRIPTRECT_EDGES,
SCRIPTRECT_THICKNESS,
SCRIPTRECT_GAMMAGROUP,
};
static XMLParamPair params[];
void resetPixel();
int myxuihandle;
SkinColor color;
int filled, edges, thickness;
BltCanvas pixel;
};
class ScriptRectXuiSvc : public XuiObjectSvc2<ScriptRect> {};
#endif