#ifndef __Coords__H
#define __Coords__H

#include "bool.h"

typedef int file_type;
typedef int HWind;
typedef int HIcon;
typedef int HTask;

typedef struct CRect
{
	int	x0;
	int	y0;
	int	x1;
	int	y1;
} CRect;

typedef struct CSize
{
	int	cx;
	int	cy;
} CSize;

typedef struct CPoint
{
	int	x;
	int	y;
} CPoint;

typedef struct
{
	HWind	w;
	HIcon	i;
	CPoint	pt;
} ScreenPos;

typedef enum
{
	EBut_Adjust	= 0x001,
	EBut_Menu	= 0x002,
	EBut_Select	= 0x004,
	EBut_DragAdjust	= 0x010,
	EBut_DragSelect	= 0x040,
	EBut_ClickAdjust= 0x100,
	EBut_ClickSelect= 0x400
} EMouse_Buttons;

typedef struct
{
	CPoint	pt;
	int	but;
	HWind	w;
	HIcon	i;
} Mouse;

typedef struct
{
	CRect	box;
	CSize	s;
} CWindCvt;

#endif
