summaryrefslogtreecommitdiff
path: root/src/cat/LuaLabel.h
blob: 7e1f80893823ec3f96cd5d0f4f4e4628c0f52b35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once

extern "C" {
	#include "lua.h"
	#include "lauxlib.h"
	#include "lualib.h"
}

#include "LuaLuna.h"

namespace ui
{
	class Label;
}

class LuaScriptInterface;

class LuaLabel
{
	ui::Label * label;
	lua_State * l;
	int text(lua_State * l);
	int position(lua_State * l);
	int size(lua_State * l);
public:
	LuaScriptInterface * ci;
	int UserData;
	static const char className[];
	static Luna<LuaLabel>::RegType methods[];

	ui::Label * GetComponent() { return label; }
	LuaLabel(lua_State * l);
	~LuaLabel();
};