diff options
Diffstat (limited to 'libraries/evas/src/modules/engines/software_16_x11/evas_engine.h')
-rw-r--r-- | libraries/evas/src/modules/engines/software_16_x11/evas_engine.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/software_16_x11/evas_engine.h b/libraries/evas/src/modules/engines/software_16_x11/evas_engine.h new file mode 100644 index 0000000..066ef50 --- /dev/null +++ b/libraries/evas/src/modules/engines/software_16_x11/evas_engine.h | |||
@@ -0,0 +1,63 @@ | |||
1 | #ifndef EVAS_ENGINE_H | ||
2 | #define EVAS_ENGINE_H | ||
3 | |||
4 | #include <X11/Xlib.h> | ||
5 | #include <X11/Xutil.h> | ||
6 | #include <X11/Xatom.h> | ||
7 | #include <X11/extensions/XShm.h> | ||
8 | #include <X11/Xresource.h> // xres - dpi | ||
9 | #include <sys/ipc.h> | ||
10 | #include <sys/shm.h> | ||
11 | #include "evas_common.h" | ||
12 | #include "evas_common_soft16.h" | ||
13 | |||
14 | extern int _evas_engine_soft16_x11_log_dom; | ||
15 | #ifdef ERR | ||
16 | # undef ERR | ||
17 | #endif | ||
18 | #define ERR(...) EINA_LOG_DOM_ERR(_evas_engine_soft16_x11_log_dom, __VA_ARGS__) | ||
19 | |||
20 | #ifdef DBG | ||
21 | # undef DBG | ||
22 | #endif | ||
23 | #define DBG(...) EINA_LOG_DOM_DBG(_evas_engine_soft16_x11_log_dom, __VA_ARGS__) | ||
24 | |||
25 | #ifdef INF | ||
26 | # undef INF | ||
27 | #endif | ||
28 | #define INF(...) EINA_LOG_DOM_INFO(_evas_engine_soft16_x11_log_dom, __VA_ARGS__) | ||
29 | |||
30 | #ifdef WRN | ||
31 | # undef WRN | ||
32 | #endif | ||
33 | #define WRN(...) EINA_LOG_DOM_WARN(_evas_engine_soft16_x11_log_dom, __VA_ARGS__) | ||
34 | |||
35 | #ifdef CRIT | ||
36 | # undef CRIT | ||
37 | #endif | ||
38 | #define CRIT(...) EINA_LOG_DOM_CRIT(_evas_engine_soft16_x11_log_dom, __VA_ARGS__) | ||
39 | |||
40 | typedef struct _X_Output_Buffer X_Output_Buffer; | ||
41 | |||
42 | struct _X_Output_Buffer | ||
43 | { | ||
44 | Soft16_Image *im; | ||
45 | Display *display; | ||
46 | XImage *xim; | ||
47 | XShmSegmentInfo *shm_info; | ||
48 | void *data; | ||
49 | }; | ||
50 | |||
51 | /****/ | ||
52 | void evas_software_16_x11_x_init (void); | ||
53 | |||
54 | int evas_software_16_x11_x_can_do_shm (Display *d); | ||
55 | X_Output_Buffer *evas_software_16_x11_x_output_buffer_new (Display *d, Visual *v, int depth, int w, int h, int try_shm, void *data); | ||
56 | void evas_software_16_x11_x_output_buffer_free (X_Output_Buffer *xob, int sync); | ||
57 | void evas_software_16_x11_x_output_buffer_paste (X_Output_Buffer *xob, Drawable d, GC gc, int x, int y, int w, int h, int sync); | ||
58 | DATA8 *evas_software_16_x11_x_output_buffer_data (X_Output_Buffer *xob, int *bytes_per_line_ret); | ||
59 | int evas_software_16_x11_x_output_buffer_depth (X_Output_Buffer *xob); | ||
60 | int evas_software_16_x11_x_output_buffer_byte_order (X_Output_Buffer *xob); | ||
61 | int evas_software_16_x11_x_output_buffer_bit_order (X_Output_Buffer *xob); | ||
62 | |||
63 | #endif | ||