Apply various patches
[apps/livebox/livebox-edje.git] / include / script_port.h
1 /*
2  * Copyright 2013  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.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_color(void *h, Evas *e, const char *id, const char *part, const char *rgba);
29 extern int script_update_text(void *h, Evas *e, const char *id, const char *part, const char *text);
30 extern int script_update_image(void *h, Evas *e, const char *id, const char *part, const char *path, const char *option);
31 extern int script_update_access(void *h, Evas *e, const char *id, const char *part, const char *text, const char *option);
32 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);
33 extern int script_update_signal(void *h, Evas *e, const char *id, const char *part, const char *signal);
34 extern int script_update_drag(void *h, Evas *e, const char *id, const char *part, double x, double y);
35 extern int script_update_size(void *handle, Evas *e, const char *id, int w, int h);
36 extern int script_update_category(void *h, Evas *e, const char *id, const char *category);
37
38 extern void *script_create(const char *file, const char *group);
39 extern int script_destroy(void *handle);
40
41 extern int script_load(void *handle, Evas *e, int w, int h);
42 extern int script_unload(void *handle, Evas *e);
43
44 /*!
45         LB_ACCESS_HIGHLIGHT             0
46         LB_ACCESS_HIGHLIGHT_NEXT        1
47         LB_ACCESS_HIGHLIGHT_PREV        2
48         LB_ACCESS_ACTIVATE              3
49         LB_ACCESS_VALUE_CHANGE          4
50         LB_ACCESS_SCROLL                5
51 */
52 extern int script_feed_event(void *h, Evas *e, int event_type, int x, int y, int down, double timestamp);
53
54 extern int script_init(void);
55 extern int script_fini(void);
56
57 extern const char *script_magic_id(void);
58
59 #ifdef __cplusplus
60 }
61 #endif
62
63 /* End of a file */