本文整理汇总了C++中Dynamic::__Field方法的典型用法代码示例。如果您正苦于以下问题:C++ Dynamic::__Field方法的具体用法?C++ Dynamic::__Field怎么用?C++ Dynamic::__Field使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dynamic
的用法示例。
在下文中一共展示了Dynamic::__Field方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: render
Dynamic EmbeddedBoxRenderer_obj::render( ){
HX_SOURCE_PUSH("EmbeddedBoxRenderer_obj::render")
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",44)
Dynamic ret = Dynamic( Array_obj<Dynamic>::__new());
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",52)
::nme::display::Sprite nativeElement = this->_style->get_htmlElement()->get_nativeElement();
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",54)
nativeElement->nmeGetGraphics()->clear();
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",55)
nativeElement->nmeGetGraphics()->beginFill((int)65280,0.0);
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",56)
nativeElement->nmeGetGraphics()->drawRect((this->_bounds->__Field(HX_CSTRING("x")) + this->_style->getComputedStyle()->__Field(HX_CSTRING("paddingLeft"))),(this->_bounds->__Field(HX_CSTRING("y")) + this->_style->getComputedStyle()->__Field(HX_CSTRING("paddingTop"))),this->_bounds->__Field(HX_CSTRING("width")),this->_bounds->__Field(HX_CSTRING("height")));
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",58)
nativeElement->nmeGetGraphics()->endFill();
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",62)
ret->__Field(HX_CSTRING("push"))(nativeElement);
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",65)
::core::html::EmbeddedElement embeddedHTMLElement = this->_style->get_htmlElement();
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",66)
ret->__Field(HX_CSTRING("push"))(embeddedHTMLElement->get_embeddedAsset());
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",69)
embeddedHTMLElement->get_embeddedAsset()->__FieldRef(HX_CSTRING("x")) = (this->_bounds->__Field(HX_CSTRING("x")) + this->_style->getComputedStyle()->__Field(HX_CSTRING("paddingLeft")));
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",70)
embeddedHTMLElement->get_embeddedAsset()->__FieldRef(HX_CSTRING("y")) = (this->_bounds->__Field(HX_CSTRING("y")) + this->_style->getComputedStyle()->__Field(HX_CSTRING("paddingTop")));
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",72)
embeddedHTMLElement->get_embeddedAsset()->__FieldRef(HX_CSTRING("width")) = this->_style->getComputedStyle()->__Field(HX_CSTRING("width"));
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",73)
embeddedHTMLElement->get_embeddedAsset()->__FieldRef(HX_CSTRING("height")) = this->_style->getComputedStyle()->__Field(HX_CSTRING("height"));
HX_SOURCE_POS("../../src/core/renderer/EmbeddedBoxRenderer.hx",83)
return ret;
}
示例2: updateTweens
Void Tweener_obj::updateTweens( ){
{
HX_STACK_PUSH("Tweener::updateTweens","com/haxepunk/Tweener.hx",101);
HX_STACK_THIS(this);
HX_STACK_LINE(102)
::com::haxepunk::Tween t; HX_STACK_VAR(t,"t");
Dynamic ft = this->_tween; HX_STACK_VAR(ft,"ft");
HX_STACK_LINE(104)
while(((ft != null()))){
HX_STACK_LINE(106)
t = hx::TCast< com::haxepunk::Tween >::cast(ft);
HX_STACK_LINE(107)
if ((t->active)){
HX_STACK_LINE(109)
t->update();
HX_STACK_LINE(110)
if ((ft->__Field(HX_CSTRING("_finish"),true))){
HX_STACK_LINE(110)
ft->__Field(HX_CSTRING("finish"),true)();
}
}
HX_STACK_LINE(112)
ft = ft->__Field(HX_CSTRING("_next"),true);
}
}
示例3: array
Dynamic Lambda_obj::array( Dynamic it){
HX_STACK_FRAME("Lambda","array",0x9c8b0512,"Lambda.array","C:\\HaxeToolkit\\haxe\\std/Lambda.hx",42,0x9e372efe)
HX_STACK_ARG(it,"it")
HX_STACK_LINE(43)
Dynamic a = Dynamic( Array_obj<Dynamic>::__new() ); HX_STACK_VAR(a,"a");
HX_STACK_LINE(44)
for(::cpp::FastIterator_obj< Dynamic > *__it = ::cpp::CreateFastIterator< Dynamic >(it->__Field(HX_CSTRING("iterator"),true)()); __it->hasNext(); ){
Dynamic i = __it->next();
a->__Field(HX_CSTRING("push"),true)(i);
}
HX_STACK_LINE(46)
return a;
}
示例4: __Field
hx::Val Class_obj::__Field(const String &inString, hx::PropertyAccess inCallProp)
{
if (inString==HX_CSTRING("__meta__"))
return __meta__;
#if (HXCPP_API_LEVEL>320)
if (inString==HX_CSTRING("__rtti"))
return __rtti__;
#endif
if (mGetStaticField)
{
Dynamic result;
if (mGetStaticField(inString,result,inCallProp))
return result;
// Throw ?
return null();
}
// Not the most efficient way of doing this!
if (!mConstructEmpty)
return null();
Dynamic instance = mConstructEmpty();
return instance->__Field(inString, inCallProp);
}
示例5: copy
Dynamic Vector_Impl__obj::copy( Dynamic this1){
HX_STACK_FRAME("lime.utils._Vector.Vector_Impl_","copy",0x076d497e,"lime.utils._Vector.Vector_Impl_.copy","lime/utils/Vector.hx",27,0x46699ee3)
HX_STACK_ARG(this1,"this1")
HX_STACK_LINE(27)
Dynamic a = this1->__Field(HX_CSTRING("copy"),true)(); HX_STACK_VAR(a,"a");
HX_STACK_LINE(27)
return a;
}
示例6: __Field
Dynamic Class_obj::__Field(const String &inString, bool inCallProp)
{
if (inString==HX_CSTRING("__meta__"))
return __meta__;
// Not the most efficient way of doing this!
if (!mConstructEmpty)
return null();
Dynamic instance = mConstructEmpty();
return instance->__Field(inString, inCallProp);
}
示例7: has
Dynamic i = __it->next();
a->__Field(HX_CSTRING("push"),true)(i);
}
HX_STACK_LINE(46)
return a;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Lambda_obj,array,return )
bool Lambda_obj::has( Dynamic it,Dynamic elt){
HX_STACK_FRAME("Lambda","has",0x3d8bd693,"Lambda.has","C:\\HaxeToolkit\\haxe\\std/Lambda.hx",98,0x9e372efe)
HX_STACK_ARG(it,"it")
HX_STACK_ARG(elt,"elt")
HX_STACK_LINE(99)
for(::cpp::FastIterator_obj< Dynamic > *__it = ::cpp::CreateFastIterator< Dynamic >(it->__Field(HX_CSTRING("iterator"),true)()); __it->hasNext(); ){
Dynamic x = __it->next();
if (((x == elt))){
HX_STACK_LINE(101)
return true;
}
;
}
HX_STACK_LINE(102)
return false;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Lambda_obj,has,return )
示例8: getY
Float Mobile_obj::getY( Dynamic object){
HX_STACK_PUSH("Mobile::getY","Mobile.hx",39);
HX_STACK_ARG(object,"object");
HX_STACK_LINE(39)
return (::Mobile_obj::screenHeight - object->__Field(HX_CSTRING("height"),true));
}
示例9: __construct
Void List_obj::__construct(Dynamic _options)
{
HX_STACK_FRAME("mint.List","new",0x00b3abbc,"mint.List.new","mint/List.hx",24,0x671e9153)
HX_STACK_THIS(this)
HX_STACK_ARG(_options,"_options")
{
HX_STACK_LINE(26)
this->items = Array_obj< ::Dynamic >::__new();
HX_STACK_LINE(27)
this->options = _options;
HX_STACK_LINE(29)
{
HX_STACK_LINE(29)
Dynamic tmp = this->options; HX_STACK_VAR(tmp,"tmp");
HX_STACK_LINE(29)
::String tmp1 = tmp->__Field(HX_HCSTRING("name","\x4b","\x72","\xff","\x48"), hx::paccDynamic ); HX_STACK_VAR(tmp1,"tmp1");
HX_STACK_LINE(29)
bool tmp2 = (tmp1 == null()); HX_STACK_VAR(tmp2,"tmp2");
HX_STACK_LINE(29)
if ((tmp2)){
HX_STACK_LINE(29)
Dynamic tmp3 = this->options; HX_STACK_VAR(tmp3,"tmp3");
HX_STACK_LINE(29)
tmp3->__FieldRef(HX_HCSTRING("name","\x4b","\x72","\xff","\x48")) = HX_HCSTRING("list","\x5e","\x1c","\xb3","\x47");
}
HX_STACK_LINE(29)
Dynamic tmp3 = this->options; HX_STACK_VAR(tmp3,"tmp3");
HX_STACK_LINE(29)
tmp3->__Field(HX_HCSTRING("name","\x4b","\x72","\xff","\x48"), hx::paccDynamic );
}
HX_STACK_LINE(30)