1 /* $Id: w3mimg.h,v 1.8 2003/07/13 16:19:10 ukai Exp $ */
5 #include "w3mimg/fb/fb.h"
6 #include "w3mimg/fb/fb_img.h"
10 void *pixmap; /* driver specific */
15 typedef struct _w3mimg_op {
16 void *priv; /* driver specific data */
17 int width, height; /* window width, height */
18 int offset_x, offset_y; /* offset */
22 int (*init) (struct _w3mimg_op * self);
23 int (*finish) (struct _w3mimg_op * self);
24 int (*active) (struct _w3mimg_op * self);
25 void (*set_background) (struct _w3mimg_op * self, char *background);
26 void (*sync) (struct _w3mimg_op * self);
27 void (*close) (struct _w3mimg_op * self);
29 int (*load_image) (struct _w3mimg_op * self, W3MImage * img, char *fname,
31 int (*show_image) (struct _w3mimg_op * self, W3MImage * img,
32 int sx, int sy, int sw, int sh, int x, int y);
33 void (*free_image) (struct _w3mimg_op * self, W3MImage * img);
34 int (*get_image_size) (struct _w3mimg_op * self, W3MImage * img,
35 char *fname, int *w, int *h);
36 int (*clear) (struct _w3mimg_op * self, int x, int y, int w, int h);
40 extern w3mimg_op *w3mimg_x11open();
43 extern w3mimg_op *w3mimg_fbopen();
46 extern w3mimg_op *w3mimg_open();