当前位置: 首页>>代码示例>>C++>>正文


C++ wxluaT_pushuserdatatype函数代码示例

本文整理汇总了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;
}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:33,代码来源:wxmedia_bind.cpp

示例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;
}
开发者ID:brkpt,项目名称:luaplus51-all,代码行数:10,代码来源:wxluacan_bind.cpp

示例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;
}
开发者ID:SoapyMan,项目名称:wxLua,代码行数:10,代码来源:wxbase_config.cpp

示例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;
}
开发者ID:Rocket-Buddha,项目名称:GameCode4,代码行数:10,代码来源:wxxrc_bind.cpp

示例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;
}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:12,代码来源:wxcore_defsutils.cpp

示例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;
}
开发者ID:oeuftete,项目名称:wx-xword,代码行数:12,代码来源:wxcore_core.cpp

示例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;
}
开发者ID:Abyss116,项目名称:luaplus51-all,代码行数:13,代码来源:wxmedia_bind.cpp

示例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;
}
开发者ID:1nv1,项目名称:wxlua,代码行数:12,代码来源:wxbase_config.cpp

示例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;
}
开发者ID:oeuftete,项目名称:wx-xword,代码行数:12,代码来源:wxcore_core.cpp

示例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;
}
开发者ID:oeuftete,项目名称:wx-xword,代码行数:12,代码来源:wxcore_core.cpp

示例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;
}
开发者ID:brkpt,项目名称:luaplus51-all,代码行数:12,代码来源:wxluacan_bind.cpp

示例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;
}
开发者ID:oeuftete,项目名称:wx-xword,代码行数:12,代码来源:wxcore_core.cpp

示例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;
}
开发者ID:muhkuh-sys,项目名称:muhkuh_old,代码行数:13,代码来源:romloader_openocd_lua_bind.cpp

示例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;
}
开发者ID:ClowReed32,项目名称:Cthugha-Engine-Demos,代码行数:14,代码来源:wxlua_bind.cpp

示例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;
}
开发者ID:muhkuh-sys,项目名称:muhkuh_old,代码行数:13,代码来源:dpm_netx5_lua_bind.cpp


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