LRaspi  2022.1
A Lua Player for Rasberry Pi
lcolour.h
Go to the documentation of this file.
1 /*
2  * lcolour.h - NEKERAFA - 7th january 2022
3  * Defines colour module
4  *
5  * Under MIT License
6  * Copyright (c) 2019 - Rafael Alcalde Azpiazu (NEKERAFA)
7  */
8 
9 #ifndef LRASPI_COLOUR_H
10 #define LRASPI_COLOUR_H
11 
12 #include "lua.h"
13 #include "lraspi.h"
14 
27 
34 void lraspi_pushcolour(lua_State* L, lraspi_Colour* colour);
35 
43 lua_Colour lraspi_checkcolour(lua_State* L, int narg);
44 
53 lua_Colour lraspi_optcolour(lua_State* L, int arg, lua_Colour d);
54 
59 int luaopen_colour(lua_State* L);
60 
61 #endif // LRASPI_COLOUR_H
62 
struct lraspi_Colour lraspi_Colour
Definition: lraspi.h:77
void lraspi_pushcolour(lua_State *L, lraspi_Colour *colour)
Pushes a colour object onto the stack.
lraspi_Colour ** lua_Colour
Definition: lcolour.h:26
lua_Colour lraspi_checkcolour(lua_State *L, int narg)
Checks whether the function argument narg is a colour object.
lua_Colour lraspi_optcolour(lua_State *L, int arg, lua_Colour d)
If the function argument arg is a colour object, return this colour. If the argument is absent or is ...