#pragma once

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

#ifdef __cplusplus
extern "C" {
#endif

//---------------------------------------------------------------------------//
#include "vgui/vguimbar.h"
#include "vgui/vguigad.h"

typedef struct s_VGUIWIN VGUIWIN;
	typedef enum
	{
		VGUINORMAL = 1
	} VGUIWINFLAGS;


#ifndef _KEYL_
	#define _KEYL_
	typedef struct s_KEYL KEYL;
	struct s_KEYL
	{
		int key,mess,p1,p2,p3;
	};
#endif

struct s_VGUIWIN
{
		int	x1,y1,x2,y2;
		int id,handle,numgadget,tabnum,tabpos,xkeynum;
		VGUIWINFLAGS flags;
		char *caption;
		void (* vgui_main)(int, int, int, int);

		VGUIMBAR *mbar;
		VGUIGADGET *gadgetlist;

		KEYL tablist[256];
		KEYL xkeylist[256];

};

/*
1:a, Karlaplan.. 3000:-  (Uth: Gunnar Andersson).

Christer Dahlberg har tipsat mig... Kompis till mig p† h”gkvarteret...

Jag jobbar vid HKV p† must...

7:e v†n, panoramaf”nster man tittar ned p† karlaplan, 36:m2  ett stort rum p† 20:m2,  hall och kl„dkammare...

3750:- -+-+-+-
*/

//int vguiwin_register (VGUIWIN *);
int vguiwin_update (VGUIWIN *);
void vguiwin_printfxy (int,int,char *,...);
void vguiwin_printfxyc (int,int,int,char *,...);
void vguiwin_clearUA (void);
void vguiwin_bar (int x1, int y1, int x2, int y2,int c);
int vguiwin_mbarselect (int, int);
void vguiwin_mbarpulldown (int);
void vguiwin_resize (VGUIWIN *, int, int);
void vguiwin_setup (VGUIWIN *);
void vguiwin_inactivate (VGUIWIN *);



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













