#pragma once

#ifdef __WATCOMC__
#pragma library("vgui.lib")
#endif

#ifdef __cplusplus
extern "C" {
#endif

//---------------------------------------------------------------------------//

typedef struct s_VGUILBOX VGUILISTBOX;
typedef struct s_VGUILBITEM VGUILBITEM;
typedef enum
{
	VGUILBOX_INACTIVE = 1 << 0,
	VGUILBOX_APA = 1 << 1,
	VGUILBOX_BPA = 1 << 2,
	VGUILBOX_CPA = 1 << 3
} VGUILBOXFLAGS;

struct s_VGUILBITEM
{
	char string[256];
	VGUILBITEM *next,*prev;
};
struct s_VGUILBOX
{
	VGUILBOXFLAGS flags;
	int num;
	VGUILBITEM *first,*last,*top,*bottom,*current;
};

// int vgui_isbutton (int x, int y);
void vguilbox_draw (int x1,int y1,int x2,int y2, char *caption,VGUILISTBOX *);
void vguilbox_highlight (int x1,int y1,int x2,int y2, char *caption,VGUILISTBOX *);
void vguilbox_select (int x1, int y1, int x2, int y2, char *,VGUILISTBOX *,int handle);
void vguilbox_init (VGUILISTBOX *lbox);
void vguilbox_clear (int handle);
void vguilbox_additem (int handle, char *str);

//---------------------------------------------------------------------------//
#ifdef __cplusplus
}
#endif

