ultimatepp/bazaar/Styler/Styler.h
2010-12-28 16:50:38 +00:00

44 lines
877 B
C++

#ifndef _Styler_Styler_h
#define _Styler_Styler_h
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define IMAGECLASS StylerCtrlsImg
#define IMAGEFILE <Styler/StylerCtrls.iml>
#include <Draw/iml_header.h>
void ColorizeIml(Iml& target, Iml& source, const Color& c, int alpha = 100);
void RefreshGlobalStyles();
void RefreshLayoutDeepAll();
#define LAYOUTFILE <Styler/Styler.lay>
#include <CtrlCore/lay.h>
class StylerCtrl : public WithStylerLay<ParentCtrl> {
public:
typedef StylerCtrl CLASSNAME;
StylerCtrl();
virtual void Updated();
void InvertColors();
protected:
void ColorizedSkin();
void ColorAction();
};
class ChamStyleCtrl : public WithChamStyleLay<ParentCtrl> {
public:
typedef ChamStyleCtrl CLASSNAME;
ChamStyleCtrl();
void Reload();
virtual void Updated();
protected:
void ColorAction();
};
#endif