home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / gui / precog2_1.lha / Precognition2_1 / src / src.lha / Precognition / BuilderWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-12  |  1.5 KB  |  52 lines

  1. #ifndef BUILDERWINDOW_H
  2. #define BUILDERWINDOW_H
  3.  
  4. #include "Precognition3D.h"
  5. #include "pcgWindow.h"
  6. #include "pcgWindowClass.h"
  7. #include "GridSnap.h"
  8. /* #include "EditBox.h"  */
  9. #include "Editor.h"
  10.  
  11. typedef struct BuilderWindow
  12. {
  13.    pcgWindow      pw;
  14.    Editor         eb;
  15.    ULONG          IDCMPFlags;
  16. } BuilderWindow;
  17.  
  18. /* a builder window is just like a normal window, except that
  19.  * gadgets never get added to it.
  20.  */
  21.  
  22. struct pcgWindowClass *BuilderWindowClass( void );
  23.  
  24. void BuilderWindowClass_Init( struct pcgWindowClass *class );
  25.  
  26. void BuilderWindow_Init( BuilderWindow     *self,
  27.                          UWORD              leftedge,
  28.                          UWORD              topedge,
  29.                          UWORD              width,
  30.                          UWORD              height,
  31.                          pcg_3DPens         pens,
  32.                          char              *title,
  33.                          struct Screen     *screen,
  34.                          GridInfo          *gridinfo );
  35.  
  36.  
  37. void BuilderWindow_AddPObject( BuilderWindow  *self,
  38.                               GraphicObject  *obj );
  39.  
  40. void BuilderWindow_PObjectToFront( BuilderWindow *self,
  41.                                   GraphicObject *obj );
  42.  
  43. void BuilderWindow_PObjectToBack( BuilderWindow *self,
  44.                                  GraphicObject *obj );
  45.  
  46.    /* These 3 work for both GraphicObjects and Interactors. */
  47.  
  48. GraphicObject *BuilderWindow_FindPObject( BuilderWindow *self,
  49.                                          Point          coord );
  50.  
  51. #endif
  52.