Initialize the project.
[apps/livebox/livebox-edje.git] / include / script_port.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.tizenopensource.org/license
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 /*!
22  */
23 extern int script_signal_emit(Evas *e, const char *part, const char *signal, double x, double y, double ex, double ey);
24
25 /*!
26  * Implement below functions
27  */
28 extern int script_update_text(void *h, Evas *e, const char *id, const char *part, const char *text);
29 extern int script_update_image(void *h, Evas *e, const char *id, const char *part, const char *path);
30 extern int script_update_script(void *h, Evas *e, const char *src_id, const char *target_id, const char *part, const char *path, const char *group);
31 extern int script_update_signal(void *h, Evas *e, const char *id, const char *part, const char *signal);
32 extern int script_update_drag(void *h, Evas *e, const char *id, const char *part, double x, double y);
33 extern int script_update_size(void *handle, Evas *e, const char *id, int w, int h);
34 extern int script_update_category(void *h, Evas *e, const char *id, const char *category);
35
36 extern void *script_create(const char *file, const char *group);
37 extern int script_destroy(void *handle);
38
39 extern int script_load(void *handle, Evas *e, int w, int h);
40 extern int script_unload(void *handle, Evas *e);
41
42 extern int script_init(void);
43 extern int script_fini(void);
44
45 extern const char *script_magic_id(void);
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 /* End of a file */