这篇教程C++ wxlua_getnumbertype函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中wxlua_getnumbertype函数的典型用法代码示例。如果您正苦于以下问题:C++ wxlua_getnumbertype函数的具体用法?C++ wxlua_getnumbertype怎么用?C++ wxlua_getnumbertype使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了wxlua_getnumbertype函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: wxLua_romloader_call// %override wxLua_romloader_callstatic int LUACALL wxLua_romloader_call(lua_State *L){ int iLuaCallbackTag; // voidptr_long vplCallbackUserData long vplCallbackUserData = (long)wxlua_getnumbertype(L, 5); // LuaFunction fnCallback if( lua_isfunction(L, 4) ) { // push function to top of stack lua_pushvalue(L, 4); // ref function and pop it from stack iLuaCallbackTag = luaL_ref(L, LUA_REGISTRYINDEX); } else { wxlua_argerror(L, 4, wxT("a 'function'")); } // unsigned long ulParameterR0 double dParameterR0 = wxlua_getnumbertype(L, 3); // unsigned long ulNetxAddress double dNetxAddress = wxlua_getnumbertype(L, 2); // get this romloader * self = (romloader *)wxluaT_getuserdatatype(L, 1, wxluatype_romloader); // call call self->call(dNetxAddress, dParameterR0, L, iLuaCallbackTag, (void*)vplCallbackUserData); // remove ref to function luaL_unref(L, LUA_REGISTRYINDEX, iLuaCallbackTag); return 0;}
开发者ID:muhkuh-sys,项目名称:muhkuh_old,代码行数:32,
示例2: wxLua_wxMediaCtrl_Create// bool Create( wxWindow* parent, wxWindowID winid, const wxString& fileName = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& szBackend = "", const wxValidator& val = wxDefaultValidator, const wxString& name = "wxMediaCtrl" )static int LUACALL wxLua_wxMediaCtrl_Create(lua_State *L){ // get number of arguments int argCount = lua_gettop(L); // const wxString name = "wxMediaCtrl" const wxString name = (argCount >= 10 ? wxlua_getwxStringtype(L, 10) : wxString(wxT("wxMediaCtrl"))); // const wxValidator val = wxDefaultValidator const wxValidator * val = (argCount >= 9 ? (const wxValidator *)wxluaT_getuserdatatype(L, 9, wxluatype_wxValidator) : &wxDefaultValidator); // const wxString szBackend = "" const wxString szBackend = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxEmptyString)); // long style = 0 long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); // const wxSize size = wxDefaultSize const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); // const wxPoint pos = wxDefaultPosition const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); // const wxString fileName = "" const wxString fileName = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); // wxWindowID winid wxWindowID winid = (wxWindowID)wxlua_getnumbertype(L, 3); // wxWindow parent wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); // get this wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); // call Create bool returns = (self->Create(parent, winid, fileName, *pos, *size, style, szBackend, *val, name)); // push the result flag lua_pushboolean(L, returns); return 1;}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:32,
示例3: wxLua_wxMediaCtrl_constructor1// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_constructor1[1] = {{ wxLua_wxMediaCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 9, s_wxluatypeArray_wxLua_wxMediaCtrl_constructor1 }};// wxMediaCtrl( wxWindow* parent, wxWindowID winid, const wxString& fileName = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& szBackend = "", const wxValidator& val = wxDefaultValidator, const wxString& name = "wxMediaCtrl" )static int LUACALL wxLua_wxMediaCtrl_constructor1(lua_State *L){ // get number of arguments int argCount = lua_gettop(L); // const wxString name = "wxMediaCtrl" const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxMediaCtrl"))); // const wxValidator val = wxDefaultValidator const wxValidator * val = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); // const wxString szBackend = "" const wxString szBackend = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxEmptyString)); // long style = 0 long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); // const wxSize size = wxDefaultSize const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); // const wxPoint pos = wxDefaultPosition const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); // const wxString fileName = "" const wxString fileName = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); // wxWindowID winid wxWindowID winid = (wxWindowID)wxlua_getnumbertype(L, 2); // wxWindow parent wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); // call constructor wxMediaCtrl* returns = new wxMediaCtrl(parent, winid, fileName, *pos, *size, style, szBackend, *val, name); // add to tracked window list, it will check validity wxluaW_addtrackedwindow(L, returns); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxMediaCtrl); return 1;}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:33,
示例4: wxLua_wxlCanObj_SetPos// void SetPos( double x, double y );static int LUACALL wxLua_wxlCanObj_SetPos(lua_State *L){ // double y double y = (double)wxlua_getnumbertype(L, 3); // double x double x = (double)wxlua_getnumbertype(L, 2); // get this wxlCanObj * self = (wxlCanObj *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCanObj); // call SetPos self->SetPos(x, y); return 0;}
开发者ID:brkpt,项目名称:luaplus51-all,代码行数:14,
示例5: wxLua_function_iswxluatype// %rename iswxluatype %function int wxlua_iswxluatype(int luatype, int wxluaarg_tag)static int LUACALL wxLua_function_iswxluatype(lua_State *L){ // int wxluaarg_tag int wxluaarg_tag = (int)wxlua_getnumbertype(L, 2); // int luatype int luatype = (int)wxlua_getnumbertype(L, 1); // call wxlua_iswxluatype int returns = (wxlua_iswxluatype(luatype, wxluaarg_tag)); // push the result number lua_pushnumber(L, returns); return 1;}
开发者ID:ClowReed32,项目名称:Cthugha-Engine-Demos,代码行数:14,
示例6: wxLua_romloader_write_data32// void write_data32(double dNetxAddress, double dData)static int LUACALL wxLua_romloader_write_data32(lua_State *L){ // double dData double dData = (double)wxlua_getnumbertype(L, 3); // double dNetxAddress double dNetxAddress = (double)wxlua_getnumbertype(L, 2); // get this romloader * self = (romloader *)wxluaT_getuserdatatype(L, 1, wxluatype_romloader); // call write_data32 self->write_data32(dNetxAddress, dData); return 0;}
开发者ID:muhkuh-sys,项目名称:muhkuh_old,代码行数:14,
示例7: wxLua_wxlCanObjAddScript_constructor// wxlCanObjAddScript( double x, double y, const wxString& script );static int LUACALL wxLua_wxlCanObjAddScript_constructor(lua_State *L){ // const wxString script const wxString script = wxlua_getwxStringtype(L, 3); // double y double y = (double)wxlua_getnumbertype(L, 2); // double x double x = (double)wxlua_getnumbertype(L, 1); // call constructor wxlCanObjAddScript* returns = new wxlCanObjAddScript(x, y, script); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxlCanObjAddScript); return 1;}
开发者ID:brkpt,项目名称:luaplus51-all,代码行数:16,
示例8: wxLua_function_wxLUA_CHECK_VERSION// %function bool wxLUA_CHECK_VERSION(int major, int minor, int release) // actually a definestatic int LUACALL wxLua_function_wxLUA_CHECK_VERSION(lua_State *L){ // int release int release = (int)wxlua_getnumbertype(L, 3); // int minor int minor = (int)wxlua_getnumbertype(L, 2); // int major int major = (int)wxlua_getnumbertype(L, 1); // call wxLUA_CHECK_VERSION bool returns = (wxLUA_CHECK_VERSION(major, minor, release)); // push the result flag lua_pushboolean(L, returns); return 1;}
开发者ID:ClowReed32,项目名称:Cthugha-Engine-Demos,代码行数:16,
示例9: wxLua_wxlCanObj_constructor// wxlCanObj( double x = 0, double y = 0 );static int LUACALL wxLua_wxlCanObj_constructor(lua_State *L){ // get number of arguments int argCount = lua_gettop(L); // double y = 0 double y = (argCount >= 2 ? (double)wxlua_getnumbertype(L, 2) : 0); // double x = 0 double x = (argCount >= 1 ? (double)wxlua_getnumbertype(L, 1) : 0); // call constructor wxlCanObj* returns = new wxlCanObj(x, y); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxlCanObj); return 1;}
开发者ID:brkpt,项目名称:luaplus51-all,代码行数:16,
示例10: wxLua_wxlCanObjCircle_constructor// wxlCanObjCircle( double x, double y, double r );static int LUACALL wxLua_wxlCanObjCircle_constructor(lua_State *L){ // double r double r = (double)wxlua_getnumbertype(L, 3); // double y double y = (double)wxlua_getnumbertype(L, 2); // double x double x = (double)wxlua_getnumbertype(L, 1); // call constructor wxlCanObjCircle* returns = new wxlCanObjCircle(x, y, r); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxlCanObjCircle); return 1;}
开发者ID:brkpt,项目名称:luaplus51-all,代码行数:16,
示例11: wxLua_wxlLuaCanCmd_MoveObject// void MoveObject( int index, double x, double y );static int LUACALL wxLua_wxlLuaCanCmd_MoveObject(lua_State *L){ // double y double y = (double)wxlua_getnumbertype(L, 4); // double x double x = (double)wxlua_getnumbertype(L, 3); // int index int index = (int)wxlua_getnumbertype(L, 2); // get this wxlLuaCanCmd * self = (wxlLuaCanCmd *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlLuaCanCmd); // call MoveObject self->MoveObject(index, x, y); return 0;}
开发者ID:brkpt,项目名称:luaplus51-all,代码行数:16,
示例12: wxLua_wxlCanObjRect_constructor// wxlCanObjRect( double x, double y, double w, double h );static int LUACALL wxLua_wxlCanObjRect_constructor(lua_State *L){ // double h double h = (double)wxlua_getnumbertype(L, 4); // double w double w = (double)wxlua_getnumbertype(L, 3); // double y double y = (double)wxlua_getnumbertype(L, 2); // double x double x = (double)wxlua_getnumbertype(L, 1); // call constructor wxlCanObjRect* returns = new wxlCanObjRect(x, y, w, h); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxlCanObjRect); return 1;}
开发者ID:brkpt,项目名称:luaplus51-all,代码行数:18,
示例13: wxLua_wxProcess_Kill// static wxKillError Kill(int pid, wxSignal sig = wxSIGTERM, int flags = wxKILL_NOCHILDREN)static int LUACALL wxLua_wxProcess_Kill(lua_State *L){ // get number of arguments int argCount = lua_gettop(L); // int flags = wxKILL_NOCHILDREN int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxKILL_NOCHILDREN); // wxSignal sig = wxSIGTERM wxSignal sig = (argCount >= 2 ? (wxSignal)wxlua_getenumtype(L, 2) : wxSIGTERM); // int pid int pid = (int)wxlua_getnumbertype(L, 1); // call Kill wxKillError returns = (wxProcess::Kill(pid, sig, flags)); // push the result number lua_pushnumber(L, returns); return 1;}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:18,
示例14: wxLua_wxMediaEvent_constructor// wxMediaEvent(wxEventType commandType = wxEVT_NULL, int winid = 0)static int LUACALL wxLua_wxMediaEvent_constructor(lua_State *L){ // get number of arguments int argCount = lua_gettop(L); // int winid = 0 int winid = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); // wxEventType commandType = wxEVT_NULL wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); // call constructor wxMediaEvent* returns = new wxMediaEvent(commandType, winid); // add to tracked memory list wxluaO_addgcobject(L, returns, wxluatype_wxMediaEvent); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxMediaEvent); return 1;}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:18,
示例15: wxLua_romloader_write_image// %override wxLua_romloader_write_imagestatic int LUACALL wxLua_romloader_write_image(lua_State *L){ int iLuaCallbackTag; wxLuaState wxlState(L); // voidptr_long vplCallbackUserData long vplCallbackUserData = (long)wxlua_getnumbertype(L, 5); // LuaFunction fnCallback if( lua_isfunction(L, 4) ) { // push function to top of stack lua_pushvalue(L, 4); // ref function and pop it from stack iLuaCallbackTag = luaL_ref(L, LUA_REGISTRYINDEX); } else { // no callback function provided wxlua_argerror(L, 4, wxT("a 'function'")); } // wxString strData wxString strData; size_t sizLen; const char *pcBuf; pcBuf = lua_tolstring(L, 3, &sizLen); if( sizLen==0 ) { strData = wxEmptyString; } else { strData = wxString::From8BitData(pcBuf, sizLen); } // unsigned long ulNetxAddress double dNetxAddress = wxlua_getnumbertype(L, 2); // get this romloader * self = (romloader *)wxluaT_getuserdatatype(L, 1, wxluatype_romloader); // call write_image self->write_image(dNetxAddress, strData, L, iLuaCallbackTag, (void*)vplCallbackUserData); // remove ref to function luaL_unref(L, LUA_REGISTRYINDEX, iLuaCallbackTag); return 0;}
开发者ID:muhkuh-sys,项目名称:muhkuh_old,代码行数:45,
示例16: wxLua_wxXmlResource_CompareVersion// int CompareVersion(int major, int minor, int release, int revision) const;static int LUACALL wxLua_wxXmlResource_CompareVersion(lua_State *L){ // int revision int revision = (int)wxlua_getnumbertype(L, 5); // int release int release = (int)wxlua_getnumbertype(L, 4); // int minor int minor = (int)wxlua_getnumbertype(L, 3); // int major int major = (int)wxlua_getnumbertype(L, 2); // get this wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); // call CompareVersion int returns = (self->CompareVersion(major, minor, release, revision)); // push the result number lua_pushnumber(L, returns); return 1;}
开发者ID:Rocket-Buddha,项目名称:GameCode4,代码行数:20,
示例17: wxLua_function_typename// %override wxLua_function_typename// %function wxString typename(int wxluaarg_tag)static int LUACALL wxLua_function_typename(lua_State *L){ // int wxluaarg_tag int wxl_type = (int)wxlua_getnumbertype(L, 1); // call wxlua_getwxluatypename wxString returns = wxluaT_typename(L, wxl_type); // push the result string wxlua_pushwxString(L, returns); return 1;}
开发者ID:ClowReed32,项目名称:Cthugha-Engine-Demos,代码行数:13,
示例18: wxLua_wxTextValidator_SetStyle// void SetStyle(long style );static int LUACALL wxLua_wxTextValidator_SetStyle(lua_State *L){ // long style long style = (long)wxlua_getnumbertype(L, 2); // get this wxTextValidator * self = (wxTextValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextValidator); // call SetStyle self->SetStyle(style); return 0;}
开发者ID:oeuftete,项目名称:wx-xword,代码行数:12,
示例19: wxLua_wxProcess_Exists// static bool Exists(int pid)static int LUACALL wxLua_wxProcess_Exists(lua_State *L){ // int pid int pid = (int)wxlua_getnumbertype(L, 1); // call Exists bool returns = (wxProcess::Exists(pid)); // push the result flag lua_pushboolean(L, returns); return 1;}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:12,
示例20: wxLua_wxMouseState_SetY// void SetY(wxCoord y)static int LUACALL wxLua_wxMouseState_SetY(lua_State *L){ // wxCoord y wxCoord y = (wxCoord)wxlua_getnumbertype(L, 2); // get this wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); // call SetY self->SetY(y); return 0;}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:12,
示例21: wxLua_wxXmlResource_SetFlags// void SetFlags(int flags);static int LUACALL wxLua_wxXmlResource_SetFlags(lua_State *L){ // int flags int flags = (int)wxlua_getnumbertype(L, 2); // get this wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); // call SetFlags self->SetFlags(flags); return 0;}
开发者ID:Rocket-Buddha,项目名称:GameCode4,代码行数:12,
示例22: wxLua_wxFileConfig_SetUmask// void SetUmask(int mode)static int LUACALL wxLua_wxFileConfig_SetUmask(lua_State *L){ // int mode int mode = (int)wxlua_getnumbertype(L, 2); // get this wxFileConfig * self = (wxFileConfig *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileConfig); // call SetUmask self->SetUmask(mode); return 0;}
开发者ID:1nv1,项目名称:wxlua,代码行数:12,
示例23: wxLua_function_dpm_netx5_create// %function %gc dpm *dpm_netx5_create(voidptr_long pvHandle)static int LUACALL wxLua_function_dpm_netx5_create(lua_State *L){ // voidptr_long pvHandle long pvHandle = (long)wxlua_getnumbertype(L, 1); // call dpm_netx5_create dpm* returns = (dpm*)dpm_netx5_create((void*)pvHandle); if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_dpm); return 1;}
开发者ID:muhkuh-sys,项目名称:muhkuh_old,代码行数:13,
示例24: wxLua_function_romloader_openocd_create// %function %gc romloader *romloader_openocd_create(voidptr_long pvHandle)static int LUACALL wxLua_function_romloader_openocd_create(lua_State *L){ // voidptr_long pvHandle long pvHandle = (long)wxlua_getnumbertype(L, 1); // call romloader_openocd_create romloader* returns = (romloader*)romloader_openocd_create((void*)pvHandle); if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_romloader); return 1;}
开发者ID:muhkuh-sys,项目名称:muhkuh_old,代码行数:13,
示例25: wxLua_romloader_read_data32// double read_data32(double dNetxAddress)static int LUACALL wxLua_romloader_read_data32(lua_State *L){ // double dNetxAddress double dNetxAddress = (double)wxlua_getnumbertype(L, 2); // get this romloader * self = (romloader *)wxluaT_getuserdatatype(L, 1, wxluatype_romloader); // call read_data32 double returns = (self->read_data32(dNetxAddress)); // push the result number lua_pushnumber(L, returns); return 1;}
开发者ID:muhkuh-sys,项目名称:muhkuh_old,代码行数:14,
示例26: wxLua_wxMediaCtrl_SetVolume// bool SetVolume(double dVolume)static int LUACALL wxLua_wxMediaCtrl_SetVolume(lua_State *L){ // double dVolume double dVolume = (double)wxlua_getnumbertype(L, 2); // get this wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); // call SetVolume bool returns = (self->SetVolume(dVolume)); // push the result flag lua_pushboolean(L, returns); return 1;}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:14,
示例27: wxLua_romloader_read_image// %override wxLua_romloader_read_imagestatic int LUACALL wxLua_romloader_read_image(lua_State *L){ int iLuaCallbackTag; wxLuaState wxlState(L); wxString returns; // voidptr_long vplCallbackUserData long vplCallbackUserData = (long)wxlua_getnumbertype(L, 5); // LuaFunction fnCallback if( lua_isfunction(L, 4) ) { // push function to top of stack lua_pushvalue(L, 4); // ref function and pop it from stack iLuaCallbackTag = luaL_ref(L, LUA_REGISTRYINDEX); } else { // no callback function provided wxlua_argerror(L, 4, wxT("a 'function'")); } // unsigned long ulSize double dSize = wxlua_getnumbertype(L, 3); // unsigned long ulNetxAddress double dNetxAddress = wxlua_getnumbertype(L, 2); // get this romloader * self = (romloader *)wxluaT_getuserdatatype(L, 1, wxluatype_romloader); // call read_image returns = (self->read_image(dNetxAddress, dSize, L, iLuaCallbackTag, (void*)vplCallbackUserData)); // remove ref to function luaL_unref(L, LUA_REGISTRYINDEX, iLuaCallbackTag); // push the result string wxlState.lua_PushLString(returns.fn_str(),returns.Len()); return 1;}
开发者ID:muhkuh-sys,项目名称:muhkuh_old,代码行数:38,
示例28: wxLua_wxConfigBase_Write1// static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Write1[1] = {{ wxLua_wxConfigBase_Write1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxConfigBase_Write1 }};// bool Write(const wxString &key, double value );static int LUACALL wxLua_wxConfigBase_Write1(lua_State *L){ // double value double value = (double)wxlua_getnumbertype(L, 3); // const wxString key const wxString key = wxlua_getwxStringtype(L, 2); // get this wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); // call Write bool returns = (self->Write(key, value)); // push the result flag lua_pushboolean(L, returns); return 1;}
开发者ID:SoapyMan,项目名称:wxLua,代码行数:17,
示例29: wxLua_wxTimer_SetOwner// void SetOwner(wxEvtHandler *owner, int id = -1)static int LUACALL wxLua_wxTimer_SetOwner(lua_State *L){ // get number of arguments int argCount = lua_gettop(L); // int id = -1 int id = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); // wxEvtHandler owner wxEvtHandler * owner = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); // get this wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); // call SetOwner self->SetOwner(owner, id); return 0;}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:16,
示例30: wxLua_wxProcess_Open// static wxProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC)static int LUACALL wxLua_wxProcess_Open(lua_State *L){ // get number of arguments int argCount = lua_gettop(L); // int flags = wxEXEC_ASYNC int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxEXEC_ASYNC); // const wxString cmd const wxString cmd = wxlua_getwxStringtype(L, 1); // call Open wxProcess* returns = (wxProcess*)wxProcess::Open(cmd, flags); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxProcess); return 1;}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:16,
注:本文中的wxlua_getnumbertype函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ wxstr函数代码示例 C++ wxluaT_pushuserdatatype函数代码示例 |