7ca8a4d0d32038c6fbc3e596ad1c5f11143d3990
[platform/framework/web/data-provider-master.git] / include / script_handler.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 struct script_info;
18 struct fb_info;
19
20 extern struct script_info *script_handler_create(struct inst_info *inst, const char *file, const char *group, int w, int h);
21 extern int script_handler_destroy(struct script_info *info);
22 extern struct fb_info *script_handler_fb(struct script_info *info);
23 extern void *script_handler_evas(struct script_info *info);
24 extern int script_handler_parse_desc(const char *pkgname, const char *filename, const char *descfile, int is_pd);
25 extern int script_handler_unload(struct script_info *info, int is_pd);
26 extern int script_handler_load(struct script_info *info, int is_pd);
27 extern int script_handler_is_loaded(struct script_info *info);
28
29 extern int script_init(void);
30 extern int script_fini(void);
31
32 extern int script_signal_emit(Evas *e, const char *part, const char *signal, double sx, double sy, double ex, double ey);
33 extern int script_handler_update_pointer(struct script_info *inst, double x, double y, int down);
34 extern int script_handler_resize(struct script_info *info, int w, int h);
35
36 /* End of a file */