summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas_x11.h
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-11 21:11:44 +0100
committerCedric BAIL <cedric.bail@samsung.com>2013-03-12 15:58:43 +0900
commit32661a5ac456a4de47fb812a9ea22b4efa2c9edc (patch)
treef1ddfaefebd4887a070cdc454f918480f7b3c385 /src/lib/ecore_evas/ecore_evas_x11.h
parent1f95cbdc7b924ab5100dd399afbbae0a1e55d109 (diff)
ecore_evas: re-order inclusion of header to fix compilation on Windows.
It is a very tricky things to get header order right on windows. Having that order only in .c files simplify the work a lot. So let's try to do it with Ecore_Evas after it rewrite and split into modules.
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas_x11.h')
-rw-r--r--src/lib/ecore_evas/ecore_evas_x11.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_x11.h b/src/lib/ecore_evas/ecore_evas_x11.h
new file mode 100644
index 0000000000..10d4fe8a1b
--- /dev/null
+++ b/src/lib/ecore_evas/ecore_evas_x11.h
@@ -0,0 +1,41 @@
1#ifndef ECORE_EVAS_X11_H_
2# define ECORE_EVAS_X11_H_
3
4typedef struct _Ecore_Evas_Interface_X11 Ecore_Evas_Interface_X11;
5typedef struct _Ecore_Evas_Interface_Software_X11 Ecore_Evas_Interface_Software_X11;
6typedef struct _Ecore_Evas_Interface_Gl_X11 Ecore_Evas_Interface_Gl_X11;
7
8struct _Ecore_Evas_Interface_X11 {
9 Ecore_Evas_Interface base;
10
11 void (*leader_set)(Ecore_Evas *ee, Ecore_X_Window win);
12 Ecore_X_Window (*leader_get)(Ecore_Evas *ee);
13 void (*leader_default_set)(Ecore_Evas *ee);
14 void (*shape_input_rectangle_set)(Ecore_Evas *ee, int x, int y, int w, int h);
15 void (*shape_input_rectangle_add)(Ecore_Evas *ee, int x, int y, int w, int h);
16 void (*shape_input_rectangle_subtract)(Ecore_Evas *ee, int x, int y, int w, int h);
17 void (*shape_input_empty)(Ecore_Evas *ee);
18 void (*shape_input_reset)(Ecore_Evas *ee);
19 void (*shape_input_apply)(Ecore_Evas *ee);
20};
21
22struct _Ecore_Evas_Interface_Software_X11 {
23 Ecore_Evas_Interface base;
24
25 Ecore_X_Window (*window_get)(const Ecore_Evas *ee);
26 void (*resize_set)(Ecore_Evas *ee, Eina_Bool on);
27 Eina_Bool (*resize_get)(const Ecore_Evas *ee);
28 void (*extra_event_window_add)(Ecore_Evas *ee, Ecore_X_Window win);
29};
30
31struct _Ecore_Evas_Interface_Gl_X11 {
32 Ecore_Evas_Interface base;
33
34 Ecore_X_Window (*window_get)(const Ecore_Evas *ee);
35 void (*resize_set)(Ecore_Evas *ee, Eina_Bool on);
36 Eina_Bool (*resize_get)(const Ecore_Evas *ee);
37 void (*extra_event_window_add)(Ecore_Evas *ee, Ecore_X_Window win);
38 void (*pre_post_swap_callback_set)(const Ecore_Evas *ee, void *data, void (*pre_cb) (void *data, Evas *e), void (*post_cb) (void *data, Evas *e));
39};
40
41#endif