ultimatepp/bazaar/CtrlProp/StaticRect.icpp
kohait 2af7a2780c bazaar: INITBLOCK issues with MSC optimal, need icpp filed without blitz
git-svn-id: svn://ultimatepp.org/upp/trunk@3314 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-03-29 13:45:37 +00:00

11 lines
421 B
Text

#include "CtrlPropCommon.h"
#include <CtrlLib/CtrlLib.h>
bool PropSetBackground(const Value& v, StaticRect& o) { if(!v.Is<Color>()) return false; o.Background(v); return true; }
bool PropGetBackground(Value& v, const StaticRect& o) { v = o.GetBackground(); return true; }
PROPERTIES(StaticRect, Ctrl)
PROPERTY("background", PropSetBackground, PropGetBackground)
END_PROPERTIES
PROPS(Ctrl, StaticRect, Ctrl)