Esempio n. 1
0
//     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;
}
Esempio n. 2
0
//     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;
}
// %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;
}
// %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;
}
// %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;
}
Esempio n. 6
0
//     wxLogTextCtrl(wxTextCtrl* textCtrl);
static int LUACALL wxLua_wxLogTextCtrl_constructor(lua_State *L)
{
    // wxTextCtrl textCtrl
    wxTextCtrl * textCtrl = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl);
    // call constructor
    wxLogTextCtrl* returns = new wxLogTextCtrl(textCtrl);
    // add to tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxLogTextCtrl);
    // push the constructed class pointer
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogTextCtrl);

    return 1;
}
Esempio n. 7
0
//     static %gc wxXmlResource* Set(%ungc wxXmlResource *res);
static int LUACALL wxLua_wxXmlResource_Set(lua_State *L)
{
    // wxXmlResource res
    wxXmlResource * res = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource);
    if (wxluaO_isgcobject(L, res)) wxluaO_undeletegcobject(L, res);
    // call Set
    wxXmlResource* returns = (wxXmlResource*)wxXmlResource::Set(res);
    if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxXmlResource);
    // push the result datatype
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlResource);

    return 1;
}
Esempio n. 8
0
// %override wxLua_wxGenericValidatorString_constructor
// %constructor wxGenericValidatorString(wxLuaObject *valPtr)
static int LUACALL wxLua_wxGenericValidatorString_constructor(lua_State *L)
{
    // wxLuaObject *valPtr
    wxLuaObject *valPtr = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject);
    // call constructor
    wxGenericValidator *returns = new wxGenericValidator(valPtr->GetStringPtr(L));
    // add to tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxGenericValidator);
    // push the constructed class pointer
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator);
    // return the number of parameters
    return 1;
}
Esempio n. 9
0
//     static wxFont   GetFont(wxSystemFont index );
static int LUACALL wxLua_wxSystemSettings_GetFont(lua_State *L)
{
    // wxSystemFont index
    wxSystemFont index = (wxSystemFont)wxlua_getenumtype(L, 1);
    // call GetFont
    // allocate a new object using the copy constructor
    wxFont* returns = new wxFont(wxSystemSettings::GetFont(index));
    // add the new object to the tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxFont);
    // push the result datatype
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont);

    return 1;
}
Esempio n. 10
0
//     static %gc wxConfigBase* Set(%ungc wxConfigBase *pConfig = NULL );
static int LUACALL wxLua_wxConfigBase_Set(lua_State *L)
{
    // get number of arguments
    int argCount = lua_gettop(L);
    // wxConfigBase pConfig = NULL
    wxConfigBase * pConfig = (argCount >= 1 ? (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase) : NULL);
    if (wxluaO_isgcobject(L, pConfig)) wxluaO_undeletegcobject(L, pConfig);
    // call Set
    wxConfigBase* returns = (wxConfigBase*)wxConfigBase::Set(pConfig);
    if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxConfigBase);
    // push the result datatype
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxConfigBase);

    return 1;
}
Esempio n. 11
0
//     wxConfigPathChanger(const wxConfigBase *pContainer, const wxString& strEntry );
static int LUACALL wxLua_wxConfigPathChanger_constructor(lua_State *L)
{
    // const wxString strEntry
    const wxString strEntry = wxlua_getwxStringtype(L, 2);
    // const wxConfigBase pContainer
    const wxConfigBase * pContainer = (const wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase);
    // call constructor
    wxConfigPathChanger* returns = new wxConfigPathChanger(pContainer, strEntry);
    // add to tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxConfigPathChanger);
    // push the constructed class pointer
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxConfigPathChanger);

    return 1;
}
Esempio n. 12
0
//     wxIcon LoadIcon(const wxString& name);
static int LUACALL wxLua_wxXmlResource_LoadIcon(lua_State *L)
{
    // const wxString name
    const wxString name = wxlua_getwxStringtype(L, 2);
    // get this
    wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource);
    // call LoadIcon
    // allocate a new object using the copy constructor
    wxIcon* returns = new wxIcon(self->LoadIcon(name));
    // add the new object to the tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxIcon);
    // push the result datatype
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon);

    return 1;
}
Esempio n. 13
0
//     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;
}
Esempio n. 14
0
//     wxTimer(wxEvtHandler *owner, int id = -1)
static int LUACALL wxLua_wxTimer_constructor(lua_State *L)
{
    // get number of arguments
    int argCount = lua_gettop(L);
    // int id = -1
    int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1);
    // wxEvtHandler owner
    wxEvtHandler * owner = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler);
    // call constructor
    wxTimer* returns = new wxTimer(owner, id);
    // add to tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxTimer);
    // push the constructed class pointer
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimer);

    return 1;
}
Esempio n. 15
0
//     wxBusyInfo(const wxString& message, wxWindow *parent = NULL)
static int LUACALL wxLua_wxBusyInfo_constructor(lua_State *L)
{
    // get number of arguments
    int argCount = lua_gettop(L);
    // wxWindow parent = NULL
    wxWindow * parent = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL);
    // const wxString message
    const wxString message = wxlua_getwxStringtype(L, 1);
    // call constructor
    wxBusyInfo* returns = new wxBusyInfo(message, parent);
    // add to tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxBusyInfo);
    // push the constructed class pointer
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxBusyInfo);

    return 1;
}
Esempio n. 16
0
// %override wxLua_wxBusyCursor_constructor
//     wxBusyCursor(wxCursor* cursor = wxHOURGLASS_CURSOR)
static int LUACALL wxLua_wxBusyCursor_constructor(lua_State *L)
{
    // get number of arguments
    int argCount = lua_gettop(L);
    // const wxCursor cursor = wxHOURGLASS_CURSOR

    // NOTE: gcc complains that wxHOURGLASS_CURSOR is const, if changed to const MSVC complains wxBusyCursor takes non const
    wxCursor * cursor = (argCount >= 1 ? (wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor) : (wxCursor*)wxHOURGLASS_CURSOR);
    // call constructor
    wxBusyCursor *returns = new wxBusyCursor(cursor);
    // add to tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxBusyCursor);
    // push the constructed class pointer
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxBusyCursor);

    return 1;
}
Esempio n. 17
0
//     wxProcess(wxEvtHandler *parent = NULL, int nId = wxID_ANY)
static int LUACALL wxLua_wxProcess_constructor(lua_State *L)
{
    // get number of arguments
    int argCount = lua_gettop(L);
    // int nId = wxID_ANY
    int nId = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxID_ANY);
    // wxEvtHandler parent = NULL
    wxEvtHandler * parent = (argCount >= 1 ? (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler) : NULL);
    // call constructor
    wxProcess* returns = new wxProcess(parent, nId);
    // add to tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxProcess);
    // push the constructed class pointer
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxProcess);

    return 1;
}
Esempio n. 18
0
// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_constructor[1] = {{ wxLua_wxXmlResource_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxXmlResource_constructor }};
//     wxXmlResource(int flags = wxXRC_USE_LOCALE, const wxString& domain = "");
static int LUACALL wxLua_wxXmlResource_constructor(lua_State *L)
{
    // get number of arguments
    int argCount = lua_gettop(L);
    // const wxString domain = ""
    const wxString domain = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString));
    // int flags = wxXRC_USE_LOCALE
    int flags = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : wxXRC_USE_LOCALE);
    // call constructor
    wxXmlResource* returns = new wxXmlResource(flags, domain);
    // add to tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxXmlResource);
    // push the constructed class pointer
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlResource);

    return 1;
}
Esempio n. 19
0
//     wxLogWindow(wxWindow *pParent, const wxString& szTitle, bool bShow = true, bool bPassToOld = true);
static int LUACALL wxLua_wxLogWindow_constructor(lua_State *L)
{
    // get number of arguments
    int argCount = lua_gettop(L);
    // bool bPassToOld = true
    bool bPassToOld = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true);
    // bool bShow = true
    bool bShow = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true);
    // const wxString szTitle
    const wxString szTitle = wxlua_getwxStringtype(L, 2);
    // wxWindow pParent
    wxWindow * pParent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow);
    // call constructor
    wxLogWindow* returns = new wxLogWindow(pParent, szTitle, bShow, bPassToOld);
    // add to tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxLogWindow);
    // push the constructed class pointer
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogWindow);

    return 1;
}
Esempio n. 20
0
//     wxFileConfig(const wxString& appName = "", const wxString& vendorName = "", const wxString& localFilename = "", const wxString& globalFilename = "", long style = wxCONFIG_USE_LOCAL_FILE | wxCONFIG_USE_GLOBAL_FILE); //, wxMBConv& conv = wxConvUTF8 );
static int LUACALL wxLua_wxFileConfig_constructor(lua_State *L)
{
    // get number of arguments
    int argCount = lua_gettop(L);
    // long style = wxCONFIG_USE_LOCAL_FILE | wxCONFIG_USE_GLOBAL_FILE
    long style = (argCount >= 5 ? (long)wxlua_getintegertype(L, 5) : wxCONFIG_USE_LOCAL_FILE | wxCONFIG_USE_GLOBAL_FILE);
    // const wxString globalFilename = ""
    const wxString globalFilename = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString));
    // const wxString localFilename = ""
    const wxString localFilename = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString));
    // const wxString vendorName = ""
    const wxString vendorName = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString));
    // const wxString appName = ""
    const wxString appName = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString));
    // call constructor
    wxFileConfig* returns = new wxFileConfig(appName, vendorName, localFilename, globalFilename, style);
    // add to tracked memory list
    wxluaO_addgcobject(L, returns, wxluatype_wxFileConfig);
    // push the constructed class pointer
    wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileConfig);

    return 1;
}