home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / Draw / textUndo.subproj / TextSelection.h < prev    next >
Text File  |  1992-02-09  |  759b  |  38 lines

  1. /*
  2.  * This class records a contiguous selection of characters from a text
  3.  * object.
  4.  */
  5.  
  6. @interface TextSelection : Object
  7. {
  8.     NXRect frame;        /* frame when created */
  9.     int start;            /* first position in selection */
  10.     int end;            /* last position in selection */
  11.     NXStream *selectionChars;    /* RTF stream of selection */
  12.     UndoText *text;        /* the text object in question */
  13.     int clickCount;        /* saved from Text object */
  14.     BOOL allText;        /* YES if we're saving the whole text object */
  15. }
  16.  
  17. /* Creation methods */
  18.  
  19. - initText:aView;
  20. - initText:aView start:(int)aPos end:(int)anotherPos;
  21.  
  22. /* Free method */
  23.  
  24. - free;
  25.  
  26. /* Access methods */
  27.  
  28. - (int)clickCount;
  29. - setClickCount:(int)value;
  30.  
  31. /* Public methods */
  32.  
  33. - capture;
  34. - install;
  35. - remove;
  36.  
  37. @end
  38.