/*
 *  buttons.h
 *
 *  Written by:		Ullrich Hafner
 *		
 *  This file is part of FIASCO (Fractal Image And Sequence COdec)
 *  Copyright (C) 1994-2000 Ullrich Hafner
 */

/*
 *  $Date: 2019/05/31 19:44:44 $
 *  $Author: ckyos9(Rachel_King) $
 *  $Revision: 1.1.1.1 $
 *  $State: Exp $
 */

#ifndef _BUTTONS_H
#define _BUTTONS_H

#ifndef X_DISPLAY_MISSING

typedef enum grayscale_e {BLACK, NGRAY, LGRAY, DGRAY, RED,
			  THICKBLACK, NO_GC} grayscale_t;
typedef enum buttons_e {STOP_BUTTON, PLAY_BUTTON, PAUSE_BUTTON, RECORD_BUTTON,
			QUIT_BUTTON, NO_BUTTON} buttons_t;

typedef struct buttoninfo
{
   Window   window;
   bool_t   pressed [NO_BUTTON];
   GC	    gc [NO_GC];
   unsigned width;
   unsigned height;
   unsigned progbar_height;
   bool_t   record_is_rewind;
} binfo_t;

void
check_events (x11_info_t *xinfo, binfo_t *binfo, unsigned n,
	      unsigned n_frames);
void
wait_for_input (x11_info_t *xinfo);
binfo_t * 
init_buttons (x11_info_t *xinfo, unsigned n, unsigned n_frames,
	      unsigned buttons_height, unsigned progbar_height);

#endif /* not X_DISPLAY_MISSING */

#endif /* not _BUTTONS_H */

