about summary refs log tree commit diff
path: root/converter/other/fiasco/display.h
blob: 8049456a4eaaad98b2ccc5279b56ef4f76ae43ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 *  display.h
 *
 *  Written by:		Ullrich Hafner
 *		
 *  This file is part of FIASCO (Fractal Image And Sequence COdec)
 *  Copyright (C) 1994-2000 Ullrich Hafner
 */

/*
 *  $Date: 2000/06/14 20:51:17 $
 *  $Author: hafner $
 *  $Revision: 5.1 $
 *  $State: Exp $
 */

#ifndef _DISPLAY_H
#define _DISPLAY_H

#ifndef X_DISPLAY_MISSING

#include <X11/Xlib.h>

#include "types.h"
#include "image.h"

typedef struct x11_info
{
   Display *display;
   int	    screen;			/* default screen number */
   Window   window;			
   XImage  *ximage;
   GC	    gc;
   byte_t  *pixels;
} x11_info_t;

void
display_image (unsigned x0, unsigned y0, x11_info_t *xinfo);
void
close_window (x11_info_t *xinfo);
x11_info_t *
open_window (const char *titlename, const char *iconname,
	     unsigned width, unsigned height);
void
alloc_ximage (x11_info_t *xinfo, unsigned width, unsigned height);

#endif /* X_DISPLAY_MISSING */

#endif /* not _DISPLAY_H */