mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 22:02:58 -06:00
14 lines
429 B
Text
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
|