summaryrefslogtreecommitdiff
path: root/include/script_port.h
blob: b5e821a53f3ef40f3fc90c17695ebe93e8b309c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 * Copyright 2013  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://floralicense.org/license/
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifdef __cplusplus
extern "C" {
#endif

/*!
 */
extern int script_signal_emit(Evas *e, const char *part, const char *signal, double x, double y, double ex, double ey);

/*!
 * Implement below functions
 */
extern int script_update_color(void *h, Evas *e, const char *id, const char *part, const char *rgba);
extern int script_update_text(void *h, Evas *e, const char *id, const char *part, const char *text);
extern int script_update_image(void *h, Evas *e, const char *id, const char *part, const char *path, const char *option);
extern int script_update_access(void *h, Evas *e, const char *id, const char *part, const char *text, const char *option);
extern int script_operate_access(void *_h, Evas *e, const char *id, const char *part, const char *operation, const char *option);
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);
extern int script_update_signal(void *h, Evas *e, const char *id, const char *part, const char *signal);
extern int script_update_drag(void *h, Evas *e, const char *id, const char *part, double x, double y);
extern int script_update_size(void *handle, Evas *e, const char *id, int w, int h);
extern int script_update_category(void *h, Evas *e, const char *id, const char *category);

extern void *script_create(const char *file, const char *group);
extern int script_destroy(void *handle);

extern int script_load(void *handle, Evas *e, int w, int h);
extern int script_unload(void *handle, Evas *e);

/*!
	LB_ACCESS_HIGHLIGHT		0
	LB_ACCESS_HIGHLIGHT_NEXT	1
	LB_ACCESS_HIGHLIGHT_PREV	2
	LB_ACCESS_ACTIVATE		3
	LB_ACCESS_VALUE_CHANGE		4
	LB_ACCESS_SCROLL		5
*/
extern int script_feed_event(void *h, Evas *e, int event_type, int x, int y, int down, double timestamp);

extern int script_init(double scale);
extern int script_fini(void);

extern const char *script_magic_id(void);

#ifdef __cplusplus
}
#endif

/* End of a file */