mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 22:02:58 -06:00
14 lines
358 B
Text
14 lines
358 B
Text
#include "CtrlPropCommon.h"
|
|
|
|
NAMESPACE_UPP
|
|
|
|
bool PropSetLabel(const Value& v, Switch& o) { o.SetLabel(AsString(v)); return true; }
|
|
bool PropGetLabel(Value& v, const Switch& o) { v = o.GetLabel(); return true; }
|
|
|
|
PROPERTIES(Switch, Ctrl)
|
|
PROPERTY("label", PropSetLabel, PropGetLabel)
|
|
END_PROPERTIES
|
|
|
|
PROPS(Ctrl, Switch, Ctrl)
|
|
|
|
END_UPP_NAMESPACE
|