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