LPCGame
A Simple 2d Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Pages
luacrectf.h
1
#ifndef LUACRECTF_H
2
#define LUACRECTF_H
3
4
#include <string>
5
#include <lua.hpp>
6
#include "luacudata.h"
7
#include "core/rect.h"
8
10
14
namespace
LuaC
{
16
const
std::string
rectfMeta
=
"LPC.Rectf"
;
18
const
std::string
rectfClass
=
"Rectf"
;
20
template
<>
21
const
std::string
UdataLib<Rectf>::mMetaTable
=
rectfMeta
;
25
class
RectfLib
:
public
UdataLib
<Rectf> {
26
public
:
28
static
int
luaopen_rectf
(lua_State *l);
29
30
private
:
32
static
const
luaL_reg luaRectfLib[];
34
static
int
newRectf(lua_State *l);
37
static
int
getPos(lua_State *l);
38
static
int
getX(lua_State *l);
39
static
int
getY(lua_State *l);
40
static
int
getW(lua_State *l);
41
static
int
getH(lua_State *l);
43
static
int
newIndex(lua_State *l);
45
//set all values of the rect
46
static
int
setBox(lua_State *l);
47
static
int
setPos(lua_State *l);
48
static
int
setX(lua_State *l);
49
static
int
setY(lua_State *l);
50
static
int
setW(lua_State *l);
51
static
int
setH(lua_State *l);
53
static
int
equality(lua_State *l);
54
static
int
toString(lua_State *l);
55
static
int
concat(lua_State *l);
62
static
void
concatWithString(lua_State *l,
int
rIdx,
int
sIdx);
63
};
64
}
65
66
#endif
Users
Will
Documents
Programs
LPCGame
src
luac
luacrectf.h
Generated on Tue Jan 29 2013 18:58:09 for LPCGame by
1.8.2