2 * Copyright 2013 Samsung Electronics Co., Ltd
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
8 * http://floralicense.org/license/
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.
22 * Implement below functions
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);
35 extern void *script_create(void *buffer_handle, const char *file, const char *group);
36 extern int script_destroy(void *handle);
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);
43 LB_ACCESS_HIGHLIGHT_NEXT 1
44 LB_ACCESS_HIGHLIGHT_PREV 2
46 LB_ACCESS_VALUE_CHANGE 4
49 extern int script_feed_event(void *handle, int event_type, int x, int y, int down, unsigned int keycode, double timestamp);
51 extern int script_init(double scale, int premultiplied);
52 extern int script_fini(void);
54 extern const char *script_magic_id(void);