Annotation of Examples/AppKit/Draw/textUndo.subproj/TextSelection.h, revision 1.1.1.1

1.1       root        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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.