/******************************************************************************/
/***                                                                        ***/
/***  SPexample.h                                                           ***/
/***                                                                        ***/
/***  Include for use with !Example, in the "Software Protection Scheme".   ***/
/***                                                                        ***/
/***  Contains general definitions used for the standard part of the        ***/
/***  application.                                                          ***/
/***                                                                        ***/
/***                                                                        ***/
/***                                                                        ***/
/***  Written by N.Critchell, Acorn Computers            18th October 1991  ***/
/***                                                                        ***/
/******************************************************************************/

#include "event.h"

typedef struct  {
                int             x_point;
                int             y_point;
                } apex;

typedef struct  {
                apex            apex1;
                apex            apex2;
                apex            apex3;
                int             colour;
                } triangle;



void initialise_resources(void);
BOOL initialise_app(int);
void icon_selected_event(wimp_i);
void icon_menu_selected_event(void *, char *);
menu make_menu_event(void *);
void main_window_event_occured(wimp_eventstr *, void *);
void display_info_dbox(void);
void calc_triangle_info(wimp_w, triangle *);
void draw_new_triangle(wimp_w);
void draw_current_triangle(wimp_w, triangle *);
void fake_a_redraw(wimp_w);


#define TRUE                    1
#define FALSE                   0





