home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / program / gempp15b / gemd.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-23  |  1.0 KB  |  42 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. //  This file is Copyright 1992,1993 by Warwick W. Allison.
  4. //  This file is part of the gem++ library.
  5. //  You are free to copy and modify these sources, provided you acknowledge
  6. //  the origin by retaining this notice, and adhere to the conditions
  7. //  described in the file COPYING.LIB.
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10.  
  11. #include <aesbind.h>
  12. #include "gemo.h"
  13. #include "gema.h"
  14. #include "gemd.h"
  15.  
  16. GEMdesktop::GEMdesktop(GEMactivity& in, const GEMrsc& rsc, int RSCindex) :
  17.     GEMformwindow(in,rsc,RSCindex,-1)
  18. {
  19.     int x,y,w,h;
  20.  
  21.     wind_get(0,WF_WORKXYWH,&x,&y,&w,&h);
  22.  
  23.     Obj->ob_x=x;
  24.     Obj->ob_y=y;
  25.     Obj->ob_width=w;
  26.     Obj->ob_height=h;
  27.  
  28.     form_dial(FMD_START,0,0,0,0,Obj->ob_x,Obj->ob_y,Obj->ob_width,Obj->ob_height);
  29.     wind_set(0,WF_NEWDESK,Obj,0);
  30.     form_dial(FMD_FINISH,0,0,0,0,Obj->ob_x,Obj->ob_y,Obj->ob_width,Obj->ob_height);
  31. }
  32.  
  33. GEMdesktop::~GEMdesktop()
  34. {
  35.     wind_set(0,WF_NEWDESK,0);
  36. }
  37.  
  38. bool GEMdesktop::IsOpen() const
  39. {
  40.     return TRUE;
  41. }
  42.