LRaspi  2022.1
A Lua Player for Rasberry Pi
lfont.h
Go to the documentation of this file.
1 /*
2  * lfont.h - NEKERAFA - 6th decembre 2021
3  * Defines font module
4  *
5  * Under MIT License
6  * Copyright (c) 2019 - Rafael Alcalde Azpiazu (NEKERAFA)
7  */
8 
9 #ifndef LRASPI_FONT_H
10 #define LRASPI_FONT_H
11 
12 #include "lua.h"
13 #include "lraspi.h"
14 
27 
34 void lraspi_pushfont(lua_State* L, lraspi_Font* font);
35 
43 lua_Font lraspi_checkfont(lua_State* L, int narg);
44 
53 lua_Font lraspi_optfont(lua_State* L, int arg, lua_Font d);
54 
59 int luaopen_font(lua_State* L);
60 
61 #endif // LRASPI_FONT_H
struct lraspi_Font lraspi_Font
Definition: lraspi.h:462
void lraspi_pushfont(lua_State *L, lraspi_Font *font)
Pushes a font object onto the stack.
lraspi_Font ** lua_Font
Definition: lfont.h:26
lua_Font lraspi_checkfont(lua_State *L, int narg)
Checks whether the function argument narg is a font object.
lua_Font lraspi_optfont(lua_State *L, int arg, lua_Font d)
If the function argument arg is a font object, return this font. If this argument is absent or is nil...