/************************************************************************/
/*                                                                      */
/*         Code generated by FED-CASE V1.2  Code Generator              */
/*                  © Joosen Software Development                       */
/*                  All rights reserved 1993-1995                       */
/*                                                                      */
/************************************************************************/


/************************************************************************/
/*                                                                      */
/*                          Start of Includes                           */
/*                                                                      */
/************************************************************************/

#include <clib/intuition_protos.h>
#include <clib/exec_protos.h>
#include <intuition/intuitionbase.h>
#include <fcntl.h>
#include <intuition/screens.h>
#include <intuition/iobsolete.h>
#include <intuition/intuition.h>

/************************************************************************/
/*                                                                      */
/*                           End of Includes                            */
/*                                                                      */
/************************************************************************/

/************************************************************************/
/*                                                                      */
/*                    Start of source prototype file                    */
/*                                                                      */
/************************************************************************/

#include <proto/proto_windowexamp.h>

/************************************************************************/
/*                                                                      */
/*                     End of source prototype file                     */
/*                                                                      */
/************************************************************************/

/************************************************************************/
/*                                                                      */
/*                 Start of global variable declaration                 */
/*                                                                      */
/************************************************************************/

struct NewWindow windowdef;
struct IntuitionBase *IntuitionBase;
struct Window *Window;

/************************************************************************/
/*                                                                      */
/*                  End of global variable declaration                  */
/*                                                                      */
/************************************************************************/


/************************************************************************/
/* Procedure  : void V_InitWindowStructure()                            */
/* Function   :                                                         */
/* Designer   : Ron Heijmans                                            */
/* Date       : Fri Mar 10 21:17:53 1995                                */
/*                                                                      */
/* Modificat  :                                                         */
/* Handler    :                                                         */
/* Modific.   :                                                         */
/*                                                                      */
/************************************************************************/

void V_InitWindowStructure()
{

    windowdef.LeftEdge = 5 ;
    windowdef.TopEdge = 10 ;
    windowdef.Width = 225 ;
    windowdef.Height = 100 ;
    windowdef.DetailPen = 0 ;
    windowdef.BlockPen = 1 ;
    windowdef.IDCMPFlags = NEWSIZE | MOUSEBUTTONS ;        /* NEWSIZE: */
                                                           /* MOUSEBUTTONS: */
    windowdef.Type = WBENCHSCREEN ;
    windowdef.BitMap = NULL ;
    windowdef.Screen = NULL ;
    windowdef.MaxWidth = 300 ;
    windowdef.Title = "Hello World" ;
    windowdef.Flags = WINDOWDRAG | WINDOWSIZING | WINDOWCLOSE ;  /* WINDOWDRAG: */
                                                           /* WINDOWSIZING: */
                                                           /* WINDOWCLOSE: */
    windowdef.MinWidth = 10 ;
    windowdef.MinHeight = 10 ;
    windowdef.MaxHeight = 200 ;
    windowdef.IDCMPFlags = CLOSEWINDOW ;                   /* CLOSEWINDOW: */
}                                                          /* end of V_InitWindowStructure */

/************************************************************************/
/* Procedure  : void main()                                             */
/* Function   :                                                         */
/* Designer   : Ron Heijmans                                            */
/* Date       : Fri Mar 10 21:18:41 1995                                */
/*                                                                      */
/* Modificat  :                                                         */
/* Handler    :                                                         */
/* Modific.   :                                                         */
/*                                                                      */
/************************************************************************/

void main()
{

    IntuitionBase = (struct IntuitionBase*)OpenLibrary( "intuition.library", (unsigned long)0 ) ;  /* OpenLibrary: gain access to a library */
    V_InitWindowStructure( );
    Window = OpenWindow( &windowdef ) ;                    /* OpenWindow: Open an Intuition window. */
    WaitPort( Window->UserPort );                          /* WaitPort: wait for a given port to be non-empty */
    CloseWindow( Window ) ;                                /* CloseWindow: Close an Intuition window. */
    CloseLibrary((struct Library*) IntuitionBase );
}                                                          /* end of V_main */
