home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / program / gempp15b.zoo / src / gemto.cc < prev    next >
C/C++ Source or Header  |  1993-04-25  |  770b  |  34 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 "gemto.h"
  12.  
  13.  
  14. GEMtextobject::GEMtextobject(class GEMform& f, int RSCindex) :
  15.     GEMobject(f,RSCindex)
  16. {
  17. }
  18.  
  19. GEMtextobject::operator char*() const
  20. {
  21.     return Text();
  22. }
  23.  
  24. GEMtextobject& GEMtextobject::operator = (char* t)
  25. {
  26.     SetText(t);
  27.     return *this;
  28. }
  29.  
  30. char& GEMtextobject::operator[] (int i)
  31. {
  32.     return Text()[i];
  33. }
  34.