本文整理汇总了C++中HX_CSTRING函数的典型用法代码示例。如果您正苦于以下问题:C++ HX_CSTRING函数的具体用法?C++ HX_CSTRING怎么用?C++ HX_CSTRING使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了HX_CSTRING函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: Static
void Clouds_obj::__register()
{
Static(__mClass) = hx::RegisterClass(HX_CSTRING("com.velvetArts.v01.Clouds"), hx::TCanCast< Clouds_obj> ,sStaticFields,sMemberFields,
&__CreateEmpty, &__Create,
&super::__SGetClass(), 0, sMarkStatics, sVisitStatics);
}
开发者ID:riddhiArtistic,项目名称:myRepository,代码行数:6,代码来源:Clouds.cpp
示例2: Static
void ZPP_ToiEvent_obj::__register()
{
Static(__mClass) = hx::RegisterClass(HX_CSTRING("zpp_nape.geom.ZPP_ToiEvent"), hx::TCanCast< ZPP_ToiEvent_obj> ,sStaticFields,sMemberFields,
&__CreateEmpty, &__Create,
&super::__SGetClass(), 0, sMarkStatics, sVisitStatics);
}
开发者ID:toSpace,项目名称:mobile-game,代码行数:6,代码来源:ZPP_ToiEvent.cpp
示例3: String
return super::__SetField(inName,inValue,inCallProp);
}
void CodeValuePair_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_CSTRING("code"));
outFields->push(HX_CSTRING("value"));
super::__GetFields(outFields);
};
static ::String sStaticFields[] = {
String(null()) };
#if HXCPP_SCRIPTABLE
static hx::StorageInfo sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(CodeValuePair_obj,code),HX_CSTRING("code")},
{hx::fsInt,(int)offsetof(CodeValuePair_obj,value),HX_CSTRING("value")},
{ hx::fsUnknown, 0, null()}
};
#endif
static ::String sMemberFields[] = {
HX_CSTRING("code"),
HX_CSTRING("value"),
String(null()) };
static void sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(CodeValuePair_obj::__mClass,"__mClass");
};
#ifdef HXCPP_VISIT_ALLOCS
开发者ID:AustinEast,项目名称:class-solarShepherd,代码行数:31,代码来源:CodeValuePair.cpp
示例4: switch
Dynamic GraphicLog_obj::__SetField(const ::String &inName,const Dynamic &inValue,bool inCallProp)
{
switch(inName.length) {
case 12:
if (HX_FIELD_EQ(inName,"resourceName") ) { resourceName=inValue.Cast< ::String >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void GraphicLog_obj::__GetFields(Array< ::String> &outFields)
{
super::__GetFields(outFields);
};
static ::String sStaticFields[] = {
HX_CSTRING("resourceName"),
String(null()) };
#if HXCPP_SCRIPTABLE
static hx::StorageInfo *sMemberStorageInfo = 0;
#endif
static ::String sMemberFields[] = {
String(null()) };
static void sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(GraphicLog_obj::__mClass,"__mClass");
HX_MARK_MEMBER_NAME(GraphicLog_obj::resourceName,"resourceName");
};
#ifdef HXCPP_VISIT_ALLOCS
开发者ID:adykto,项目名称:gaia,代码行数:31,代码来源:GraphicLog.cpp
示例5: HX_CSTRING
outFields->push(HX_CSTRING("slipped"));
outFields->push(HX_CSTRING("axis"));
outFields->push(HX_CSTRING("c2"));
outFields->push(HX_CSTRING("c1"));
outFields->push(HX_CSTRING("frozen2"));
outFields->push(HX_CSTRING("frozen1"));
outFields->push(HX_CSTRING("arbiter"));
outFields->push(HX_CSTRING("s2"));
outFields->push(HX_CSTRING("s1"));
outFields->push(HX_CSTRING("toi"));
outFields->push(HX_CSTRING("next"));
super::__GetFields(outFields);
};
static ::String sStaticFields[] = {
HX_CSTRING("zpp_pool"),
String(null()) };
static ::String sMemberFields[] = {
HX_CSTRING("kinematic"),
HX_CSTRING("failed"),
HX_CSTRING("slipped"),
HX_CSTRING("axis"),
HX_CSTRING("c2"),
HX_CSTRING("c1"),
HX_CSTRING("frozen2"),
HX_CSTRING("frozen1"),
HX_CSTRING("arbiter"),
HX_CSTRING("s2"),
HX_CSTRING("s1"),
HX_CSTRING("toi"),
开发者ID:toSpace,项目名称:mobile-game,代码行数:31,代码来源:ZPP_ToiEvent.cpp
示例6: __GetFields
void HasAttribAccess_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_CSTRING("__x"));
HX_APPEND_DYNAMIC_FIELDS(outFields);
super::__GetFields(outFields);
};
开发者ID:dylanmarcus,项目名称:stencylworks,代码行数:6,代码来源:HasAttribAccess.cpp
示例7: __GetFields
void GameEvent_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_CSTRING("data"));
super::__GetFields(outFields);
};
开发者ID:jalbanesi,项目名称:nmexpro,代码行数:5,代码来源:GameEvent.cpp
示例8: __boot
void ButtonAlignment_obj::__boot()
{
hx::Static(LEFT) = hx::CreateEnum< ButtonAlignment_obj >(HX_CSTRING("LEFT"),0);
hx::Static(MIDDLE) = hx::CreateEnum< ButtonAlignment_obj >(HX_CSTRING("MIDDLE"),1);
hx::Static(RIGHT) = hx::CreateEnum< ButtonAlignment_obj >(HX_CSTRING("RIGHT"),2);
}
开发者ID:Bullrich,项目名称:FlixelTut,代码行数:6,代码来源:ButtonAlignment.cpp
示例9: HX_CSTRING
if (HX_FIELD_EQ(inName,"cb") ) { cb=inValue.Cast< Dynamic >(); return inValue; }
if (HX_FIELD_EQ(inName,"bc") ) { bc=inValue.Cast< ::nape::phys::Body >(); return inValue; }
if (HX_FIELD_EQ(inName,"id") ) { id=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void ZPP_CopyHelper_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_CSTRING("bc"));
outFields->push(HX_CSTRING("id"));
super::__GetFields(outFields);
};
static ::String sStaticFields[] = {
HX_CSTRING("dict"),
HX_CSTRING("todo"),
String(null()) };
static ::String sMemberFields[] = {
HX_CSTRING("cb"),
HX_CSTRING("bc"),
HX_CSTRING("id"),
String(null()) };
static void sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(ZPP_CopyHelper_obj::__mClass,"__mClass");
};
#ifdef HXCPP_VISIT_ALLOCS
static void sVisitStatics(HX_VISIT_PARAMS) {
开发者ID:TomBebbington,项目名称:brains,代码行数:31,代码来源:ZPP_CopyHelper.cpp
示例10: HX_CSTRING
}
return super::__Field(inName,inCallProp);
}
Dynamic Expo_obj::__SetField(const ::String &inName,const Dynamic &inValue,bool inCallProp)
{
return super::__SetField(inName,inValue,inCallProp);
}
void Expo_obj::__GetFields(Array< ::String> &outFields)
{
super::__GetFields(outFields);
};
static ::String sStaticFields[] = {
HX_CSTRING("get_easeIn"),
HX_CSTRING("get_easeInOut"),
HX_CSTRING("get_easeOut"),
String(null()) };
#if HXCPP_SCRIPTABLE
static hx::StorageInfo *sMemberStorageInfo = 0;
#endif
static ::String sMemberFields[] = {
String(null()) };
static void sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(Expo_obj::__mClass,"__mClass");
};
开发者ID:Chamawix,项目名称:Krismoon,代码行数:30,代码来源:Expo.cpp
示例11: HX_STACK_FRAME
#endif
#ifndef INCLUDED_openfl_display_StageScaleMode
#include <openfl/display/StageScaleMode.h>
#endif
Void TitleScreenView_obj::__construct()
{
HX_STACK_FRAME("TitleScreenView","new",0x5bce68fb,"TitleScreenView.new","TitleScreenView.hx",48,0x2ae30ed5)
HX_STACK_THIS(this)
{
HX_STACK_LINE(49)
super::__construct();
HX_STACK_LINE(50)
this->menu = false;
HX_STACK_LINE(51)
this->status = HX_CSTRING("");
}
;
return null();
}
//TitleScreenView_obj::~TitleScreenView_obj() { }
Dynamic TitleScreenView_obj::__CreateEmpty() { return new TitleScreenView_obj; }
hx::ObjectPtr< TitleScreenView_obj > TitleScreenView_obj::__new()
{ hx::ObjectPtr< TitleScreenView_obj > result = new TitleScreenView_obj();
result->__construct();
return result;}
Dynamic TitleScreenView_obj::__Create(hx::DynamicArray inArgs)
{ hx::ObjectPtr< TitleScreenView_obj > result = new TitleScreenView_obj();
开发者ID:Flubman,项目名称:ReimuBros,代码行数:31,代码来源:TitleScreenView.cpp
示例12: HX_STACK_PUSH
namespace replay{
Void MouseRecord_obj::__construct(int X,int Y,int Button,int Wheel)
{
HX_STACK_PUSH("MouseRecord::new","flixel/system/replay/MouseRecord.hx",33);
{
HX_STACK_LINE(34)
this->x = X;
HX_STACK_LINE(35)
this->y = Y;
HX_STACK_LINE(36)
this->button = Button;
HX_STACK_LINE(37)
this->wheel = Wheel;
}
;
return null();
}
MouseRecord_obj::~MouseRecord_obj() { }
Dynamic MouseRecord_obj::__CreateEmpty() { return new MouseRecord_obj; }
hx::ObjectPtr< MouseRecord_obj > MouseRecord_obj::__new(int X,int Y,int Button,int Wheel)
{ hx::ObjectPtr< MouseRecord_obj > result = new MouseRecord_obj();
result->__construct(X,Y,Button,Wheel);
return result;}
Dynamic MouseRecord_obj::__Create(hx::DynamicArray inArgs)
{ hx::ObjectPtr< MouseRecord_obj > result = new MouseRecord_obj();
result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3]);
return result;}
MouseRecord_obj::MouseRecord_obj()
{
}
void MouseRecord_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(MouseRecord);
HX_MARK_MEMBER_NAME(wheel,"wheel");
HX_MARK_MEMBER_NAME(button,"button");
HX_MARK_MEMBER_NAME(y,"y");
HX_MARK_MEMBER_NAME(x,"x");
HX_MARK_END_CLASS();
}
void MouseRecord_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(wheel,"wheel");
HX_VISIT_MEMBER_NAME(button,"button");
HX_VISIT_MEMBER_NAME(y,"y");
HX_VISIT_MEMBER_NAME(x,"x");
}
Dynamic MouseRecord_obj::__Field(const ::String &inName,bool inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"y") ) { return y; }
if (HX_FIELD_EQ(inName,"x") ) { return x; }
break;
case 5:
if (HX_FIELD_EQ(inName,"wheel") ) { return wheel; }
break;
case 6:
if (HX_FIELD_EQ(inName,"button") ) { return button; }
}
return super::__Field(inName,inCallProp);
}
Dynamic MouseRecord_obj::__SetField(const ::String &inName,const Dynamic &inValue,bool inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"y") ) { y=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"x") ) { x=inValue.Cast< int >(); return inValue; }
break;
case 5:
if (HX_FIELD_EQ(inName,"wheel") ) { wheel=inValue.Cast< int >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"button") ) { button=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void MouseRecord_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_CSTRING("wheel"));
outFields->push(HX_CSTRING("button"));
outFields->push(HX_CSTRING("y"));
outFields->push(HX_CSTRING("x"));
super::__GetFields(outFields);
};
static ::String sStaticFields[] = {
String(null()) };
static ::String sMemberFields[] = {
//.........这里部分代码省略.........
开发者ID:sam2,项目名称:sandbox,代码行数:101,代码来源:MouseRecord.cpp
示例13: __register
void MouseRecord_obj::__register()
{
hx::Static(__mClass) = hx::RegisterClass(HX_CSTRING("flixel.system.replay.MouseRecord"), hx::TCanCast< MouseRecord_obj> ,sStaticFields,sMemberFields,
&__CreateEmpty, &__Create,
&super::__SGetClass(), 0, sMarkStatics, sVisitStatics);
}
开发者ID:sam2,项目名称:sandbox,代码行数:6,代码来源:MouseRecord.cpp
示例14: HX_CSTRING
void OpenGLView_obj::__boot()
{
CONTEXT_LOST= HX_CSTRING("glcontextlost");
CONTEXT_RESTORED= HX_CSTRING("glcontextrestored");
}
开发者ID:AustinEast,项目名称:class-solarShepherd,代码行数:5,代码来源:OpenGLView.cpp
示例15: catch
catch(Dynamic e) { HX_DYNAMIC_SET_FIELD(inName,inValue); }
return inValue;
}
void HasAttribAccess_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_CSTRING("__x"));
HX_APPEND_DYNAMIC_FIELDS(outFields);
super::__GetFields(outFields);
};
static ::String sStaticFields[] = {
String(null()) };
static ::String sMemberFields[] = {
HX_CSTRING("resolve"),
HX_CSTRING("__x"),
String(null()) };
static void sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(HasAttribAccess_obj::__mClass,"__mClass");
};
static void sVisitStatics(HX_VISIT_PARAMS) {
HX_VISIT_MEMBER_NAME(HasAttribAccess_obj::__mClass,"__mClass");
};
Class HasAttribAccess_obj::__mClass;
void HasAttribAccess_obj::__register()
{
开发者ID:dylanmarcus,项目名称:stencylworks,代码行数:31,代码来源:HasAttribAccess.cpp
示例16: __GetFields
void ZPP_CopyHelper_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_CSTRING("bc"));
outFields->push(HX_CSTRING("id"));
super::__GetFields(outFields);
};
开发者ID:TomBebbington,项目名称:brains,代码行数:6,代码来源:ZPP_CopyHelper.cpp
示例17: __register
void HasAttribAccess_obj::__register()
{
hx::Static(__mClass) = hx::RegisterClass(HX_CSTRING("haxe.xml._Fast.HasAttribAccess"), hx::TCanCast< HasAttribAccess_obj> ,sStaticFields,sMemberFields,
&__CreateEmpty, &__Create,
&super::__SGetClass(), 0, sMarkStatics, sVisitStatics);
}
开发者ID:dylanmarcus,项目名称:stencylworks,代码行数:6,代码来源:HasAttribAccess.cpp
示例18: HX_SOURCE_PUSH
__SAFE_POINT
HX_SOURCE_PUSH("File_obj::getBytes")
HX_SOURCE_POS("/usr/lib/haxe/std/cpp/io/File.hx",46)
Array< unsigned char > data = ::cpp::io::File_obj::file_contents(path);
HX_SOURCE_POS("/usr/lib/haxe/std/cpp/io/File.hx",47)
return ::haxe::io::Bytes_obj::ofData(data);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(File_obj,getBytes,return )
::cpp::io::FileInput File_obj::read( ::String path,bool binary){
__SAFE_POINT
HX_SOURCE_PUSH("File_obj::read")
HX_SOURCE_POS("/usr/lib/haxe/std/cpp/io/File.hx",51)
return ::cpp::io::FileInput_obj::__new(::cpp::io::File_obj::file_open(path,( ((binary)) ? ::String(HX_CSTRING("rb")) : ::String(HX_CSTRING("r")) )));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(File_obj,read,return )
::cpp::io::FileOutput File_obj::write( ::String path,bool binary){
__SAFE_POINT
HX_SOURCE_PUSH("File_obj::write")
HX_SOURCE_POS("/usr/lib/haxe/std/cpp/io/File.hx",55)
return ::cpp::io::FileOutput_obj::__new(::cpp::io::File_obj::file_open(path,( ((binary)) ? ::String(HX_CSTRING("wb")) : ::String(HX_CSTRING("w")) )));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(File_obj,write,return )
开发者ID:davidedc,项目名称:P5Nitro,代码行数:30,代码来源:File.cpp
示例19: HX_SOURCE_POS
//.........这里部分代码省略.........
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"data") ) {
data=inValue.Cast< Array< int > >();
return inValue;
}
break;
case 12:
if (HX_FIELD_EQ(inName,"BUBBLE_BLAST") ) {
BUBBLE_BLAST=inValue.Cast< ::String >();
return inValue;
}
break;
case 13:
if (HX_FIELD_EQ(inName,"BUBBLE_INITED") ) {
BUBBLE_INITED=inValue.Cast< ::String >();
return inValue;
}
if (HX_FIELD_EQ(inName,"PACK_SELECTED") ) {
PACK_SELECTED=inValue.Cast< ::String >();
return inValue;
}
break;
case 14:
if (HX_FIELD_EQ(inName,"LEVEL_COMPLETE") ) {
LEVEL_COMPLETE=inValue.Cast< ::String >();
return inValue;
}
if (HX_FIELD_EQ(inName,"BUBBLE_TOUCHED") ) {
BUBBLE_TOUCHED=inValue.Cast< ::String >();
return inValue;
}
if (HX_FIELD_EQ(inName,"LEVEL_SELECTED") ) {
LEVEL_SELECTED=inValue.Cast< ::String >();
return inValue;
}
break;
case 20:
if (HX_FIELD_EQ(inName,"BUBBLE_TAP_COMPLETED") ) {
BUBBLE_TAP_COMPLETED=inValue.Cast< ::String >();
return inValue;
}
}
return super::__SetField(inName,inValue);
}
void GameEvent_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_CSTRING("data"));
super::__GetFields(outFields);
};
static ::String sStaticFields[] = {
HX_CSTRING("BUBBLE_BLAST"),
HX_CSTRING("BUBBLE_INITED"),
HX_CSTRING("BUBBLE_TAP_COMPLETED"),
HX_CSTRING("LEVEL_COMPLETE"),
HX_CSTRING("BUBBLE_TOUCHED"),
HX_CSTRING("LEVEL_SELECTED"),
HX_CSTRING("PACK_SELECTED"),
String(null())
};
static ::String sMemberFields[] = {
HX_CSTRING("data"),
String(null())
};
static void sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(GameEvent_obj::BUBBLE_BLAST,"BUBBLE_BLAST");
HX_MARK_MEMBER_NAME(GameEvent_obj::BUBBLE_INITED,"BUBBLE_INITED");
HX_MARK_MEMBER_NAME(GameEvent_obj::BUBBLE_TAP_COMPLETED,"BUBBLE_TAP_COMPLETED");
HX_MARK_MEMBER_NAME(GameEvent_obj::LEVEL_COMPLETE,"LEVEL_COMPLETE");
HX_MARK_MEMBER_NAME(GameEvent_obj::BUBBLE_TOUCHED,"BUBBLE_TOUCHED");
HX_MARK_MEMBER_NAME(GameEvent_obj::LEVEL_SELECTED,"LEVEL_SELECTED");
HX_MARK_MEMBER_NAME(GameEvent_obj::PACK_SELECTED,"PACK_SELECTED");
};
Class GameEvent_obj::__mClass;
void GameEvent_obj::__register()
{
Static(__mClass) = hx::RegisterClass(HX_CSTRING("com.mybo.common.GameEvent"), hx::TCanCast< GameEvent_obj> ,sStaticFields,sMemberFields,
&__CreateEmpty, &__Create,
&super::__SGetClass(), 0, sMarkStatics);
}
void GameEvent_obj::__boot()
{
hx::Static(BUBBLE_BLAST) = HX_CSTRING("bubbleBlast");
hx::Static(BUBBLE_INITED) = HX_CSTRING("bubbleInited");
hx::Static(BUBBLE_TAP_COMPLETED) = HX_CSTRING("bubbleTapCompleted");
hx::Static(LEVEL_COMPLETE) = HX_CSTRING("levelComplete");
hx::Static(BUBBLE_TOUCHED) = HX_CSTRING("bubbleTouched");
hx::Static(LEVEL_SELECTED) = HX_CSTRING("levelSelected");
hx::Static(PACK_SELECTED) = HX_CSTRING("packSelected");
}
} // end namespace com
开发者ID:jalbanesi,项目名称:nmexpro,代码行数:101,代码来源:GameEvent.cpp
示例20: Static
void IDataInput_obj::__register()
{
Static(__mClass) = hx::RegisterClass(HX_CSTRING("neash.utils.IDataInput"), hx::TCanCast< IDataInput_obj> ,0,0,
0, 0,
&super::__SGetClass(), 0, sMarkStatics, sVisitStatics);
}
开发者ID:nbarton,项目名称:Sheol,代码行数:6,代码来源:IDataInput.cpp
注:本文中的HX_CSTRING函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论