• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ hx::Null类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中hx::Null的典型用法代码示例。如果您正苦于以下问题:C++ Null类的具体用法?C++ Null怎么用?C++ Null使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Null类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: 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 >());
    }
}
开发者ID:bloognoo,项目名称:smurnal,代码行数:33,代码来源:TransformOptions.cpp


示例2: __construct

Void CodeValuePair_obj::__construct(hx::Null< int >  __o_Code,hx::Null< int >  __o_Value)
{
HX_STACK_PUSH("CodeValuePair::new","flixel/system/replay/CodeValuePair.hx",13);
int Code = __o_Code.Default(0);
int Value = __o_Value.Default(0);
{
	HX_STACK_LINE(14)
	this->code = Code;
	HX_STACK_LINE(15)
	this->value = Value;
}
;
	return null();
}
开发者ID:sam2,项目名称:sandbox,代码行数:14,代码来源:CodeValuePair.cpp


示例3: clear

Void ConsoleRenderContext_obj::clear( int r,int g,int b,int a,hx::Null< Float >  __o_depth,hx::Null< int >  __o_stencil){
Float depth = __o_depth.Default(((Float)1.0));
int stencil = __o_stencil.Default(0);
	HX_STACK_FRAME("lime.graphics.ConsoleRenderContext","clear",0xc822aa8b,"lime.graphics.ConsoleRenderContext.clear","lime/graphics/ConsoleRenderContext.hx",347,0x16233b72)
	HX_STACK_THIS(this)
	HX_STACK_ARG(r,"r")
	HX_STACK_ARG(g,"g")
	HX_STACK_ARG(b,"b")
	HX_STACK_ARG(a,"a")
	HX_STACK_ARG(depth,"depth")
	HX_STACK_ARG(stencil,"stencil")
{
	}
return null();
}
开发者ID:baszie94,项目名称:Memory,代码行数:15,代码来源:ConsoleRenderContext.cpp


示例4: drawTiles

Void Tilesheet_obj::drawTiles( ::flash::display::Graphics graphics,Array< Float > tileData,hx::Null< bool >  __o_smooth,hx::Null< int >  __o_flags){
bool smooth = __o_smooth.Default(false);
int flags = __o_flags.Default(0);
	HX_STACK_PUSH("Tilesheet::drawTiles","openfl/display/Tilesheet.hx",62);
	HX_STACK_THIS(this);
	HX_STACK_ARG(graphics,"graphics");
	HX_STACK_ARG(tileData,"tileData");
	HX_STACK_ARG(smooth,"smooth");
	HX_STACK_ARG(flags,"flags");
{
		HX_STACK_LINE(62)
		graphics->drawTiles(hx::ObjectPtr<OBJ_>(this),tileData,smooth,flags);
	}
return null();
}
开发者ID:dylanmarcus,项目名称:stencylworks,代码行数:15,代码来源:Tilesheet.cpp


示例5: addCommand

Void ConsoleFrontEnd_obj::addCommand( Array< ::String > Aliases,Dynamic ProcessFunction,::String Help,::String ParamHelp,hx::Null< int >  __o_NumParams,hx::Null< int >  __o_ParamCutoff){
int NumParams = __o_NumParams.Default(0);
int ParamCutoff = __o_ParamCutoff.Default(-1);
	HX_STACK_FRAME("flixel.system.frontEnds.ConsoleFrontEnd","addCommand",0x0a98e909,"flixel.system.frontEnds.ConsoleFrontEnd.addCommand","flixel/system/frontEnds/ConsoleFrontEnd.hx",49,0x0ff3a650)
	HX_STACK_THIS(this)
	HX_STACK_ARG(Aliases,"Aliases")
	HX_STACK_ARG(ProcessFunction,"ProcessFunction")
	HX_STACK_ARG(Help,"Help")
	HX_STACK_ARG(ParamHelp,"ParamHelp")
	HX_STACK_ARG(NumParams,"NumParams")
	HX_STACK_ARG(ParamCutoff,"ParamCutoff")
{
	}
return null();
}
开发者ID:XANDZILLA,项目名称:Platformer,代码行数:15,代码来源:ConsoleFrontEnd.cpp


示例6: __construct

Void Doorentity_obj::__construct(hx::Null< Float >  __o_X,hx::Null< Float >  __o_Y)
{
HX_STACK_FRAME("Doorentity","new",0x7f705ca3,"Doorentity.new","Doorentity.hx",13,0x4573482d)
HX_STACK_THIS(this)
HX_STACK_ARG(__o_X,"X")
HX_STACK_ARG(__o_Y,"Y")
Float X = __o_X.Default(0);
Float Y = __o_Y.Default(0);
{
	HX_STACK_LINE(14)
	super::__construct(X,Y,null());
	HX_STACK_LINE(15)
	this->loadGraphic(HX_CSTRING("assets/images/door.png"),null(),null(),null(),null(),null());
}
;
	return null();
}
开发者ID:s7ubborn,项目名称:virtual-care--256-,代码行数:17,代码来源:Doorentity.cpp


示例7: __construct

Void SoundLoaderContext_obj::__construct(hx::Null< Float >  __o_bufferTime,hx::Null< bool >  __o_checkPolicyFile)
{
HX_STACK_FRAME("openfl.media.SoundLoaderContext","new",0xafd95147,"openfl.media.SoundLoaderContext.new","openfl/media/SoundLoaderContext.hx",154,0x79afda07)
HX_STACK_THIS(this)
HX_STACK_ARG(__o_bufferTime,"bufferTime")
HX_STACK_ARG(__o_checkPolicyFile,"checkPolicyFile")
Float bufferTime = __o_bufferTime.Default(0);
bool checkPolicyFile = __o_checkPolicyFile.Default(false);
{
	HX_STACK_LINE(156)
	this->bufferTime = bufferTime;
	HX_STACK_LINE(157)
	this->checkPolicyFile = checkPolicyFile;
}
;
	return null();
}
开发者ID:Zarnosch,项目名称:Spline-for-Wine,代码行数:17,代码来源:SoundLoaderContext.cpp


示例8:

::sys::io::FileOutput File_obj::write( ::String path,hx::Null< bool >  __o_binary){
bool binary = __o_binary.Default(true);
	HX_STACK_PUSH("File::write","sys/io/File.hx",53);
	HX_STACK_ARG(path,"path");
	HX_STACK_ARG(binary,"binary");
{
		HX_STACK_LINE(53)
		return ::sys::io::FileOutput_obj::__new(::sys::io::File_obj::file_open(path,(  ((binary)) ? ::String(HX_CSTRING("wb")) : ::String(HX_CSTRING("w")) )));
	}
}
开发者ID:shaddyx,项目名称:haxeParserTools,代码行数:10,代码来源:File.cpp


示例9: showAd

Void Ads_obj::showAd( hx::Null< bool >  __o_onBottom){
bool onBottom = __o_onBottom.Default(true);
	HX_STACK_PUSH("Ads::showAd","Ads.hx",103);
	HX_STACK_ARG(onBottom,"onBottom");
{
		HX_STACK_LINE(103)
		::Ads_obj::ads_showad((  ((onBottom)) ? int((int)0) : int((int)1) ));
	}
return null();
}
开发者ID:theabbott,项目名称:Until-All,代码行数:10,代码来源:Ads.cpp


示例10:

::sys::io::FileOutput File_obj::append( ::String path,hx::Null< bool >  __o_binary){
bool binary = __o_binary.Default(true);
	HX_STACK_PUSH("File::append","C:\\Motion-Twin\\haxe/std/cpp/_std/sys/io/File.hx",60);
	HX_STACK_ARG(path,"path");
	HX_STACK_ARG(binary,"binary");
{
		HX_STACK_LINE(60)
		return ::sys::io::FileOutput_obj::__new(::sys::io::File_obj::file_open(path,(  ((binary)) ? ::String(HX_CSTRING("ab")) : ::String(HX_CSTRING("a")) )));
	}
}
开发者ID:guarajeno,项目名称:funbox,代码行数:10,代码来源:File.cpp


示例11: create

Void Lib_obj::create( Dynamic onLoaded,int width,int height,hx::Null< Float >  __o_frameRate,hx::Null< int >  __o_color,hx::Null< int >  __o_flags,::String __o_title,::native::display::BitmapData icon,::Class stageClass){
Float frameRate = __o_frameRate.Default(60.0);
int color = __o_color.Default(16777215);
int flags = __o_flags.Default(15);
::String title = __o_title.Default(HX_CSTRING("NME"));
	HX_STACK_PUSH("Lib::create","nme/Lib.hx",93);
	HX_STACK_ARG(onLoaded,"onLoaded");
	HX_STACK_ARG(width,"width");
	HX_STACK_ARG(height,"height");
	HX_STACK_ARG(frameRate,"frameRate");
	HX_STACK_ARG(color,"color");
	HX_STACK_ARG(flags,"flags");
	HX_STACK_ARG(title,"title");
	HX_STACK_ARG(icon,"icon");
	HX_STACK_ARG(stageClass,"stageClass");
{
		HX_STACK_LINE(93)
		::native::Lib_obj::create(onLoaded,width,height,frameRate,color,flags,title,icon,stageClass);
	}
return null();
}
开发者ID:GoTimmyGo,项目名称:bazaarBot,代码行数:21,代码来源:Lib.cpp


示例12: tweenProperty

Void BasicShader_obj::tweenProperty( ::String name,Float targetValue,hx::Null< Float >  __o_duration,Dynamic easing){
Float duration = __o_duration.Default(1);
	HX_STACK_PUSH("BasicShader::tweenProperty","com/stencyl/graphics/shaders/BasicShader.hx",19);
	HX_STACK_THIS(this);
	HX_STACK_ARG(name,"name");
	HX_STACK_ARG(targetValue,"targetValue");
	HX_STACK_ARG(duration,"duration");
	HX_STACK_ARG(easing,"easing");
{
		HX_STACK_LINE(19)
		this->model->tweenUniform(name,targetValue,duration,easing);
	}
return null();
}
开发者ID:theabbott,项目名称:Until-All,代码行数:14,代码来源:BasicShader.cpp


示例13:

::graphite::ui::KC8Object KC8ObjectContainer_obj::addKC8Object( ::graphite::ui::KC8Object _o,hx::Null< int >  __o__x,hx::Null< int >  __o__y){
int _x = __o__x.Default(0);
int _y = __o__y.Default(0);
	HX_STACK_PUSH("KC8ObjectContainer::addKC8Object","graphite/ui/KC8ObjectContainer.hx",27);
	HX_STACK_THIS(this);
	HX_STACK_ARG(_o,"_o");
	HX_STACK_ARG(_x,"_x");
	HX_STACK_ARG(_y,"_y");
{
		HX_STACK_LINE(28)
		this->addChild(hx::TCast< flash::display::DisplayObject >::cast(_o));
		HX_STACK_LINE(29)
		this->children->__Field(HX_CSTRING("push"),true)(_o);
		HX_STACK_LINE(30)
		_o->load();
		HX_STACK_LINE(31)
		_o->set_x(_x);
		HX_STACK_LINE(32)
		_o->set_y(_y);
		HX_STACK_LINE(33)
		return _o;
	}
}
开发者ID:oxue,项目名称:libgraphiteecsext,代码行数:23,代码来源:KC8ObjectContainer.cpp


示例14: initialize

Void Ads_obj::initialize( ::String __o_apiCode,hx::Null< int >  __o_position){
::String apiCode = __o_apiCode.Default(HX_CSTRING("none"));
int position = __o_position.Default(0);
	HX_STACK_PUSH("Ads::initialize","Ads.hx",69);
	HX_STACK_ARG(apiCode,"apiCode");
	HX_STACK_ARG(position,"position");
{
		HX_STACK_LINE(70)
		if ((::Ads_obj::initialized)){
			HX_STACK_LINE(71)
			return null();
		}
		HX_STACK_LINE(76)
		::Ads_obj::set_event_handle(::Ads_obj::notifyListeners_dyn());
		HX_STACK_LINE(77)
		::Ads_obj::initialized = true;
	}
return null();
}
开发者ID:theabbott,项目名称:Until-All,代码行数:19,代码来源:Ads.cpp


示例15: uploadFromBitmapData

void RectangleTexture_obj::uploadFromBitmapData( ::openfl::_legacy::display::BitmapData bitmapData,hx::Null< Int >  __o_miplevel){
Int miplevel = __o_miplevel.Default(0);
            	HX_STACK_FRAME("openfl.display3D.textures.RectangleTexture","uploadFromBitmapData",0x711b2e49,"openfl.display3D.textures.RectangleTexture.uploadFromBitmapData","openfl/display3D/textures/RectangleTexture.hx",47,0x83565556)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(bitmapData,"bitmapData")
            	HX_STACK_ARG(miplevel,"miplevel")
HXLINE(  52)		Int _hx_tmp = bitmapData->get_width();
HXDLIN(  52)		Int _hx_tmp1 = bitmapData->get_height();
HXDLIN(  52)		Bool _hx_tmp2 = bitmapData->get_transparent();
HXDLIN(  52)		HX_VARI(  ::openfl::_legacy::display::BitmapData,rgbaData) =  ::openfl::_legacy::display::BitmapData_obj::__new(_hx_tmp,_hx_tmp1,_hx_tmp2,null(),null());
HXDLIN(  52)		HX_VARI(  ::openfl::_legacy::geom::Rectangle,rect) = bitmapData->get_rect();
HXDLIN(  52)		HX_VARI(  ::openfl::_legacy::geom::Point,point) =  ::openfl::_legacy::geom::Point_obj::__new((int)0,(int)0);
HXDLIN(  52)		rgbaData->copyChannel(bitmapData,rect,point,(int)2,(int)1);
HXDLIN(  52)		rgbaData->copyChannel(bitmapData,rect,point,(int)4,(int)2);
HXDLIN(  52)		rgbaData->copyChannel(bitmapData,rect,point,(int)8,(int)4);
HXDLIN(  52)		rgbaData->copyChannel(bitmapData,rect,point,(int)1,(int)8);
HXDLIN(  52)		HX_VARI(  ::openfl::_legacy::utils::ByteArray,p) = rgbaData->getPixels(rect);
HXLINE(  57)		this->width = bitmapData->get_width();
HXLINE(  58)		this->height = bitmapData->get_height();
HXLINE(  60)		this->uploadFromByteArray(p,(int)0);
            	}
开发者ID:CannibalCat,项目名称:Legend-of-Qwerty,代码行数:21,代码来源:RectangleTexture.cpp


示例16: __construct

#endif
#ifndef INCLUDED_openfl__v2_events_IEventDispatcher
#include <openfl/_v2/events/IEventDispatcher.h>
#endif
#ifndef INCLUDED_openfl_display_StageAlign
#include <openfl/display/StageAlign.h>
#endif
#ifndef INCLUDED_openfl_display_StageScaleMode
#include <openfl/display/StageScaleMode.h>
#endif
#ifndef INCLUDED_openfl_events_FocusEvent
#include <openfl/events/FocusEvent.h>
#endif
namespace flixel{

Void FlxGame_obj::__construct(hx::Null< int >  __o_GameSizeX,hx::Null< int >  __o_GameSizeY,::Class InitialState,hx::Null< Float >  __o_Zoom,hx::Null< int >  __o_UpdateFramerate,hx::Null< int >  __o_DrawFramerate,hx::Null< bool >  __o_SkipSplash,hx::Null< bool >  __o_StartFullscreen)
{
HX_STACK_FRAME("flixel.FlxGame","new",0xde7d5f44,"flixel.FlxGame.new","flixel/FlxGame.hx",44,0x34f39fed)
HX_STACK_THIS(this)
HX_STACK_ARG(__o_GameSizeX,"GameSizeX")
HX_STACK_ARG(__o_GameSizeY,"GameSizeY")
HX_STACK_ARG(InitialState,"InitialState")
HX_STACK_ARG(__o_Zoom,"Zoom")
HX_STACK_ARG(__o_UpdateFramerate,"UpdateFramerate")
HX_STACK_ARG(__o_DrawFramerate,"DrawFramerate")
HX_STACK_ARG(__o_SkipSplash,"SkipSplash")
HX_STACK_ARG(__o_StartFullscreen,"StartFullscreen")
int GameSizeX = __o_GameSizeX.Default(640);
int GameSizeY = __o_GameSizeY.Default(480);
Float Zoom = __o_Zoom.Default(1);
int UpdateFramerate = __o_UpdateFramerate.Default(60);
开发者ID:mjahearn,项目名称:OneScreen,代码行数:31,代码来源:FlxGame.cpp



注:本文中的hx::Null类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ hypergraph::EdgeSet类代码示例发布时间:2022-05-31
下一篇:
C++ hwcomposer::HWCLayerInterface类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap