本文整理汇总了C++中hx::Null类的典型用法代码示例。如果您正苦于以下问题:C++ Null类的具体用法?C++ Null怎么用?C++ Null使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Null类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 >());
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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")) )));
}
}
示例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();
}
示例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")) )));
}
}
示例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();
}
示例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();
}
示例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;
}
}
示例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();
}
示例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);
}