1 /* -*- c-basic-offset:2; tab-width:2; indent-tabs-mode:nil -*- */
2 
3 #ifndef ___UI_DISPLAY_H__
4 #define ___UI_DISPLAY_H__
5 
6 #include "../ui_display.h"
7 
8 #define CLKED 1
9 #define NLKED 2
10 #define SLKED 4
11 #define ALKED 8
12 
13 #define KeyPress 2      /* Private in wayland/ */
14 #define ButtonPress 4   /* Private in wayland/ */
15 #define ButtonRelease 5 /* Private in wayland/ */
16 #define MotionNotify 6  /* Private in wayland/ */
17 #define FocusOut 10     /* Private in wayland/ */
18 
19 /* common functions for ui_window.c */
20 
21 u_long ui_display_get_pixel(ui_display_t *disp, int x, int y);
22 
23 void ui_display_put_image(ui_display_t *disp, int x, int y, u_char *image, size_t size,
24                           int need_fb_pixel);
25 
26 void ui_display_copy_lines(ui_display_t *disp, int src_x, int src_y, int dst_x, int dst_y,
27                            u_int width, u_int height);
28 
29 /* common functions for ui_window.c (pseudo color) */
30 
31 #define ui_display_fill_with(x, y, width, height, pixel) (0)
32 
33 #define ui_cmap_get_closest_color(closest, red, green, blue) (0)
34 
35 #define ui_cmap_get_pixel_rgb(red, green, blue, pixel) (0)
36 
37 /* platform specific functions for ui_window.c */
38 
39 int ui_display_receive_next_event_singly(ui_display_t *disp);
40 
41 int ui_display_resize(ui_display_t *disp, u_int width, u_int height);
42 
43 int ui_display_move(ui_display_t *disp, int x, int y);
44 
45 void ui_display_request_text_selection(ui_display_t *disp);
46 
47 void ui_display_send_text_selection(ui_display_t *disp, XSelectionRequestEvent *ev,
48                                     u_char *sel_data, size_t sel_len);
49 
50 size_t ui_display_get_utf8(u_char *utf8, KeySym ksym);
51 
52 void ui_display_set_title(ui_display_t *disp, const u_char *name);
53 
54 void ui_display_set_maximized(ui_display_t *disp, int flag);
55 
56 #endif
57