mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
19 lines
799 B
Text
19 lines
799 B
Text
#include "CtrlPropCommon.h"
|
|
|
|
NAMESPACE_UPP
|
|
|
|
bool PropSetLabel(const Value& v, Pusher& o) { if(!IsString(v)) return false; o.SetLabel(String(v)); return true; }
|
|
bool PropGetLabel(Value& v, const Pusher& o) { v = o.GetLabel(); return true; }
|
|
bool PropSetClickFocus(const Value& v, Pusher& o) { if(!IsNumber(v)) return false; o.ClickFocus(v); return true; }
|
|
bool PropGetClickFocus(Value& v, const Pusher& o) { v = o.IsClickFocus(); return true; }
|
|
bool PropGetVisualState(Value& v, const Pusher& o) { v = o.GetVisualState(); return true; }
|
|
|
|
PROPERTIES(Pusher, Ctrl)
|
|
PROPERTY("label", PropSetLabel, PropGetLabel)
|
|
PROPERTY("clickfocus", PropSetClickFocus, PropGetClickFocus)
|
|
//PROPERTY_GET("visualstate", PropGetVisualState)
|
|
END_PROPERTIES
|
|
|
|
PROPS(Ctrl, Pusher, Ctrl)
|
|
|
|
END_UPP_NAMESPACE
|