home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.bin / SourceCode / Palettes / TTools / TToolsPalette / Ranker.subproj / Ranker.h < prev    next >
Encoding:
Text File  |  1993-11-09  |  646 b   |  26 lines

  1. /* Ranker.h
  2.  * Written By:  Thomas Burkholder
  3.  *
  4.  * You may freely copy, distribute, and reuse the code in this example.
  5.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  6.  * fitness for any particular use.
  7.  */
  8.  
  9. #import <appkit/appkit.h>
  10.  
  11. // A Matrix subclass that allows control-dragging of cells
  12. @interface Ranker:Matrix
  13. {
  14.     BOOL    rankMode;  // YES means we can control-drag cells.
  15. }
  16.  
  17. - initFrame:(const NXRect *)frameRect;
  18. - setRankMode:(BOOL)yn;
  19. - (BOOL)rankMode;
  20. - mouseDown:(NXEvent *)theEvent;
  21. - drawSelf:(const NXRect *)rects :(int)rectCount;
  22. - read:(NXTypedStream *)stream;
  23. - write:(NXTypedStream *)stream;
  24.  
  25. @end
  26.