|
|
@@ -307,141 +307,6 @@ static bool UIElementSaveXML(const UIElement* element, const String& fileName)
|
|
|
return element->SaveXML(file);
|
|
|
}
|
|
|
|
|
|
-// Disable generated CreateChild function.
|
|
|
-#define TOLUA_DISABLE_tolua_UILuaAPI_UIElement_CreateChild00
|
|
|
-
|
|
|
-static int tolua_UILuaAPI_UIElement_CreateChild00(lua_State* tolua_S)
|
|
|
-{
|
|
|
-#ifndef TOLUA_RELEASE
|
|
|
- tolua_Error tolua_err;
|
|
|
- if (
|
|
|
- !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
|
|
|
- !tolua_isurho3dstring(tolua_S,2,0,&tolua_err) ||
|
|
|
- !tolua_isurho3dstring(tolua_S,3,1,&tolua_err) ||
|
|
|
- !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
|
|
|
- !tolua_isnoobj(tolua_S,5,&tolua_err)
|
|
|
- )
|
|
|
- goto tolua_lerror;
|
|
|
- else
|
|
|
-#endif
|
|
|
- {
|
|
|
- UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
|
|
|
- const String type = ((const String) tolua_tourho3dstring(tolua_S,2,0));
|
|
|
- const String name = ((const String) tolua_tourho3dstring(tolua_S,3,String::EMPTY));
|
|
|
- unsigned index = ((unsigned) tolua_tonumber(tolua_S,4,M_MAX_UNSIGNED));
|
|
|
-#ifndef TOLUA_RELEASE
|
|
|
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CreateChild'", NULL);
|
|
|
-#endif
|
|
|
- {
|
|
|
- UIElement* tolua_ret = (UIElement*) self->CreateChild(type,name,index);
|
|
|
- tolua_pushusertype(tolua_S,(void*)tolua_ret,type.CString());
|
|
|
- }
|
|
|
- }
|
|
|
- return 1;
|
|
|
-#ifndef TOLUA_RELEASE
|
|
|
- tolua_lerror:
|
|
|
- tolua_error(tolua_S,"#ferror in function 'CreateChild'.",&tolua_err);
|
|
|
- return 0;
|
|
|
-#endif
|
|
|
-}
|
|
|
-
|
|
|
-// Disable generated GetChild function.
|
|
|
-#define TOLUA_DISABLE_tolua_UILuaAPI_UIElement_GetChild00
|
|
|
-
|
|
|
-static int tolua_UILuaAPI_UIElement_GetChild00(lua_State* tolua_S)
|
|
|
-{
|
|
|
-#ifndef TOLUA_RELEASE
|
|
|
- tolua_Error tolua_err;
|
|
|
- if (
|
|
|
- !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
|
|
|
- !tolua_isurho3dstring(tolua_S,2,0,&tolua_err) ||
|
|
|
- !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
|
|
|
- !tolua_isnoobj(tolua_S,4,&tolua_err)
|
|
|
- )
|
|
|
- goto tolua_lerror;
|
|
|
- else
|
|
|
-#endif
|
|
|
- {
|
|
|
- const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
|
|
|
- const String name = ((const String) tolua_tourho3dstring(tolua_S,2,0));
|
|
|
- bool recursive = ((bool) tolua_toboolean(tolua_S,3,false));
|
|
|
-#ifndef TOLUA_RELEASE
|
|
|
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
|
|
|
-#endif
|
|
|
- {
|
|
|
- UIElement* tolua_ret = (UIElement*) self->GetChild(name,recursive);
|
|
|
- tolua_pushusertype(tolua_S,(void*)tolua_ret, tolua_ret ? tolua_ret->GetTypeName().CString() : "UIElement");
|
|
|
- }
|
|
|
- }
|
|
|
- return 1;
|
|
|
-#ifndef TOLUA_RELEASE
|
|
|
- tolua_lerror:
|
|
|
- tolua_error(tolua_S,"#ferror in function 'GetChild'.",&tolua_err);
|
|
|
- return 0;
|
|
|
-#endif
|
|
|
-}
|
|
|
-
|
|
|
-// Disable generated GetChild function.
|
|
|
-#define TOLUA_DISABLE_tolua_UILuaAPI_UIElement_GetChild01
|
|
|
-
|
|
|
-static int tolua_UILuaAPI_UIElement_GetChild01(lua_State* tolua_S)
|
|
|
-{
|
|
|
- tolua_Error tolua_err;
|
|
|
- if (
|
|
|
- !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
|
|
|
- !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
|
|
|
- !tolua_isnoobj(tolua_S,3,&tolua_err)
|
|
|
- )
|
|
|
- goto tolua_lerror;
|
|
|
- else
|
|
|
- {
|
|
|
- const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
|
|
|
- unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
|
|
|
-#ifndef TOLUA_RELEASE
|
|
|
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
|
|
|
-#endif
|
|
|
- {
|
|
|
- UIElement* tolua_ret = (UIElement*) self->GetChild(index);
|
|
|
- tolua_pushusertype(tolua_S,(void*)tolua_ret, tolua_ret ? tolua_ret->GetTypeName().CString() : "UIElement");
|
|
|
- }
|
|
|
- }
|
|
|
- return 1;
|
|
|
-tolua_lerror:
|
|
|
- return tolua_UILuaAPI_UIElement_GetChild00(tolua_S);
|
|
|
-}
|
|
|
-
|
|
|
-// Disable generated GetParent function */
|
|
|
-#define TOLUA_DISABLE_tolua_UILuaAPI_UIElement_GetParent00
|
|
|
-
|
|
|
-static int tolua_UILuaAPI_UIElement_GetParent00(lua_State* tolua_S)
|
|
|
-{
|
|
|
-#ifndef TOLUA_RELEASE
|
|
|
- tolua_Error tolua_err;
|
|
|
- if (
|
|
|
- !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
|
|
|
- !tolua_isnoobj(tolua_S,2,&tolua_err)
|
|
|
- )
|
|
|
- goto tolua_lerror;
|
|
|
- else
|
|
|
-#endif
|
|
|
- {
|
|
|
- const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
|
|
|
-#ifndef TOLUA_RELEASE
|
|
|
- if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetParent'", NULL);
|
|
|
-#endif
|
|
|
- {
|
|
|
- UIElement* tolua_ret = (UIElement*) self->GetParent();
|
|
|
- tolua_pushusertype(tolua_S,(void*)tolua_ret, tolua_ret ? tolua_ret->GetTypeName().CString() : "UIElement");
|
|
|
- }
|
|
|
- }
|
|
|
- return 1;
|
|
|
-#ifndef TOLUA_RELEASE
|
|
|
- tolua_lerror:
|
|
|
- tolua_error(tolua_S,"#ferror in function 'GetParent'.",&tolua_err);
|
|
|
- return 0;
|
|
|
-#endif
|
|
|
-}
|
|
|
-
|
|
|
#define GetStyle GetAppliedStyle
|
|
|
#define SetColorAttr SetColor
|
|
|
$}
|