home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / c / intuitionpp / ipp / gfxwindow.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-01  |  1.4 KB  |  56 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. ///////////////////////////////////////////////////////////////////////////////
  3. ///////////////////                                        ////////////////////
  4. ///////////////////           file : gfxwindow.cc          ////////////////////
  5. ///////////////////                                        ////////////////////
  6. ///////////////////////////////////////////////////////////////////////////////
  7. ///////////////////////////////////////////////////////////////////////////////
  8.  
  9.  
  10. #include <intuition/intuitionbase.h>
  11. #include <graphics/gfxbase.h>
  12. #include <graphics/gfxmacros.h>
  13. #include <clib/graphics_protos.h>
  14. #include <clib/intuition_protos.h>
  15.  
  16.  
  17. #include "gfxwindow.h"
  18.  
  19.  
  20. GfxWindow :: GfxWindow() : CWindow(),CRastPortHdl() {}
  21.  
  22.  
  23. GfxWindow :: GfxWindow(struct NewWindow *neww) : CWindow(neww),CRastPortHdl() {}
  24.  
  25.  
  26. GfxWindow :: GfxWindow(struct ExtNewWindow *neww) : CWindow(neww),CRastPortHdl() {}
  27.  
  28.  
  29. GfxWindow :: GfxWindow(struct NewWindow *neww, struct TagItem *tags) : CWindow(neww, tags),CRastPortHdl() {}
  30.  
  31.  
  32. GfxWindow :: ~GfxWindow() {}
  33.  
  34.  
  35. BOOL GfxWindow :: open()
  36. {
  37.     BOOL ok = CWindow :: open();
  38.     if (ok) ok = CRastPortHdl :: hdlon(wind->RPort);
  39.     return ok;
  40. }
  41.  
  42.  
  43. void GfxWindow :: close()
  44. {
  45.     CWindow :: close();
  46.     CRastPortHdl :: hdloff();
  47. }
  48.  
  49.  
  50. void GfxWindow :: clear()
  51. {
  52.     CRastPortHdl :: clear();
  53.     RefreshWindowFrame(wind);
  54. }
  55.  
  56.