summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas_x11.h
blob: 10d4fe8a1b26c8e0642674ee6312d5fe76312b18 (plain) (blame)
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
#ifndef ECORE_EVAS_X11_H_
# define ECORE_EVAS_X11_H_

typedef struct _Ecore_Evas_Interface_X11 Ecore_Evas_Interface_X11;
typedef struct _Ecore_Evas_Interface_Software_X11 Ecore_Evas_Interface_Software_X11;
typedef struct _Ecore_Evas_Interface_Gl_X11 Ecore_Evas_Interface_Gl_X11;

struct _Ecore_Evas_Interface_X11 {
   Ecore_Evas_Interface base;

   void           (*leader_set)(Ecore_Evas *ee, Ecore_X_Window win);
   Ecore_X_Window (*leader_get)(Ecore_Evas *ee);
   void           (*leader_default_set)(Ecore_Evas *ee);
   void           (*shape_input_rectangle_set)(Ecore_Evas *ee, int x, int y, int w, int h);
   void           (*shape_input_rectangle_add)(Ecore_Evas *ee, int x, int y, int w, int h);
   void           (*shape_input_rectangle_subtract)(Ecore_Evas *ee, int x, int y, int w, int h);
   void           (*shape_input_empty)(Ecore_Evas *ee);
   void           (*shape_input_reset)(Ecore_Evas *ee);
   void           (*shape_input_apply)(Ecore_Evas *ee);
};

struct _Ecore_Evas_Interface_Software_X11 {
   Ecore_Evas_Interface base;

   Ecore_X_Window (*window_get)(const Ecore_Evas *ee);
   void           (*resize_set)(Ecore_Evas *ee, Eina_Bool on);
   Eina_Bool      (*resize_get)(const Ecore_Evas *ee);
   void           (*extra_event_window_add)(Ecore_Evas *ee, Ecore_X_Window win);
};

struct _Ecore_Evas_Interface_Gl_X11 {
   Ecore_Evas_Interface base;

   Ecore_X_Window  (*window_get)(const Ecore_Evas *ee);
   void            (*resize_set)(Ecore_Evas *ee, Eina_Bool on);
   Eina_Bool       (*resize_get)(const Ecore_Evas *ee);
   void            (*extra_event_window_add)(Ecore_Evas *ee, Ecore_X_Window win);
   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));
};

#endif