ultimatepp/bazaar/CtrlProp/StaticRect.icpp
kohait 9b18b6c807 bazaar: Property, ValueCtrl, CtrlProp: namespace fixes and some cleanup
git-svn-id: svn://ultimatepp.org/upp/trunk@3865 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-09-15 23:17:59 +00:00

14 lines
429 B
Text

#include "CtrlPropCommon.h"
NAMESPACE_UPP
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)
END_UPP_NAMESPACE