1 /* 2 * display.h 3 * 4 * Written by: Ullrich Hafner 5 * 6 * This file is part of FIASCO (Fractal Image And Sequence COdec) 7 * Copyright (C) 1994-2000 Ullrich Hafner 8 */ 9 10 /* 11 * $Date: 2000/06/14 20:51:17 $ 12 * $Author: hafner $ 13 * $Revision: 5.1 $ 14 * $State: Exp $ 15 */ 16 17 #ifndef _DISPLAY_H 18 #define _DISPLAY_H 19 20 #ifndef X_DISPLAY_MISSING 21 22 #include <X11/Xlib.h> 23 24 #include "types.h" 25 #include "image.h" 26 27 typedef struct x11_info 28 { 29 Display *display; 30 int screen; /* default screen number */ 31 Window window; 32 XImage *ximage; 33 GC gc; 34 byte_t *pixels; 35 } x11_info_t; 36 37 void 38 display_image (unsigned x0, unsigned y0, x11_info_t *xinfo); 39 void 40 close_window (x11_info_t *xinfo); 41 x11_info_t * 42 open_window (const char *titlename, const char *iconname, 43 unsigned width, unsigned height); 44 void 45 alloc_ximage (x11_info_t *xinfo, unsigned width, unsigned height); 46 47 #endif /* X_DISPLAY_MISSING */ 48 49 #endif /* not _DISPLAY_H */ 50