1 #ifndef __MAGNIFIER_SPI_IMAGE_H__
2 #define __MAGNIFIER_SPI_IMAGE_H__
6 #include <sys/socket.h>
14 #include <gdk-pixbuf/gdk-pixbuf.h>
15 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
18 typedef struct _point {
23 typedef struct xlib_colormap_struct xlib_colormap;
25 struct xlib_colormap_struct {
42 point center_position;
43 point curpos; /* Position of the magnified cursor */
45 GdkPixbuf* scaled_image;
46 Window spi_image_root_window;
50 xlib_colormap * x_cmap;
52 typedef struct _MagnifierData {
64 GtkWidget *output_window;
72 #define FOLLOW_MOUSE 3
73 #define COLOR_INVERTED 4
79 struct sockaddr_un mag_server;
80 struct sockaddr_un client_sockaddr;
83 GtkWidget *drawing_area;
85 void parse_message(char *msg, MagnifierData *data);
86 void update_image(MagnifierData *data);
87 void expose_event(GtkWidget * w, GdkEventExpose *event, gpointer data);
88 void get_root_image(Window src,GdkPixbuf *dest,int src_x, int src_y, MagnifierData *data);
89 int display_image(gpointer data);