Imported Upstream version 1.7.1
[platform/upstream/edje.git] / src / lib / edje_lua_script_only.c
1 #include "edje_private.h"
2
3 Eina_Bool
4 _edje_lua_script_only(Edje *ed)
5 {
6    if ((ed->collection) && (ed->collection->lua_script_only))
7       return EINA_TRUE;
8    return EINA_FALSE;
9 }
10
11 void
12 _edje_lua_script_only_init(Edje *ed)
13 {
14    if (ed->collection)
15       _edje_lua2_script_init(ed);
16 }
17
18 void
19 _edje_lua_script_only_shutdown(Edje *ed)
20 {
21    if (ed->collection && ed->L)
22       _edje_lua2_script_func_shutdown(ed);
23 }
24
25 void
26 _edje_lua_script_only_show(Edje * ed)
27 {
28    if (ed->collection && ed->L)
29       _edje_lua2_script_func_show(ed);
30 }
31
32 void
33 _edje_lua_script_only_hide(Edje * ed)
34 {
35    if (ed->collection && ed->L)
36       _edje_lua2_script_func_hide(ed);
37 }
38
39 void
40 _edje_lua_script_only_move(Edje * ed)
41 {
42    if (ed->collection && ed->L)
43       _edje_lua2_script_func_move(ed);
44 }
45
46 void
47 _edje_lua_script_only_resize(Edje * ed)
48 {
49    if (ed->collection && ed->L)
50       _edje_lua2_script_func_resize(ed);
51 }
52
53 void
54 _edje_lua_script_only_message(Edje * ed, Edje_Message * em)
55 {
56    if (ed->collection && ed->L)
57       _edje_lua2_script_func_message(ed, em);
58 }
59