mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added Lua Stuff
There are a few changes to the core Rainmeter code.
This commit is contained in:
81
Library/lua/glue/lua_group.cpp
Normal file
81
Library/lua/glue/lua_group.cpp
Normal file
@ -0,0 +1,81 @@
|
||||
/*
|
||||
** Lua binding: group
|
||||
** Generated automatically by tolua++-1.0.92 on 11/22/10 21:20:13.
|
||||
*/
|
||||
|
||||
#ifndef __cplusplus
|
||||
#include "stdlib.h"
|
||||
#endif
|
||||
#include "string.h"
|
||||
|
||||
#include "tolua++.h"
|
||||
|
||||
/* Exported function */
|
||||
TOLUA_API int tolua_group_open (lua_State* tolua_S);
|
||||
|
||||
#include "../../Group.h"
|
||||
#include "../LuaPush.h"
|
||||
|
||||
/* function to register type */
|
||||
static void tolua_reg_types (lua_State* tolua_S)
|
||||
{
|
||||
tolua_usertype(tolua_S,"CGroup");
|
||||
tolua_usertype(tolua_S,"std::wstring");
|
||||
}
|
||||
|
||||
/* method: BelongsToGroup of class CGroup */
|
||||
#ifndef TOLUA_DISABLE_tolua_group_CGroup_BelongsToGroup00
|
||||
static int tolua_group_CGroup_BelongsToGroup00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CGroup",0,&tolua_err) ||
|
||||
(tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const std::wstring",0,&tolua_err)) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CGroup* self = (CGroup*) tolua_tousertype(tolua_S,1,0);
|
||||
const std::wstring* group = ((const std::wstring*) tolua_tousertype(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'BelongsToGroup'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->BelongsToGroup(*group);
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'BelongsToGroup'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* Open function */
|
||||
TOLUA_API int tolua_group_open (lua_State* tolua_S)
|
||||
{
|
||||
tolua_open(tolua_S);
|
||||
tolua_reg_types(tolua_S);
|
||||
tolua_module(tolua_S,NULL,0);
|
||||
tolua_beginmodule(tolua_S,NULL);
|
||||
tolua_cclass(tolua_S,"CGroup","CGroup","",NULL);
|
||||
tolua_beginmodule(tolua_S,"CGroup");
|
||||
tolua_function(tolua_S,"BelongsToGroup",tolua_group_CGroup_BelongsToGroup00);
|
||||
tolua_endmodule(tolua_S);
|
||||
tolua_endmodule(tolua_S);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
|
||||
TOLUA_API int luaopen_group (lua_State* tolua_S) {
|
||||
return tolua_group_open(tolua_S);
|
||||
};
|
||||
#endif
|
||||
|
8
Library/lua/glue/lua_group.h
Normal file
8
Library/lua/glue/lua_group.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*
|
||||
** Lua binding: group
|
||||
** Generated automatically by tolua++-1.0.92 on 11/22/10 21:20:13.
|
||||
*/
|
||||
|
||||
/* Exported function */
|
||||
TOLUA_API int tolua_group_open (lua_State* tolua_S);
|
||||
|
520
Library/lua/glue/lua_measure.cpp
Normal file
520
Library/lua/glue/lua_measure.cpp
Normal file
@ -0,0 +1,520 @@
|
||||
/*
|
||||
** Lua binding: measure
|
||||
** Generated automatically by tolua++-1.0.92 on 11/23/10 00:33:48.
|
||||
*/
|
||||
|
||||
#ifndef __cplusplus
|
||||
#include "stdlib.h"
|
||||
#endif
|
||||
#include "string.h"
|
||||
|
||||
#include "tolua++.h"
|
||||
|
||||
/* Exported function */
|
||||
TOLUA_API int tolua_measure_open (lua_State* tolua_S);
|
||||
|
||||
#include "../../MeterWindow.h"
|
||||
#include "../../Litestep.h"
|
||||
#include "../../Group.h"
|
||||
#include "../../Measure.h"
|
||||
#include "../LuaPush.h"
|
||||
|
||||
/* function to register type */
|
||||
static void tolua_reg_types (lua_State* tolua_S)
|
||||
{
|
||||
tolua_usertype(tolua_S,"CGroup");
|
||||
tolua_usertype(tolua_S,"CMeasure");
|
||||
tolua_usertype(tolua_S,"WCHAR");
|
||||
}
|
||||
|
||||
/* method: SetName of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_SetName00
|
||||
static int tolua_measure_CMeasure_SetName00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!is_wchar(tolua_S,2,"const WCHAR",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
const WCHAR* name = ((const WCHAR*) to_wchar(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetName'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->SetName(name);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'SetName'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetANSIName of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_GetANSIName00
|
||||
static int tolua_measure_CMeasure_GetANSIName00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetANSIName'", NULL);
|
||||
#endif
|
||||
{
|
||||
const char* tolua_ret = (const char*) self->GetANSIName();
|
||||
tolua_pushstring(tolua_S,(const char*)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetANSIName'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: Disable of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_Disable00
|
||||
static int tolua_measure_CMeasure_Disable00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Disable'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->Disable();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'Disable'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: Enable of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_Enable00
|
||||
static int tolua_measure_CMeasure_Enable00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Enable'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->Enable();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'Enable'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: IsDisabled of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_IsDisabled00
|
||||
static int tolua_measure_CMeasure_IsDisabled00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsDisabled'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->IsDisabled();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'IsDisabled'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetName of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_GetName00
|
||||
static int tolua_measure_CMeasure_GetName00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetName'", NULL);
|
||||
#endif
|
||||
{
|
||||
const WCHAR* tolua_ret = (const WCHAR*) self->GetName();
|
||||
push_wchar(tolua_S,(void*)tolua_ret,"const WCHAR");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetName'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: HasDynamicVariables of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_HasDynamicVariables00
|
||||
static int tolua_measure_CMeasure_HasDynamicVariables00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasDynamicVariables'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->HasDynamicVariables();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'HasDynamicVariables'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: ExecuteBang of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_ExecuteBang00
|
||||
static int tolua_measure_CMeasure_ExecuteBang00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!is_wchar(tolua_S,2,"const WCHAR",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
const WCHAR* args = ((const WCHAR*) to_wchar(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ExecuteBang'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->ExecuteBang(args);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'ExecuteBang'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetValue of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_GetValue00
|
||||
static int tolua_measure_CMeasure_GetValue00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetValue'", NULL);
|
||||
#endif
|
||||
{
|
||||
double tolua_ret = (double) self->GetValue();
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetValue'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetRelativeValue of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_GetRelativeValue00
|
||||
static int tolua_measure_CMeasure_GetRelativeValue00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRelativeValue'", NULL);
|
||||
#endif
|
||||
{
|
||||
double tolua_ret = (double) self->GetRelativeValue();
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetRelativeValue'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetValueRange of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_GetValueRange00
|
||||
static int tolua_measure_CMeasure_GetValueRange00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetValueRange'", NULL);
|
||||
#endif
|
||||
{
|
||||
double tolua_ret = (double) self->GetValueRange();
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetValueRange'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetMinValue of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_GetMinValue00
|
||||
static int tolua_measure_CMeasure_GetMinValue00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinValue'", NULL);
|
||||
#endif
|
||||
{
|
||||
double tolua_ret = (double) self->GetMinValue();
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetMinValue'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetMaxValue of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_GetMaxValue00
|
||||
static int tolua_measure_CMeasure_GetMaxValue00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxValue'", NULL);
|
||||
#endif
|
||||
{
|
||||
double tolua_ret = (double) self->GetMaxValue();
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetMaxValue'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetStringValue of class CMeasure */
|
||||
#ifndef TOLUA_DISABLE_tolua_measure_CMeasure_GetStringValue00
|
||||
static int tolua_measure_CMeasure_GetStringValue00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeasure",0,&tolua_err) ||
|
||||
!tolua_isboolean(tolua_S,2,1,&tolua_err) ||
|
||||
!tolua_isnumber(tolua_S,3,1,&tolua_err) ||
|
||||
!tolua_isnumber(tolua_S,4,1,&tolua_err) ||
|
||||
!tolua_isboolean(tolua_S,5,1,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,6,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeasure* self = (CMeasure*) tolua_tousertype(tolua_S,1,0);
|
||||
bool autoScale = ((bool) tolua_toboolean(tolua_S,2,false));
|
||||
double scale = ((double) tolua_tonumber(tolua_S,3,1.0));
|
||||
int decimals = ((int) tolua_tonumber(tolua_S,4,0));
|
||||
bool percentual = ((bool) tolua_toboolean(tolua_S,5,false));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStringValue'", NULL);
|
||||
#endif
|
||||
{
|
||||
const WCHAR* tolua_ret = (const WCHAR*) self->GetStringValue(autoScale,scale,decimals,percentual);
|
||||
push_wchar(tolua_S,(void*)tolua_ret,"const WCHAR");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetStringValue'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* Open function */
|
||||
TOLUA_API int tolua_measure_open (lua_State* tolua_S)
|
||||
{
|
||||
tolua_open(tolua_S);
|
||||
tolua_reg_types(tolua_S);
|
||||
tolua_module(tolua_S,NULL,0);
|
||||
tolua_beginmodule(tolua_S,NULL);
|
||||
tolua_cclass(tolua_S,"CMeasure","CMeasure","CGroup",NULL);
|
||||
tolua_beginmodule(tolua_S,"CMeasure");
|
||||
tolua_function(tolua_S,"SetName",tolua_measure_CMeasure_SetName00);
|
||||
tolua_function(tolua_S,"GetANSIName",tolua_measure_CMeasure_GetANSIName00);
|
||||
tolua_function(tolua_S,"Disable",tolua_measure_CMeasure_Disable00);
|
||||
tolua_function(tolua_S,"Enable",tolua_measure_CMeasure_Enable00);
|
||||
tolua_function(tolua_S,"IsDisabled",tolua_measure_CMeasure_IsDisabled00);
|
||||
tolua_function(tolua_S,"GetName",tolua_measure_CMeasure_GetName00);
|
||||
tolua_function(tolua_S,"HasDynamicVariables",tolua_measure_CMeasure_HasDynamicVariables00);
|
||||
tolua_function(tolua_S,"ExecuteBang",tolua_measure_CMeasure_ExecuteBang00);
|
||||
tolua_function(tolua_S,"GetValue",tolua_measure_CMeasure_GetValue00);
|
||||
tolua_function(tolua_S,"GetRelativeValue",tolua_measure_CMeasure_GetRelativeValue00);
|
||||
tolua_function(tolua_S,"GetValueRange",tolua_measure_CMeasure_GetValueRange00);
|
||||
tolua_function(tolua_S,"GetMinValue",tolua_measure_CMeasure_GetMinValue00);
|
||||
tolua_function(tolua_S,"GetMaxValue",tolua_measure_CMeasure_GetMaxValue00);
|
||||
tolua_function(tolua_S,"GetStringValue",tolua_measure_CMeasure_GetStringValue00);
|
||||
tolua_endmodule(tolua_S);
|
||||
tolua_endmodule(tolua_S);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
|
||||
TOLUA_API int luaopen_measure (lua_State* tolua_S) {
|
||||
return tolua_measure_open(tolua_S);
|
||||
};
|
||||
#endif
|
||||
|
8
Library/lua/glue/lua_measure.h
Normal file
8
Library/lua/glue/lua_measure.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*
|
||||
** Lua binding: measure
|
||||
** Generated automatically by tolua++-1.0.92 on 11/23/10 00:33:48.
|
||||
*/
|
||||
|
||||
/* Exported function */
|
||||
TOLUA_API int tolua_measure_open (lua_State* tolua_S);
|
||||
|
967
Library/lua/glue/lua_meter.cpp
Normal file
967
Library/lua/glue/lua_meter.cpp
Normal file
@ -0,0 +1,967 @@
|
||||
/*
|
||||
** Lua binding: meter
|
||||
** Generated automatically by tolua++-1.0.92 on 11/22/10 21:20:13.
|
||||
*/
|
||||
|
||||
#ifndef __cplusplus
|
||||
#include "stdlib.h"
|
||||
#endif
|
||||
#include "string.h"
|
||||
|
||||
#include "tolua++.h"
|
||||
|
||||
/* Exported function */
|
||||
TOLUA_API int tolua_meter_open (lua_State* tolua_S);
|
||||
|
||||
#include "../../Meter.h"
|
||||
#include "../LuaPush.h"
|
||||
|
||||
/* function to release collected object via destructor */
|
||||
#ifdef __cplusplus
|
||||
|
||||
static int tolua_collect_std__wstring (lua_State* tolua_S)
|
||||
{
|
||||
std::wstring* self = (std::wstring*) tolua_tousertype(tolua_S,1,0);
|
||||
Mtolua_delete(self);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/* function to register type */
|
||||
static void tolua_reg_types (lua_State* tolua_S)
|
||||
{
|
||||
tolua_usertype(tolua_S,"std::wstring");
|
||||
tolua_usertype(tolua_S,"CMeter");
|
||||
tolua_usertype(tolua_S,"Gdiplus::Matrix");
|
||||
tolua_usertype(tolua_S,"CGroup");
|
||||
tolua_usertype(tolua_S,"WCHAR");
|
||||
}
|
||||
|
||||
/* method: Initialize of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_Initialize00
|
||||
static int tolua_meter_CMeter_Initialize00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Initialize'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->Initialize();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'Initialize'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: Update of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_Update00
|
||||
static int tolua_meter_CMeter_Update00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Update'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->Update();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'Update'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: HasActiveTransition of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_HasActiveTransition00
|
||||
static int tolua_meter_CMeter_HasActiveTransition00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasActiveTransition'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->HasActiveTransition();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'HasActiveTransition'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: HasDynamicVariables of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_HasDynamicVariables00
|
||||
static int tolua_meter_CMeter_HasDynamicVariables00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasDynamicVariables'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->HasDynamicVariables();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'HasDynamicVariables'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetH of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_GetH00
|
||||
static int tolua_meter_CMeter_GetH00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetH'", NULL);
|
||||
#endif
|
||||
{
|
||||
int tolua_ret = (int) self->GetH();
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetH'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetW of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_GetW00
|
||||
static int tolua_meter_CMeter_GetW00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetW'", NULL);
|
||||
#endif
|
||||
{
|
||||
int tolua_ret = (int) self->GetW();
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetW'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetX of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_GetX00
|
||||
static int tolua_meter_CMeter_GetX00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isboolean(tolua_S,2,1,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
bool abs = ((bool) tolua_toboolean(tolua_S,2,false));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetX'", NULL);
|
||||
#endif
|
||||
{
|
||||
int tolua_ret = (int) self->GetX(abs);
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetX'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetY of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_GetY00
|
||||
static int tolua_meter_CMeter_GetY00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isboolean(tolua_S,2,1,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
bool abs = ((bool) tolua_toboolean(tolua_S,2,false));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetY'", NULL);
|
||||
#endif
|
||||
{
|
||||
int tolua_ret = (int) self->GetY(abs);
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetY'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: SetX of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_SetX00
|
||||
static int tolua_meter_CMeter_SetX00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnumber(tolua_S,2,0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
int x = ((int) tolua_tonumber(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetX'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->SetX(x);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'SetX'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: SetY of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_SetY00
|
||||
static int tolua_meter_CMeter_SetY00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnumber(tolua_S,2,0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
int y = ((int) tolua_tonumber(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetY'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->SetY(y);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'SetY'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetToolTipText of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_GetToolTipText00
|
||||
static int tolua_meter_CMeter_GetToolTipText00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetToolTipText'", NULL);
|
||||
#endif
|
||||
{
|
||||
const std::wstring& tolua_ret = (const std::wstring&) self->GetToolTipText();
|
||||
tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const std::wstring");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetToolTipText'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: SetToolTipHidden of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_SetToolTipHidden00
|
||||
static int tolua_meter_CMeter_SetToolTipHidden00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isboolean(tolua_S,2,0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
bool b = ((bool) tolua_toboolean(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetToolTipHidden'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->SetToolTipHidden(b);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'SetToolTipHidden'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: UpdateToolTip of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_UpdateToolTip00
|
||||
static int tolua_meter_CMeter_UpdateToolTip00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'UpdateToolTip'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->UpdateToolTip();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'UpdateToolTip'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: HasMouseAction of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_HasMouseAction00
|
||||
static int tolua_meter_CMeter_HasMouseAction00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasMouseAction'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->HasMouseAction();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'HasMouseAction'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: HasMouseActionCursor of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_HasMouseActionCursor00
|
||||
static int tolua_meter_CMeter_HasMouseActionCursor00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasMouseActionCursor'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->HasMouseActionCursor();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'HasMouseActionCursor'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: SetMouseActionCursor of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_SetMouseActionCursor00
|
||||
static int tolua_meter_CMeter_SetMouseActionCursor00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isboolean(tolua_S,2,0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
bool b = ((bool) tolua_toboolean(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMouseActionCursor'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->SetMouseActionCursor(b);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'SetMouseActionCursor'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: Hide of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_Hide00
|
||||
static int tolua_meter_CMeter_Hide00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Hide'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->Hide();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'Hide'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: Show of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_Show00
|
||||
static int tolua_meter_CMeter_Show00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Show'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->Show();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'Show'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: IsHidden of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_IsHidden00
|
||||
static int tolua_meter_CMeter_IsHidden00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsHidden'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->IsHidden();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'IsHidden'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetTransformationMatrix of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_GetTransformationMatrix00
|
||||
static int tolua_meter_CMeter_GetTransformationMatrix00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTransformationMatrix'", NULL);
|
||||
#endif
|
||||
{
|
||||
const Gdiplus::Matrix& tolua_ret = (const Gdiplus::Matrix&) self->GetTransformationMatrix();
|
||||
tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Gdiplus::Matrix");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetTransformationMatrix'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: HitTest of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_HitTest00
|
||||
static int tolua_meter_CMeter_HitTest00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnumber(tolua_S,2,0,&tolua_err) ||
|
||||
!tolua_isnumber(tolua_S,3,0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,4,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
int x = ((int) tolua_tonumber(tolua_S,2,0));
|
||||
int y = ((int) tolua_tonumber(tolua_S,3,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HitTest'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->HitTest(x,y);
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'HitTest'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: SetMouseOver of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_SetMouseOver00
|
||||
static int tolua_meter_CMeter_SetMouseOver00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isboolean(tolua_S,2,0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
bool over = ((bool) tolua_toboolean(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMouseOver'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->SetMouseOver(over);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'SetMouseOver'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: IsMouseOver of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_IsMouseOver00
|
||||
static int tolua_meter_CMeter_IsMouseOver00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsMouseOver'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->IsMouseOver();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'IsMouseOver'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: SetName of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_SetName00
|
||||
static int tolua_meter_CMeter_SetName00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!is_wchar(tolua_S,2,"const WCHAR",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
const WCHAR* name = ((const WCHAR*) to_wchar(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetName'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->SetName(name);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'SetName'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: GetName of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_GetName00
|
||||
static int tolua_meter_CMeter_GetName00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetName'", NULL);
|
||||
#endif
|
||||
{
|
||||
const WCHAR* tolua_ret = (const WCHAR*) self->GetName();
|
||||
push_wchar(tolua_S,(void*)tolua_ret,"const WCHAR");
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetName'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
|
||||
/* method: SetW of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_SetW00
|
||||
static int tolua_meter_CMeter_SetW00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnumber(tolua_S,2,0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
int w = ((int) tolua_tonumber(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetW'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->SetW(w);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'SetW'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: SetH of class CMeter */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_CMeter_SetH00
|
||||
static int tolua_meter_CMeter_SetH00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeter",0,&tolua_err) ||
|
||||
!tolua_isnumber(tolua_S,2,0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeter* self = (CMeter*) tolua_tousertype(tolua_S,1,0);
|
||||
int h = ((int) tolua_tonumber(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetH'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->SetH(h);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'SetH'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* Open function */
|
||||
TOLUA_API int tolua_meter_open (lua_State* tolua_S)
|
||||
{
|
||||
tolua_open(tolua_S);
|
||||
tolua_reg_types(tolua_S);
|
||||
tolua_module(tolua_S,NULL,0);
|
||||
tolua_beginmodule(tolua_S,NULL);
|
||||
tolua_cclass(tolua_S,"CMeter","CMeter","CGroup",NULL);
|
||||
tolua_beginmodule(tolua_S,"CMeter");
|
||||
tolua_function(tolua_S,"Initialize",tolua_meter_CMeter_Initialize00);
|
||||
tolua_function(tolua_S,"Update",tolua_meter_CMeter_Update00);
|
||||
tolua_function(tolua_S,"HasActiveTransition",tolua_meter_CMeter_HasActiveTransition00);
|
||||
tolua_function(tolua_S,"HasDynamicVariables",tolua_meter_CMeter_HasDynamicVariables00);
|
||||
tolua_function(tolua_S,"GetH",tolua_meter_CMeter_GetH00);
|
||||
tolua_function(tolua_S,"GetW",tolua_meter_CMeter_GetW00);
|
||||
tolua_function(tolua_S,"GetX",tolua_meter_CMeter_GetX00);
|
||||
tolua_function(tolua_S,"GetY",tolua_meter_CMeter_GetY00);
|
||||
tolua_function(tolua_S,"SetX",tolua_meter_CMeter_SetX00);
|
||||
tolua_function(tolua_S,"SetY",tolua_meter_CMeter_SetY00);
|
||||
tolua_function(tolua_S,"SetW",tolua_meter_CMeter_SetW00);
|
||||
tolua_function(tolua_S,"SetH",tolua_meter_CMeter_SetH00);
|
||||
tolua_function(tolua_S,"GetToolTipText",tolua_meter_CMeter_GetToolTipText00);
|
||||
tolua_function(tolua_S,"SetToolTipHidden",tolua_meter_CMeter_SetToolTipHidden00);
|
||||
tolua_function(tolua_S,"UpdateToolTip",tolua_meter_CMeter_UpdateToolTip00);
|
||||
tolua_function(tolua_S,"HasMouseAction",tolua_meter_CMeter_HasMouseAction00);
|
||||
tolua_function(tolua_S,"HasMouseActionCursor",tolua_meter_CMeter_HasMouseActionCursor00);
|
||||
tolua_function(tolua_S,"SetMouseActionCursor",tolua_meter_CMeter_SetMouseActionCursor00);
|
||||
tolua_function(tolua_S,"Hide",tolua_meter_CMeter_Hide00);
|
||||
tolua_function(tolua_S,"Show",tolua_meter_CMeter_Show00);
|
||||
tolua_function(tolua_S,"IsHidden",tolua_meter_CMeter_IsHidden00);
|
||||
tolua_function(tolua_S,"GetTransformationMatrix",tolua_meter_CMeter_GetTransformationMatrix00);
|
||||
tolua_function(tolua_S,"HitTest",tolua_meter_CMeter_HitTest00);
|
||||
tolua_function(tolua_S,"SetMouseOver",tolua_meter_CMeter_SetMouseOver00);
|
||||
tolua_function(tolua_S,"IsMouseOver",tolua_meter_CMeter_IsMouseOver00);
|
||||
tolua_function(tolua_S,"SetName",tolua_meter_CMeter_SetName00);
|
||||
tolua_function(tolua_S,"GetName",tolua_meter_CMeter_GetName00);
|
||||
tolua_endmodule(tolua_S);
|
||||
tolua_endmodule(tolua_S);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
|
||||
TOLUA_API int luaopen_meter (lua_State* tolua_S) {
|
||||
return tolua_meter_open(tolua_S);
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
|
8
Library/lua/glue/lua_meter.h
Normal file
8
Library/lua/glue/lua_meter.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*
|
||||
** Lua binding: meter
|
||||
** Generated automatically by tolua++-1.0.92 on 11/28/10 09:57:02.
|
||||
*/
|
||||
|
||||
/* Exported function */
|
||||
TOLUA_API int tolua_meter_open (lua_State* tolua_S);
|
||||
|
232
Library/lua/glue/lua_meterstring.cpp
Normal file
232
Library/lua/glue/lua_meterstring.cpp
Normal file
@ -0,0 +1,232 @@
|
||||
/*
|
||||
** Lua binding: meter_string
|
||||
** Generated automatically by tolua++-1.0.92 on 11/23/10 03:16:44.
|
||||
*/
|
||||
|
||||
#ifndef __cplusplus
|
||||
#include "stdlib.h"
|
||||
#endif
|
||||
#include "string.h"
|
||||
|
||||
#include "tolua++.h"
|
||||
|
||||
/* Exported function */
|
||||
TOLUA_API int tolua_meter_string_open (lua_State* tolua_S);
|
||||
|
||||
#include "../../MeterString.h"
|
||||
#include "../LuaPush.h"
|
||||
|
||||
/* function to register type */
|
||||
static void tolua_reg_types (lua_State* tolua_S)
|
||||
{
|
||||
tolua_usertype(tolua_S,"CMeterString");
|
||||
tolua_usertype(tolua_S,"WCHAR");
|
||||
tolua_usertype(tolua_S,"CMeter");
|
||||
}
|
||||
|
||||
/* method: GetX of class CMeterString */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_string_CMeterString_GetX00
|
||||
static int tolua_meter_string_CMeterString_GetX00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeterString",0,&tolua_err) ||
|
||||
!tolua_isboolean(tolua_S,2,1,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeterString* self = (CMeterString*) tolua_tousertype(tolua_S,1,0);
|
||||
bool abs = ((bool) tolua_toboolean(tolua_S,2,false));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetX'", NULL);
|
||||
#endif
|
||||
{
|
||||
int tolua_ret = (int) self->GetX(abs);
|
||||
tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetX'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: Initialize of class CMeterString */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_string_CMeterString_Initialize00
|
||||
static int tolua_meter_string_CMeterString_Initialize00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeterString",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeterString* self = (CMeterString*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Initialize'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->Initialize();
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'Initialize'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: Update of class CMeterString */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_string_CMeterString_Update00
|
||||
static int tolua_meter_string_CMeterString_Update00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeterString",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeterString* self = (CMeterString*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Update'", NULL);
|
||||
#endif
|
||||
{
|
||||
bool tolua_ret = (bool) self->Update();
|
||||
tolua_pushboolean(tolua_S,(bool)tolua_ret);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'Update'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
/* method: SetText of class CMeterString */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_string_CMeterString_SetText00
|
||||
static int tolua_meter_string_CMeterString_SetText00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeterString",0,&tolua_err) ||
|
||||
!is_wchar(tolua_S,2,"const WCHAR",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeterString* self = (CMeterString*) tolua_tousertype(tolua_S,1,0);
|
||||
const WCHAR* text = ((const WCHAR*) to_wchar(tolua_S,2,0));
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetText'", NULL);
|
||||
#endif
|
||||
{
|
||||
self->SetText(text);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'SetText'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
|
||||
/* method: SetText of class CMeterString */
|
||||
#ifndef TOLUA_DISABLE_tolua_meter_string_CMeterString_GetRect00
|
||||
static int tolua_meter_string_CMeterString_GetRect00(lua_State* tolua_S)
|
||||
{
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_Error tolua_err;
|
||||
if (
|
||||
!tolua_isusertype(tolua_S,1,"CMeterString",0,&tolua_err) ||
|
||||
!tolua_isnoobj(tolua_S,2,&tolua_err)
|
||||
)
|
||||
goto tolua_lerror;
|
||||
else
|
||||
#endif
|
||||
{
|
||||
CMeterString* self = (CMeterString*) tolua_tousertype(tolua_S,1,0);
|
||||
#ifndef TOLUA_RELEASE
|
||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRect'", NULL);
|
||||
#endif
|
||||
{
|
||||
Gdiplus::RectF rect = self->GetRect();
|
||||
|
||||
lua_newtable(tolua_S);
|
||||
lua_pushstring(tolua_S, "x");
|
||||
lua_pushnumber(tolua_S, rect.X);
|
||||
lua_settable(tolua_S, -3);
|
||||
|
||||
lua_pushstring(tolua_S, "y");
|
||||
lua_pushnumber(tolua_S, rect.Y);
|
||||
lua_settable(tolua_S, -3);
|
||||
|
||||
lua_pushstring(tolua_S, "width");
|
||||
lua_pushnumber(tolua_S, rect.Width);
|
||||
lua_settable(tolua_S, -3);
|
||||
|
||||
lua_pushstring(tolua_S, "height");
|
||||
lua_pushnumber(tolua_S, rect.Height);
|
||||
lua_settable(tolua_S, -3);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
#ifndef TOLUA_RELEASE
|
||||
tolua_lerror:
|
||||
tolua_error(tolua_S,"#ferror in function 'GetRect'.",&tolua_err);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif //#ifndef TOLUA_DISABLE
|
||||
|
||||
|
||||
/* Open function */
|
||||
TOLUA_API int tolua_meter_string_open (lua_State* tolua_S)
|
||||
{
|
||||
tolua_open(tolua_S);
|
||||
tolua_reg_types(tolua_S);
|
||||
tolua_module(tolua_S,NULL,0);
|
||||
tolua_beginmodule(tolua_S,NULL);
|
||||
tolua_cclass(tolua_S,"CMeterString","CMeterString","CMeter",NULL);
|
||||
tolua_beginmodule(tolua_S,"CMeterString");
|
||||
tolua_function(tolua_S,"GetX",tolua_meter_string_CMeterString_GetX00);
|
||||
tolua_function(tolua_S,"Initialize",tolua_meter_string_CMeterString_Initialize00);
|
||||
tolua_function(tolua_S,"Update",tolua_meter_string_CMeterString_Update00);
|
||||
tolua_function(tolua_S,"SetText",tolua_meter_string_CMeterString_SetText00);
|
||||
tolua_function(tolua_S,"GetRect",tolua_meter_string_CMeterString_GetRect00);
|
||||
tolua_endmodule(tolua_S);
|
||||
tolua_endmodule(tolua_S);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
|
||||
TOLUA_API int luaopen_meter_string (lua_State* tolua_S) {
|
||||
return tolua_meter_string_open(tolua_S);
|
||||
};
|
||||
#endif
|
||||
|
8
Library/lua/glue/lua_meterstring.h
Normal file
8
Library/lua/glue/lua_meterstring.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*
|
||||
** Lua binding: meter_string
|
||||
** Generated automatically by tolua++-1.0.92 on 11/23/10 03:16:44.
|
||||
*/
|
||||
|
||||
/* Exported function */
|
||||
TOLUA_API int tolua_meter_string_open (lua_State* tolua_S);
|
||||
|
1632
Library/lua/glue/lua_meterwindow.cpp
Normal file
1632
Library/lua/glue/lua_meterwindow.cpp
Normal file
File diff suppressed because it is too large
Load Diff
8
Library/lua/glue/lua_meterwindow.h
Normal file
8
Library/lua/glue/lua_meterwindow.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*
|
||||
** Lua binding: meterwindow
|
||||
** Generated automatically by tolua++-1.0.92 on 11/27/10 18:13:41.
|
||||
*/
|
||||
|
||||
/* Exported function */
|
||||
TOLUA_API int tolua_meterwindow_open (lua_State* tolua_S);
|
||||
|
1323
Library/lua/glue/lua_rainmeter.cpp
Normal file
1323
Library/lua/glue/lua_rainmeter.cpp
Normal file
File diff suppressed because it is too large
Load Diff
8
Library/lua/glue/lua_rainmeter.h
Normal file
8
Library/lua/glue/lua_rainmeter.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*
|
||||
** Lua binding: rainmeter
|
||||
** Generated automatically by tolua++-1.0.92 on 11/23/10 01:56:47.
|
||||
*/
|
||||
|
||||
/* Exported function */
|
||||
TOLUA_API int tolua_rainmeter_open (lua_State* tolua_S);
|
||||
|
120
Library/lua/glue/lua_rainmeter_ext.cpp
Normal file
120
Library/lua/glue/lua_rainmeter_ext.cpp
Normal file
@ -0,0 +1,120 @@
|
||||
/*
|
||||
** Lua binding: group
|
||||
** Generated automatically by tolua++-1.0.92 on 11/22/10 21:20:13.
|
||||
*/
|
||||
|
||||
#ifndef __cplusplus
|
||||
#include "stdlib.h"
|
||||
#endif
|
||||
|
||||
#include "string.h"
|
||||
|
||||
#include "tolua++.h"
|
||||
#include "../LuaManager.h"
|
||||
/* Exported function */
|
||||
TOLUA_API int luaopen_rainmeter_ext (lua_State* tolua_S);
|
||||
|
||||
#include "../../MeterBar.h"
|
||||
#include "../../MeterBitmap.h"
|
||||
#include "../../MeterButton.h"
|
||||
#include "../../MeterHistogram.h"
|
||||
#include "../../MeterImage.h"
|
||||
#include "../../MeterLine.h"
|
||||
#include "../../MeterRotator.h"
|
||||
#include "../../MeterRoundline.h"
|
||||
#include "../../MeterString.h"
|
||||
|
||||
static int AsMeterBar(lua_State* tolua_S)
|
||||
{
|
||||
CMeterBar* meter = (CMeterBar*) tolua_tousertype(tolua_S,1,0);
|
||||
tolua_pushusertype(tolua_S,(void*) meter, "CMeterBar");
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int AsMeterBitmap(lua_State* tolua_S)
|
||||
{
|
||||
CMeterBitmap* meter = (CMeterBitmap*) tolua_tousertype(tolua_S,1,0);
|
||||
tolua_pushusertype(tolua_S,(void*) meter, "CMeterBitmap");
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int AsMeterButton(lua_State* tolua_S)
|
||||
{
|
||||
CMeterButton* meter = (CMeterButton*) tolua_tousertype(tolua_S,1,0);
|
||||
tolua_pushusertype(tolua_S,(void*) meter, "CMeterButton");
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int AsMeterHistogram(lua_State* tolua_S)
|
||||
{
|
||||
CMeterHistogram* meter = (CMeterHistogram*) tolua_tousertype(tolua_S,1,0);
|
||||
tolua_pushusertype(tolua_S,(void*) meter, "CMeterHistogram");
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int AsMeterImage(lua_State* tolua_S)
|
||||
{
|
||||
CMeterImage* meter = (CMeterImage*) tolua_tousertype(tolua_S,1,0);
|
||||
tolua_pushusertype(tolua_S,(void*) meter, "CMeterImage");
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int AsMeterLine(lua_State* tolua_S)
|
||||
{
|
||||
CMeterLine* meter = (CMeterLine*) tolua_tousertype(tolua_S,1,0);
|
||||
tolua_pushusertype(tolua_S,(void*) meter, "CMeterLine");
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int AsMeterRotator(lua_State* tolua_S)
|
||||
{
|
||||
CMeterRotator* meter = (CMeterRotator*) tolua_tousertype(tolua_S,1,0);
|
||||
tolua_pushusertype(tolua_S,(void*) meter, "CMeterRotator");
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int AsMeterRoundline(lua_State* tolua_S)
|
||||
{
|
||||
CMeterRoundLine* meter = (CMeterRoundLine*) tolua_tousertype(tolua_S,1,0);
|
||||
tolua_pushusertype(tolua_S,(void*) meter, "CMeterRoundLine");
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int AsMeterString(lua_State* tolua_S)
|
||||
{
|
||||
CMeterString* meterString = (CMeterString*) tolua_tousertype(tolua_S,1,0);
|
||||
tolua_pushusertype(tolua_S,(void*) meterString, "CMeterString");
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int staticLuaLog(lua_State* tolua_S)
|
||||
{
|
||||
const char* str = tolua_tostring(tolua_S,1,0);
|
||||
LuaManager::LuaLog(str);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* list of functions in the module */
|
||||
static const luaL_reg rainmeter_ext_funcs[] =
|
||||
{
|
||||
{ "LuaLog", staticLuaLog},
|
||||
{ "MeterBar", AsMeterBar },
|
||||
{ "MeterBitmap", AsMeterBitmap },
|
||||
{ "MeterButton", AsMeterButton },
|
||||
{ "MeterHistogram", AsMeterHistogram },
|
||||
{ "MeterImage", AsMeterImage },
|
||||
{ "MeterLine", AsMeterLine },
|
||||
{ "MeterRotator", AsMeterRotator },
|
||||
{ "MeterRoundline", AsMeterRoundline },
|
||||
{ "MeterString", AsMeterString },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
TOLUA_API int luaopen_rainmeter_ext (lua_State* L)
|
||||
{
|
||||
luaL_register(L,"TO", rainmeter_ext_funcs);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
8
Library/lua/glue/lua_rainmeter_ext.h
Normal file
8
Library/lua/glue/lua_rainmeter_ext.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*
|
||||
** Lua binding: group
|
||||
** Generated automatically by tolua++-1.0.92 on 11/22/10 21:20:13.
|
||||
*/
|
||||
|
||||
/* Exported function */
|
||||
TOLUA_API int luaopen_rainmeter_ext (lua_State* tolua_S);
|
||||
|
Reference in New Issue
Block a user