1 /*
2  *  buttons.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 _BUTTONS_H
18 #define _BUTTONS_H
19 
20 #ifndef X_DISPLAY_MISSING
21 
22 typedef enum grayscale_e {BLACK, NGRAY, LGRAY, DGRAY, RED,
23 			  THICKBLACK, NO_GC} grayscale_t;
24 typedef enum buttons_e {STOP_BUTTON, PLAY_BUTTON, PAUSE_BUTTON, RECORD_BUTTON,
25 			QUIT_BUTTON, NO_BUTTON} buttons_t;
26 
27 typedef struct buttoninfo
28 {
29    Window   window;
30    bool_t   pressed [NO_BUTTON];
31    GC	    gc [NO_GC];
32    unsigned width;
33    unsigned height;
34    unsigned progbar_height;
35    bool_t   record_is_rewind;
36 } binfo_t;
37 
38 void
39 check_events (x11_info_t *xinfo, binfo_t *binfo, unsigned n,
40 	      unsigned n_frames);
41 void
42 wait_for_input (x11_info_t *xinfo);
43 binfo_t *
44 init_buttons (x11_info_t *xinfo, unsigned n, unsigned n_frames,
45 	      unsigned buttons_height, unsigned progbar_height);
46 
47 #endif /* not X_DISPLAY_MISSING */
48 
49 #endif /* not _BUTTONS_H */
50 
51