本文整理汇总了C++中wxluaT_pushuserdatatype函数的典型用法代码示例。如果您正苦于以下问题:C++ wxluaT_pushuserdatatype函数的具体用法?C++ wxluaT_pushuserdatatype怎么用?C++ wxluaT_pushuserdatatype使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wxluaT_pushuserdatatype函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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;
}
示例2: wxLua_function_GetCmdhMain
// wxlLuaCanCmd* GetCmdhMain( );
static int LUACALL wxLua_function_GetCmdhMain(lua_State *L)
{
// call GetCmdhMain
wxlLuaCanCmd* returns = (wxlLuaCanCmd*)GetCmdhMain();
// push the result datatype
wxluaT_pushuserdatatype(L, returns, wxluatype_wxlLuaCanCmd);
return 1;
}
示例3: wxLua_wxConfigBase_Create
// static wxConfigBase* Create( );
static int LUACALL wxLua_wxConfigBase_Create(lua_State *L)
{
// call Create
wxConfigBase* returns = (wxConfigBase*)wxConfigBase::Create();
// push the result datatype
wxluaT_pushuserdatatype(L, returns, wxluatype_wxConfigBase);
return 1;
}
示例4: wxLua_wxXmlResource_Get
// static wxXmlResource* Get();
static int LUACALL wxLua_wxXmlResource_Get(lua_State *L)
{
// call Get
wxXmlResource* returns = (wxXmlResource*)wxXmlResource::Get();
// push the result datatype
wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlResource);
return 1;
}
示例5: wxLua_wxProcess_GetErrorStream
// wxInputStream *GetErrorStream() const
static int LUACALL wxLua_wxProcess_GetErrorStream(lua_State *L)
{
// get this
wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess);
// call GetErrorStream
wxInputStream* returns = (wxInputStream*)self->GetErrorStream();
// push the result datatype
wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream);
return 1;
}
示例6: wxLua_wxLogWindow_GetFrame
// wxFrame* GetFrame() const;
static int LUACALL wxLua_wxLogWindow_GetFrame(lua_State *L)
{
// get this
wxLogWindow * self = (wxLogWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLogWindow);
// call GetFrame
wxFrame* returns = (wxFrame*)self->GetFrame();
// push the result datatype
wxluaT_pushuserdatatype(L, returns, wxluatype_wxFrame);
return 1;
}
示例7: wxLua_wxMediaCtrl_constructor
// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_constructor[1] = {{ wxLua_wxMediaCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }};
// wxMediaCtrl()
static int LUACALL wxLua_wxMediaCtrl_constructor(lua_State *L)
{
// call constructor
wxMediaCtrl* returns = new wxMediaCtrl();
// 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;
}
示例8: wxLua_wxMemoryConfig_constructor
// wxMemoryConfig()
static int LUACALL wxLua_wxMemoryConfig_constructor(lua_State *L)
{
// call constructor
wxMemoryConfig* returns = new wxMemoryConfig();
// add to tracked memory list
wxluaO_addgcobject(L, (void*)returns, new wxLua_wxObject_wxMemoryConfig((wxMemoryConfig*)returns));
// push the constructed class pointer
wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryConfig);
return 1;
}
示例9: wxLua_wxTextValidator_GetIncludes
// %wxchkver_2_6 wxArrayString& GetIncludes( );
static int LUACALL wxLua_wxTextValidator_GetIncludes(lua_State *L)
{
// get this
wxTextValidator * self = (wxTextValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextValidator);
// call GetIncludes
wxArrayString* returns = (wxArrayString*)&self->GetIncludes();
// push the result datatype
wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString);
return 1;
}
示例10: wxLua_wxValidator_GetWindow
// wxWindow* GetWindow() const;
static int LUACALL wxLua_wxValidator_GetWindow(lua_State *L)
{
// get this
wxValidator * self = (wxValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxValidator);
// call GetWindow
wxWindow* returns = (wxWindow*)self->GetWindow();
// push the result datatype
wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow);
return 1;
}
示例11: wxLua_wxlCan_GetCmdh
// wxlLuaCanCmd* GetCmdh( );
static int LUACALL wxLua_wxlCan_GetCmdh(lua_State *L)
{
// get this
wxlCan * self = (wxlCan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCan);
// call GetCmdh
wxlLuaCanCmd* returns = (wxlLuaCanCmd*)self->GetCmdh();
// push the result datatype
wxluaT_pushuserdatatype(L, returns, wxluatype_wxlLuaCanCmd);
return 1;
}
示例12: wxLua_wxMemoryFSHandler_constructor
// wxMemoryFSHandler( );
static int LUACALL wxLua_wxMemoryFSHandler_constructor(lua_State *L)
{
// call constructor
wxMemoryFSHandler* returns = new wxMemoryFSHandler();
// add to tracked memory list
wxluaO_addgcobject(L, returns, wxluatype_wxMemoryFSHandler);
// push the constructed class pointer
wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryFSHandler);
return 1;
}
示例13: 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;
}
示例14: wxLua_wxLuaObject_constructor
// %override wxLua_wxLuaObject_constructor
// wxLuaObject(void *object)
static int LUACALL wxLua_wxLuaObject_constructor(lua_State *L)
{
wxLuaObject *returns;
// call constructor
returns = new wxLuaObject(L, 1);
// add to tracked memory list
wxluaO_addgcobject(L, returns, wxluatype_wxLuaObject);
// push the constructed class pointer
wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaObject);
// return the number of parameters
return 1;
}
示例15: 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;
}