lua/wrappers/gfx/lua_font.cpp
/**
	 * Sets the tab width of the font.
	 *
	 * @param number tab_width The tab_width to set.
	 * @returns am.font This
	 */
Sets the tab width of the font.
@param number tab_width The tab_width to set.
Sets the tab width of the font . @param number tab_width The tab_width to set .
int Font_tab_width(lua_State *lua)
	{
		Font *font = castUData<Font>(lua, 1);
		if (font)
		{
			if (lua_gettop(lua) == 1)
			{
				lua_pushnumber(lua, font->getTabWidth());
				return 1;
			}
			else if (lua_isnum(lua, 2))
			{
				font->setTabWidth(lua_tonumber(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "tab_width", "number tab_width");
		}
		return LuaState::expectedContext(lua, "tab_width", "am.font");
	}
int Font_tab_width ( lua_State * lua ) { Font * font = castUData < Font > ( lua , 1 ) ; if ( font ) { if ( lua_gettop ( lua ) == 1 ) { lua_pushnumber ( lua , font -> getTabWidth ( ) ) ; return 1 ; } else if ( lua_isnum ( lua , 2 ) ) { font -> setTabWidth ( lua_tonumber ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets the tab width of the font.
Sets the tab width of the font .