本文整理汇总了C++中Dynamic::__FieldRef方法的典型用法代码示例。如果您正苦于以下问题:C++ Dynamic::__FieldRef方法的具体用法?C++ Dynamic::__FieldRef怎么用?C++ Dynamic::__FieldRef使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dynamic
的用法示例。
在下文中一共展示了Dynamic::__FieldRef方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: null
::motion::actuators::IGenericActuator TransformOptions_obj::sound( Dynamic volume,Dynamic pan){
HX_STACK_PUSH("TransformOptions::sound","motion/Actuate.hx",497);
HX_STACK_THIS(this);
HX_STACK_ARG(volume,"volume");
HX_STACK_ARG(pan,"pan");
struct _Function_1_1{
inline static Dynamic Block( ){
HX_STACK_PUSH("*::closure","motion/Actuate.hx",499);
{
hx::Anon __result = hx::Anon_obj::Create();
return __result;
}
return null();
}
};
HX_STACK_LINE(499)
Dynamic properties = _Function_1_1::Block(); HX_STACK_VAR(properties,"properties");
HX_STACK_LINE(501)
if (((volume != null()))){
HX_STACK_LINE(501)
properties->__FieldRef(HX_CSTRING("soundVolume")) = volume;
}
HX_STACK_LINE(507)
if (((pan != null()))){
HX_STACK_LINE(507)
properties->__FieldRef(HX_CSTRING("soundPan")) = pan;
}
HX_STACK_LINE(513)
return ::motion::Actuate_obj::tween(this->target,this->duration,properties,this->overwrite,hx::ClassOf< ::motion::actuators::TransformActuator >());
}
示例2: null
::com::eclecticdesignstudio::motion::actuators::IGenericActuator TransformOptions_obj::color( hx::Null< Float > __o_value,hx::Null< Float > __o_strength,Dynamic alpha) {
Float value = __o_value.Default(0);
Float strength = __o_strength.Default(1);
HX_STACK_PUSH("TransformOptions::color","com/eclecticdesignstudio/motion/Actuate.hx",500);
HX_STACK_THIS(this);
HX_STACK_ARG(value,"value");
HX_STACK_ARG(strength,"strength");
HX_STACK_ARG(alpha,"alpha");
{
struct _Function_1_1 {
inline static Dynamic Block( Float &value,Float &strength) {
HX_STACK_PUSH("*::closure","com/eclecticdesignstudio/motion/Actuate.hx",502);
{
hx::Anon __result = hx::Anon_obj::Create();
__result->Add(HX_CSTRING("colorValue") , value,false);
__result->Add(HX_CSTRING("colorStrength") , strength,false);
return __result;
}
return null();
}
};
HX_STACK_LINE(502)
Dynamic properties = _Function_1_1::Block(value,strength);
HX_STACK_VAR(properties,"properties");
HX_STACK_LINE(504)
if (((alpha != null()))) {
HX_STACK_LINE(504)
properties->__FieldRef(HX_CSTRING("colorAlpha")) = alpha;
}
HX_STACK_LINE(510)
return ::com::eclecticdesignstudio::motion::Actuate_obj::tween(this->target,this->duration,properties,this->overwrite,hx::ClassOf< ::com::eclecticdesignstudio::motion::actuators::TransformActuator >());
}
}