DisplayObjectToGObject() public method

public DisplayObjectToGObject ( DisplayObject obj ) : GObject
obj DisplayObject
return GObject
Ejemplo n.º 1
0
 static public int DisplayObjectToGObject(IntPtr l)
 {
     try {
         FairyGUI.GRoot         self = (FairyGUI.GRoot)checkSelf(l);
         FairyGUI.DisplayObject a1;
         checkType(l, 2, out a1);
         var ret = self.DisplayObjectToGObject(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 2
0
 static int DisplayObjectToGObject(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GRoot         obj  = (FairyGUI.GRoot)ToLua.CheckObject(L, 1, typeof(FairyGUI.GRoot));
         FairyGUI.DisplayObject arg0 = (FairyGUI.DisplayObject)ToLua.CheckObject(L, 2, typeof(FairyGUI.DisplayObject));
         FairyGUI.GObject       o    = obj.DisplayObjectToGObject(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }