check() 공개 정적인 메소드

public static check ( Lua L, int narg ) : LWF.Button
L Lua
narg int
리턴 LWF.Button
예제 #1
0
 public static int _bind_getParent(Lua.lua_State L)
 {
     if (Lua.lua_gettop(L) != 1 || Luna.get_uniqueid(L, 1) !=
         LunaTraits_LWF_Button.uniqueID)
     {
         Luna.printStack(L);
         Lua.luaL_error(L, "luna typecheck failed: LWF.Button.parent");
     }
     LWF.Button a = Luna_LWF_Button.check(L, 1);
     Luna_LWF_Movie.push(L, a.parent, false);
     return(1);
 }
예제 #2
0
    public static int addEventListener(Lua.lua_State L)
    {
        if (Lua.lua_gettop(L) != 3 ||
            Luna.get_uniqueid(L, 1) != LunaTraits_LWF_Button.uniqueID ||
            Lua.lua_isstring(L, 2) == 0 || !Lua.lua_isfunction(L, 3))
        {
            Luna.printStack(L);
            Lua.luaL_error(L, "luna typecheck failed: LWF.Button.addEventListener");
        }

        LWF.Button a = Luna_LWF_Button.check(L, 1);
        return(a.lwf.AddEventHandlerLua(null, a));
    }
예제 #3
0
 public static int _bind_getHeight(Lua.lua_State L)
 {
     if (Lua.lua_gettop(L) != 1 ||
         Luna.get_uniqueid(L, 1) != 8952431)
     {
         Luna.printStack(L); Lua.luaL_error(L, "luna typecheck failed:getHeight(LWF.Button self ...)");
     }
     LWF.Button o = Luna_LWF_Button.check(L, 1);
     try {
         float ret = getHeight(o);
         Lua.lua_pushnumber(L, ret);
     } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
     return(1);
 }
예제 #4
0
    public static int _bind_getFullName(Lua.lua_State L)
    {
        if (Lua.lua_gettop(L) != 1 ||
            Luna.get_uniqueid(L, 1) != 8952431)
        {
            Luna.printStack(L); Lua.luaL_error(L, "luna typecheck failed:getFullName(LWF.Button self)");
        }

        LWF.Button self = Luna_LWF_Button.check(L, 1);
        try {
            string ret = self.GetFullName();
            Lua.lua_pushstring(L, ret);
        } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
        return(1);
    }
예제 #5
0
    public static int _bind_clearEventListener(Lua.lua_State L)
    {
        if (Lua.lua_gettop(L) != 2 ||
            Luna.get_uniqueid(L, 1) != 8952431 ||
            Lua.lua_isstring(L, 2) == 0)
        {
            Luna.printStack(L); Lua.luaL_error(L, "luna typecheck failed:clearEventListener(LWF.Button self)");
        }

        LWF.Button self      = Luna_LWF_Button.check(L, 1);
        string     eventName = Lua.lua_tostring(L, 2).ToString();

        try {
            self.ClearEventHandler(eventName);
        } catch (Exception e) { Lua.luaL_error(L, new Lua.CharPtr(e.ToString())); }
        return(0);
    }