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

  1. ///////////////////////////////////////////////////////////////////////////////
  2. ///////////////////////////////////////////////////////////////////////////////
  3. ///////////////////                                        ////////////////////
  4. ///////////////////           file : gscreen.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 "gscreen.h"
  18.  
  19.  
  20. GScreen :: GScreen() : CScreen(),CRastPortHdl() {}
  21.  
  22.  
  23. GScreen :: GScreen(struct NewScreen *neww) : CScreen(neww),CRastPortHdl() {}
  24.  
  25.  
  26. GScreen :: GScreen(struct ExtNewScreen *neww) : CScreen(neww),CRastPortHdl() {}
  27.  
  28.  
  29. GScreen :: GScreen(struct NewScreen *neww, struct TagItem *tags) : CScreen(neww, tags),CRastPortHdl() {}
  30.  
  31.  
  32. GScreen :: ~GScreen() {}
  33.  
  34.  
  35. BOOL GScreen :: open()
  36. {
  37.     if (isopen()) return TRUE;
  38.     scr=(struct Screen *)OpenScreenTagList((struct NewScreen *)newscr, newscr->Extension);
  39.     if (isopen())
  40.     {
  41.         CRastPortHdl :: hdlon(&scr->RastPort);
  42.         reopenwindows();
  43.         return TRUE;
  44.     }
  45.     else return FALSE;
  46. }
  47.  
  48.  
  49. void GScreen :: close()
  50. {
  51.     CScreen :: close();
  52.     CRastPortHdl :: hdloff();
  53. }
  54.  
  55.