aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/GuiLua/GuiLua.h
blob: 3bd2baffcce69aaed36f7b4fc2a39eb9e97dbb67 (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
35
36
37
#ifndef _GUILUA_H_
#define _GUILUA_H_


#include "Runnr.h"
#include "winFang.h"


#define WIDTH  (300)
#define HEIGHT (300)

#define SKANG		"skang"
#define MODULEBEGIN	"moduleBegin"
#define MODULEEND	"moduleEnd"
#define THINGASM	"thingasm"


typedef struct _GuiLua
{
  lua_State	*L;
  winFang	*us;		// Our window, if it exists.
  winFang	*parent;	// Our parent window, if it exists.
  EPhysics_World *world;	// Our world, if it exists.
  int		inDel;

  Eina_Clist	node;
  void		*data;
  Evas_Smart_Cb on_del;
} GuiLua;

extern const char	*glName;

GuiLua *GuiLuaDo(int argc, char **argv, winFang *parent, EPhysics_World *world);
void GuiLuaLoad(char *module, winFang *parent, EPhysics_World *world);
void GuiLuaDel(GuiLua *gl);

#endif