aboutsummaryrefslogblamecommitdiffstats
path: root/src/lib/ecore_evas/ecore_evas_x11.h
blob: b349b7f2ac718d141a39e201dba24acbb0133e03 (plain) (tree)
























                                                                                                
                                                      


                                                                                



                                                               





                                                       
                                                       



                                                                                                                                                                



                                                               


      
#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);
   Ecore_X_Pixmap (*pixmap_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          *(*pixmap_visual_get)(const Ecore_Evas *ee);
   unsigned long  (*pixmap_colormap_get)(const Ecore_Evas *ee);
   int            (*pixmap_depth_get)(const Ecore_Evas *ee);
};

struct _Ecore_Evas_Interface_Gl_X11 {
   Ecore_Evas_Interface base;

   Ecore_X_Window  (*window_get)(const Ecore_Evas *ee);
   Ecore_X_Pixmap  (*pixmap_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));

   void          *(*pixmap_visual_get)(const Ecore_Evas *ee);
   unsigned long  (*pixmap_colormap_get)(const Ecore_Evas *ee);
   int            (*pixmap_depth_get)(const Ecore_Evas *ee);
};

#endif