windowlib_h

/*
**	Copyright 1994, Universities Research Association.  All rights reserved.
*/
/******************************************************************************/
/* windowlib.h
**  
**	prototypes and defined constants for argument values for
**	ul_windowlib library routines
**
*/
/******************************************************************************/

#ifndef WINDOWLIB_DEFINED			/* do this only once */
#define	WINDOWLIB_DEFINED
#include "cbslib.h"

/******************************************************************************/
/* 
**	macros
*/
/******************************************************************************/

/******************************************************************************/
/* 
**	defined constants for argument values and structure definitions
*/
/******************************************************************************/

#define	WINDOW_ANY_INTERRUPT	1			/* respond to any user interrupt */
#define	WINDOW_OUTSIDE_INTERRUPT	2		/* respond to any user interrupt outside of the requested window */

/******************************************************************************/
/* 
**	data structures
*/
/******************************************************************************/


/******************************************************************************/
/*
**	function prototypes
*/
/******************************************************************************/
extern "C" {
int window_create_help_field_c(void *select_arg, int select_type,
			       int row, int column, int height, int width,
			       void *help_arg_1, void *help_arg_2,
			       int help_type, int *help_id,
			       char * handle = NULL);
int window_delete_all_help_c(short window_id);
int window_delete_help_field_c(int help_id);
int window__find_delete_c(short window_id);
int window__find_init_c(short window_id, int command_row,
			int command_column,
			unsigned int options = WMNGR_OPT_SCREEN_COORDS);
int window__find_text_c(short window_id, int command = WMNGR_FIRST);
int window_give_focus(void);
int window_has_focus(void);
int window_progress_create_c(short *window_id, char const *title, int total,
			     int row, int col, int width, int border_color,
			     int title_color, int fore_color, int back_color);
int window_progress_delete_c(short window_id);
void window_progress_value_c(short window_id, int new_val);
int window_screen_copy_init_c(int last_column);
void window_wait_for_focus(void);
int window_wait_for_user_c(short window_id, int wait_type, int cursor_position);
}

/******************************************************************************/
/*
**	equivalent name definitions
*/
/******************************************************************************/

#define	WINDOW_CREATE_HELP_FIELD_C	window_create_help_field_c
#define	WINDOW_DELETE_ALL_HELP_C	window_delete_all_help_c
#define	WINDOW_DELETE_HELP_FIELD_C	window_delete_help_field_c
#define	WINDOW__FIND_DELETE_C		window__find_delete_c
#define	WINDOW__FIND_INIT_C		window__find_init_c
#define	WINDOW__FIND_TEXT_C		window__find_text_c
#define	WINDOW_GIVE_FOCUS		window_give_focus
#define	WINDOW_HAS_FOCUS		window_has_focus
#define	WINDOW_PROGRESS_CREATE_C	window_progress_create_c
#define	WINDOW_PROGRESS_DELETE_C	window_progress_delete_c
#define	WINDOW_PROGRESS_VALUE_C		window_progress_value_c
#define	WINDOW_SCREEN_COPY_INIT_C	window_screen_copy_init_c
#define	WINDOW_WAIT_FOR_FOCUS		window_wait_for_focus
#define	WINDOW_WAIT_FOR_USER_C		window_wait_for_user_c

#endif