#include <intuition/intuition.h>

#define IDCMP IDCMP_CLOSEWINDOW | IDCMP_MOUSEBUTTONS | IDCMP_GADGETUP
#define FLAGS WFLG_DRAGBAR | WFLG_DEPTHGADGET | WFLG_CLOSEGADGET
#define TITLE "Clock designer"
#define STITLE "Clock designer 1.1"
#define VER    "\0$VER: Clock designer 1.1 (5/08/99) From backclock package"
#define WIDTH 200
#define HEIGHT 200
#define PX  104
#define PY  144
#define GRID 8

#define GADHEIGHT 20
/* the buttons id
 */
#define ID_SAVE  1
#define ID_CLEAR 2
/* for the choice
 */
#define ASECONDS 0
#define AMINUTES 1
#define AHOURS   2


struct coords {
  ULONG x,                       /* postion x relatif to center of the clock */
        y ;                      /*     pos y */
  struct coords * next ;                                       /* next point */
} ;

typedef struct coords SPoint ;
