Initialize Tizen 2.3
[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  * Implement below functions
23  */
24 extern int script_update_color(void *handle, const char *id, const char *part, const char *rgba);
25 extern int script_update_text(void *handle, const char *id, const char *part, const char *text);
26 extern int script_update_image(void *handle, const char *id, const char *part, const char *path, const char *option);
27 extern int script_update_access(void *handle, const char *id, const char *part, const char *text, const char *option);
28 extern int script_operate_access(void *handle, const char *id, const char *part, const char *operation, const char *option);
29 extern int script_update_script(void *handle, const char *src_id, const char *target_id, const char *part, const char *path, const char *group);
30 extern int script_update_signal(void *handle, const char *id, const char *part, const char *signal);
31 extern int script_update_drag(void *handle, const char *id, const char *part, double x, double y);
32 extern int script_update_size(void *handle, const char *id, int w, int h);
33 extern int script_update_category(void *handle, const char *id, const char *category);
34
35 extern void *script_create(void *buffer_handle, const char *file, const char *group);
36 extern int script_destroy(void *handle);
37
38 extern int script_load(void *handle, int (*render_pre)(void *buffer_handle, void *data), int (*render_post)(void *render_handle, void *data), void *data);
39 extern int script_unload(void *handle);
40
41 /*!
42         LB_ACCESS_HIGHLIGHT             0
43         LB_ACCESS_HIGHLIGHT_NEXT        1
44         LB_ACCESS_HIGHLIGHT_PREV        2
45         LB_ACCESS_ACTIVATE              3
46         LB_ACCESS_VALUE_CHANGE          4
47         LB_ACCESS_SCROLL                5
48 */
49 extern int script_feed_event(void *handle, int event_type, int x, int y, int down, unsigned int keycode, double timestamp);
50
51 extern int script_init(double scale, int premultiplied);
52 extern int script_fini(void);
53
54 extern const char *script_magic_id(void);
55
56 #ifdef __cplusplus
57 }
58 #endif
59
60 /* End of a file */