mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fixed some Lua related issues.
Removed some internal functions from exposed functions for Lua. Code cleanup and optimizing for VC2010.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/*
|
||||
** Lua binding: rainmeter
|
||||
** Generated automatically by tolua++-1.0.92 on 11/23/10 01:56:47.
|
||||
** Generated automatically by tolua++-1.0.92 on 02/15/11 21:07:15.
|
||||
*/
|
||||
|
||||
#include "../../StdAfx.h"
|
||||
@ -41,46 +41,11 @@ static int tolua_collect_BOOL (lua_State* tolua_S)
|
||||
static void tolua_reg_types (lua_State* tolua_S)
|
||||
{
|
||||
tolua_usertype(tolua_S,"std::wstring");
|
||||
tolua_usertype(tolua_S,"CMeterWindow");
|
||||
tolua_usertype(tolua_S,"BOOL");
|
||||
tolua_usertype(tolua_S,"CTrayWindow");
|
||||
tolua_usertype(tolua_S,"CRainmeter");
|
||||
tolua_usertype(tolua_S,"CMeterWindow");
|
||||
tolua_usertype(tolua_S,"POINT");
|
||||
tolua_usertype(tolua_S,"WCHAR");
|
||||
}
|
||||
|
||||
/* method: GetTrayWindow of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_GetTrayWindow00
|
||||
static int tolua_rainmeter_CRainmeter_GetTrayWindow00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrayWindow'", NULL);
|
||||
#endif
|
||||
{
|
||||
CTrayWindow* tolua_ret = (CTrayWindow*) self->GetTrayWindow();
|
||||
tolua_pushusertype(tolua_S,(void*)tolua_ret,"CTrayWindow");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetTrayWindow'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetMeterWindow of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_GetMeterWindow00
|
||||
static int tolua_rainmeter_CRainmeter_GetMeterWindow00(lua_State* tolua_S)
|
||||
@ -97,7 +62,7 @@ static int tolua_rainmeter_CRainmeter_GetMeterWindow00(lua_State* tolua_S)
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
const std::wstring config = to_wstring(tolua_S,2,0);
|
||||
const std::wstring config = ((const std::wstring) to_wstring(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMeterWindow'", NULL);
|
||||
#endif
|
||||
@ -275,6 +240,38 @@ static int tolua_rainmeter_CRainmeter_GetPluginPath00(lua_State* tolua_S)
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetAddonPath of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_GetAddonPath00
|
||||
static int tolua_rainmeter_CRainmeter_GetAddonPath00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAddonPath'", NULL);
|
||||
#endif
|
||||
{
|
||||
const std::wstring& tolua_ret = (const std::wstring&) self->GetAddonPath();
|
||||
push_wstring(tolua_S,(void*)&tolua_ret,"const std::wstring");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetAddonPath'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetSettingsPath of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_GetSettingsPath00
|
||||
static int tolua_rainmeter_CRainmeter_GetSettingsPath00(lua_State* tolua_S)
|
||||
@ -297,13 +294,9 @@ static int tolua_rainmeter_CRainmeter_GetSettingsPath00(lua_State* tolua_S)
|
||||
std::wstring tolua_ret = (std::wstring) self->GetSettingsPath();
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
void* tolua_obj = Mtolua_new((std::wstring)(tolua_ret));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
push_wstring(tolua_S,(void*)&tolua_ret,"std::wstring");
|
||||
#else
|
||||
void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(std::wstring));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
push_wstring(tolua_S,(void*)&tolua_ret,"std::wstring");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@ -441,37 +434,6 @@ static int tolua_rainmeter_CRainmeter_GetDebug00(lua_State* tolua_S)
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: ReloadSettings of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_ReloadSettings00
|
||||
static int tolua_rainmeter_CRainmeter_ReloadSettings00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ReloadSettings'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->ReloadSettings();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'ReloadSettings'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: SaveSettings of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_SaveSettings00
|
||||
static int tolua_rainmeter_CRainmeter_SaveSettings00(lua_State* tolua_S)
|
||||
@ -503,37 +465,6 @@ static int tolua_rainmeter_CRainmeter_SaveSettings00(lua_State* tolua_S)
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: ReadStats of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_ReadStats00
|
||||
static int tolua_rainmeter_CRainmeter_ReadStats00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ReadStats'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->ReadStats();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'ReadStats'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: WriteStats of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_WriteStats00
|
||||
static int tolua_rainmeter_CRainmeter_WriteStats00(lua_State* tolua_S)
|
||||
@ -723,6 +654,103 @@ static int tolua_rainmeter_CRainmeter_DeleteLogFile00(lua_State* tolua_S)
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetDisableRDP of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_GetDisableRDP00
|
||||
static int tolua_rainmeter_CRainmeter_GetDisableRDP00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDisableRDP'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->GetDisableRDP();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetDisableRDP'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetDisableDragging of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_GetDisableDragging00
|
||||
static int tolua_rainmeter_CRainmeter_GetDisableDragging00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDisableDragging'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->GetDisableDragging();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetDisableDragging'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: SetDisableDragging of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_SetDisableDragging00
|
||||
static int tolua_rainmeter_CRainmeter_SetDisableDragging00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
!tolua_isboolean(tolua_S,2,0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
bool dragging = ((bool) tolua_toboolean(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDisableDragging'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->SetDisableDragging(dragging);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'SetDisableDragging'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: SetDebug of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_SetDebug00
|
||||
static int tolua_rainmeter_CRainmeter_SetDebug00(lua_State* tolua_S)
|
||||
@ -842,18 +870,8 @@ static int tolua_rainmeter_CRainmeter_GetTrayExecuteL00(lua_State* tolua_S)
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrayExecuteL'", NULL);
|
||||
#endif
|
||||
{
|
||||
std::wstring tolua_ret = (std::wstring) self->GetTrayExecuteL();
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
void* tolua_obj = Mtolua_new((std::wstring)(tolua_ret));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#else
|
||||
void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(std::wstring));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#endif
|
||||
}
|
||||
const std::wstring& tolua_ret = (const std::wstring&) self->GetTrayExecuteL();
|
||||
push_wstring(tolua_S,(void*)&tolua_ret,"const std::wstring");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
@ -884,18 +902,8 @@ static int tolua_rainmeter_CRainmeter_GetTrayExecuteR00(lua_State* tolua_S)
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrayExecuteR'", NULL);
|
||||
#endif
|
||||
{
|
||||
std::wstring tolua_ret = (std::wstring) self->GetTrayExecuteR();
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
void* tolua_obj = Mtolua_new((std::wstring)(tolua_ret));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#else
|
||||
void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(std::wstring));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#endif
|
||||
}
|
||||
const std::wstring& tolua_ret = (const std::wstring&) self->GetTrayExecuteR();
|
||||
push_wstring(tolua_S,(void*)&tolua_ret,"const std::wstring");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
@ -926,18 +934,8 @@ static int tolua_rainmeter_CRainmeter_GetTrayExecuteM00(lua_State* tolua_S)
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrayExecuteM'", NULL);
|
||||
#endif
|
||||
{
|
||||
std::wstring tolua_ret = (std::wstring) self->GetTrayExecuteM();
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
void* tolua_obj = Mtolua_new((std::wstring)(tolua_ret));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#else
|
||||
void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(std::wstring));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#endif
|
||||
}
|
||||
const std::wstring& tolua_ret = (const std::wstring&) self->GetTrayExecuteM();
|
||||
push_wstring(tolua_S,(void*)&tolua_ret,"const std::wstring");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
@ -968,18 +966,8 @@ static int tolua_rainmeter_CRainmeter_GetTrayExecuteDR00(lua_State* tolua_S)
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrayExecuteDR'", NULL);
|
||||
#endif
|
||||
{
|
||||
std::wstring tolua_ret = (std::wstring) self->GetTrayExecuteDR();
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
void* tolua_obj = Mtolua_new((std::wstring)(tolua_ret));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#else
|
||||
void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(std::wstring));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#endif
|
||||
}
|
||||
const std::wstring& tolua_ret = (const std::wstring&) self->GetTrayExecuteDR();
|
||||
push_wstring(tolua_S,(void*)&tolua_ret,"const std::wstring");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
@ -1010,18 +998,8 @@ static int tolua_rainmeter_CRainmeter_GetTrayExecuteDL00(lua_State* tolua_S)
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrayExecuteDL'", NULL);
|
||||
#endif
|
||||
{
|
||||
std::wstring tolua_ret = (std::wstring) self->GetTrayExecuteDL();
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
void* tolua_obj = Mtolua_new((std::wstring)(tolua_ret));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#else
|
||||
void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(std::wstring));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#endif
|
||||
}
|
||||
const std::wstring& tolua_ret = (const std::wstring&) self->GetTrayExecuteDL();
|
||||
push_wstring(tolua_S,(void*)&tolua_ret,"const std::wstring");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
@ -1052,18 +1030,8 @@ static int tolua_rainmeter_CRainmeter_GetTrayExecuteDM00(lua_State* tolua_S)
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTrayExecuteDM'", NULL);
|
||||
#endif
|
||||
{
|
||||
std::wstring tolua_ret = (std::wstring) self->GetTrayExecuteDM();
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
void* tolua_obj = Mtolua_new((std::wstring)(tolua_ret));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#else
|
||||
void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(std::wstring));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#endif
|
||||
}
|
||||
const std::wstring& tolua_ret = (const std::wstring&) self->GetTrayExecuteDM();
|
||||
push_wstring(tolua_S,(void*)&tolua_ret,"const std::wstring");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
@ -1075,197 +1043,6 @@ static int tolua_rainmeter_CRainmeter_GetTrayExecuteDM00(lua_State* tolua_S)
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: ExecuteBang of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_ExecuteBang00
|
||||
static int tolua_rainmeter_CRainmeter_ExecuteBang00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
(tolua_isvaluenil(tolua_S,2,&tolua_err) || !is_wstring(tolua_S,2,"const std::wstring",0,&tolua_err)) ||
|
||||
(tolua_isvaluenil(tolua_S,3,&tolua_err) || !is_wstring(tolua_S,3,"const std::wstring",0,&tolua_err)) ||
|
||||
!tolua_isusertype(tolua_S,4,"CMeterWindow",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,5,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
const std::wstring* bang = &to_wstring(tolua_S,2,0);
|
||||
const std::wstring* arg = &to_wstring(tolua_S,3,0);
|
||||
CMeterWindow* meterWindow = ((CMeterWindow*) tolua_tousertype(tolua_S,4,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ExecuteBang'", NULL);
|
||||
#endif
|
||||
{
|
||||
BOOL tolua_ret = (BOOL) self->ExecuteBang(*bang,*arg,meterWindow);
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
void* tolua_obj = Mtolua_new((BOOL)(tolua_ret));
|
||||
tolua_pushusertype(tolua_S,tolua_obj,"BOOL");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#else
|
||||
void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(BOOL));
|
||||
tolua_pushusertype(tolua_S,tolua_obj,"BOOL");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'ExecuteBang'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: ParseCommand of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_ParseCommand00
|
||||
static int tolua_rainmeter_CRainmeter_ParseCommand00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
!is_wchar(tolua_S,2,"const WCHAR",0,&tolua_err) ||
|
||||
!tolua_isusertype(tolua_S,3,"CMeterWindow",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,4,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
const WCHAR* command = ((const WCHAR*) to_wchar(tolua_S,2,0));
|
||||
CMeterWindow* meterWindow = ((CMeterWindow*) tolua_tousertype(tolua_S,3,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ParseCommand'", NULL);
|
||||
#endif
|
||||
{
|
||||
std::wstring tolua_ret = (std::wstring) self->ParseCommand(command,meterWindow);
|
||||
{
|
||||
#ifdef __cplusplus
|
||||
void* tolua_obj = Mtolua_new((std::wstring)(tolua_ret));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#else
|
||||
void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(std::wstring));
|
||||
push_wstring(tolua_S,tolua_obj,"std::wstring");
|
||||
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'ParseCommand'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: ExecuteCommand of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_ExecuteCommand00
|
||||
static int tolua_rainmeter_CRainmeter_ExecuteCommand00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
!is_wchar(tolua_S,2,"const WCHAR",0,&tolua_err) ||
|
||||
!tolua_isusertype(tolua_S,3,"CMeterWindow",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,4,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
const WCHAR* command = ((const WCHAR*) to_wchar(tolua_S,2,0));
|
||||
CMeterWindow* meterWindow = ((CMeterWindow*) tolua_tousertype(tolua_S,3,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ExecuteCommand'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->ExecuteCommand(command,meterWindow);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'ExecuteCommand'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: RefreshAll of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_RefreshAll00
|
||||
static int tolua_rainmeter_CRainmeter_RefreshAll00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RefreshAll'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->RefreshAll();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'RefreshAll'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: ClearDeleteLaterList of class CRainmeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_rainmeter_CRainmeter_ClearDeleteLaterList00
|
||||
static int tolua_rainmeter_CRainmeter_ClearDeleteLaterList00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CRainmeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CRainmeter* self = (CRainmeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ClearDeleteLaterList'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->ClearDeleteLaterList();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'ClearDeleteLaterList'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* Open function */
|
||||
TOLUA_API int tolua_rainmeter_open (lua_State* tolua_S)
|
||||
{
|
||||
@ -1276,27 +1053,28 @@ TOLUA_API int tolua_rainmeter_open (lua_State* tolua_S)
|
||||
tolua_constant(tolua_S,"MAX_LINE_LENGTH",MAX_LINE_LENGTH);
|
||||
tolua_cclass(tolua_S,"CRainmeter","CRainmeter","",NULL);
|
||||
tolua_beginmodule(tolua_S,"CRainmeter");
|
||||
tolua_function(tolua_S,"GetTrayWindow",tolua_rainmeter_CRainmeter_GetTrayWindow00);
|
||||
tolua_function(tolua_S,"GetMeterWindow",tolua_rainmeter_CRainmeter_GetMeterWindow00);
|
||||
tolua_function(tolua_S,"GetPath",tolua_rainmeter_CRainmeter_GetPath00);
|
||||
tolua_function(tolua_S,"GetIniFile",tolua_rainmeter_CRainmeter_GetIniFile00);
|
||||
tolua_function(tolua_S,"GetLogFile",tolua_rainmeter_CRainmeter_GetLogFile00);
|
||||
tolua_function(tolua_S,"GetSkinPath",tolua_rainmeter_CRainmeter_GetSkinPath00);
|
||||
tolua_function(tolua_S,"GetPluginPath",tolua_rainmeter_CRainmeter_GetPluginPath00);
|
||||
tolua_function(tolua_S,"GetAddonPath",tolua_rainmeter_CRainmeter_GetAddonPath00);
|
||||
tolua_function(tolua_S,"GetSettingsPath",tolua_rainmeter_CRainmeter_GetSettingsPath00);
|
||||
tolua_function(tolua_S,"GetConfigEditor",tolua_rainmeter_CRainmeter_GetConfigEditor00);
|
||||
tolua_function(tolua_S,"GetLogViewer",tolua_rainmeter_CRainmeter_GetLogViewer00);
|
||||
tolua_function(tolua_S,"GetStatsDate",tolua_rainmeter_CRainmeter_GetStatsDate00);
|
||||
tolua_function(tolua_S,"GetDebug",tolua_rainmeter_CRainmeter_GetDebug00);
|
||||
tolua_function(tolua_S,"ReloadSettings",tolua_rainmeter_CRainmeter_ReloadSettings00);
|
||||
tolua_function(tolua_S,"SaveSettings",tolua_rainmeter_CRainmeter_SaveSettings00);
|
||||
tolua_function(tolua_S,"ReadStats",tolua_rainmeter_CRainmeter_ReadStats00);
|
||||
tolua_function(tolua_S,"WriteStats",tolua_rainmeter_CRainmeter_WriteStats00);
|
||||
tolua_function(tolua_S,"ResetStats",tolua_rainmeter_CRainmeter_ResetStats00);
|
||||
tolua_function(tolua_S,"GetLogging",tolua_rainmeter_CRainmeter_GetLogging00);
|
||||
tolua_function(tolua_S,"StartLogging",tolua_rainmeter_CRainmeter_StartLogging00);
|
||||
tolua_function(tolua_S,"StopLogging",tolua_rainmeter_CRainmeter_StopLogging00);
|
||||
tolua_function(tolua_S,"DeleteLogFile",tolua_rainmeter_CRainmeter_DeleteLogFile00);
|
||||
tolua_function(tolua_S,"GetDisableRDP",tolua_rainmeter_CRainmeter_GetDisableRDP00);
|
||||
tolua_function(tolua_S,"GetDisableDragging",tolua_rainmeter_CRainmeter_GetDisableDragging00);
|
||||
tolua_function(tolua_S,"SetDisableDragging",tolua_rainmeter_CRainmeter_SetDisableDragging00);
|
||||
tolua_function(tolua_S,"SetDebug",tolua_rainmeter_CRainmeter_SetDebug00);
|
||||
tolua_function(tolua_S,"IsMenuActive",tolua_rainmeter_CRainmeter_IsMenuActive00);
|
||||
tolua_function(tolua_S,"ShowContextMenu",tolua_rainmeter_CRainmeter_ShowContextMenu00);
|
||||
@ -1306,11 +1084,6 @@ TOLUA_API int tolua_rainmeter_open (lua_State* tolua_S)
|
||||
tolua_function(tolua_S,"GetTrayExecuteDR",tolua_rainmeter_CRainmeter_GetTrayExecuteDR00);
|
||||
tolua_function(tolua_S,"GetTrayExecuteDL",tolua_rainmeter_CRainmeter_GetTrayExecuteDL00);
|
||||
tolua_function(tolua_S,"GetTrayExecuteDM",tolua_rainmeter_CRainmeter_GetTrayExecuteDM00);
|
||||
tolua_function(tolua_S,"ExecuteBang",tolua_rainmeter_CRainmeter_ExecuteBang00);
|
||||
tolua_function(tolua_S,"ParseCommand",tolua_rainmeter_CRainmeter_ParseCommand00);
|
||||
tolua_function(tolua_S,"ExecuteCommand",tolua_rainmeter_CRainmeter_ExecuteCommand00);
|
||||
tolua_function(tolua_S,"RefreshAll",tolua_rainmeter_CRainmeter_RefreshAll00);
|
||||
tolua_function(tolua_S,"ClearDeleteLaterList",tolua_rainmeter_CRainmeter_ClearDeleteLaterList00);
|
||||
tolua_endmodule(tolua_S);
|
||||
tolua_endmodule(tolua_S);
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user