GetGlyph() public method

public GetGlyph ( char ch, GlyphInfo glyph ) : bool
ch char
glyph GlyphInfo
return bool
 static public int GetGlyph(IntPtr l)
 {
     try {
         FairyGUI.DynamicFont self = (FairyGUI.DynamicFont)checkSelf(l);
         System.Char          a1;
         checkType(l, 2, out a1);
         var ret = self.GetGlyph(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 2
0
 static int GetGlyph(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         FairyGUI.DynamicFont obj = (FairyGUI.DynamicFont)ToLua.CheckObject <FairyGUI.DynamicFont>(L, 1);
         char  arg0 = (char)LuaDLL.luaL_checknumber(L, 2);
         float arg1;
         float arg2;
         float arg3;
         bool  o = obj.GetGlyph(arg0, out arg1, out arg2, out arg3);
         LuaDLL.lua_pushboolean(L, o);
         LuaDLL.lua_pushnumber(L, arg1);
         LuaDLL.lua_pushnumber(L, arg2);
         LuaDLL.lua_pushnumber(L, arg3);
         return(4);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }