home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / OOP_Course / Examples / DragDemo_1.1 / DemoDiagram.h next >
Encoding:
Text File  |  1993-01-19  |  475 b   |  23 lines

  1. #import "MouseView.h"
  2. #import <appkit/appkit.h>  //Standard for 3.0, inefficient for 2.1.
  3.  
  4. @interface DemoDiagram:MouseView
  5.  
  6. {
  7.     float minX,maxX,minY,maxY;
  8.     List *itemList;
  9.     NXImage *bgImage;
  10.     id mousedObject;
  11.     NXPoint oldMouse;
  12.     
  13. }
  14.     
  15. - initFrame:(NXRect *)rect;
  16. - setBackground:(NXImage *)anImage;
  17. - drawSelf:(NXRect *)rect :(int)c;
  18. - addItem:item;
  19. - mouseDownAction:(NXPoint *)location;
  20. - mouseDraggedAction:(NXPoint *)newLocation;
  21. - mouseUpAction:(NXPoint *)location;
  22.  
  23. @end