mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-22 22:02:34 -06:00
11 lines
421 B
C++
11 lines
421 B
C++
#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)
|