home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / BusyBox / AnimalView.h next >
Text File  |  1990-10-26  |  670b  |  31 lines

  1.  
  2. #import <appkit/View.h>
  3.  
  4. @interface AnimalView:View
  5. {
  6.     id image;            /* NXBitmapImageRep of current picture */
  7.     NXPoint scaleFactor;    /* current scaling factor of image */
  8. }
  9.  
  10. /* INIT/FREE METHODS */
  11.  
  12. - initFrame:(NXRect *)frameRect;
  13. - free;
  14.  
  15.  
  16. /* TARGET/ACTION METHODS */
  17.  
  18. - changeAnimal:sender;        /* connect to string value control */
  19. - rotateLeft:sender;        /* connect to any control */
  20. - flipHorizontal:sender;    /* connect to any control */
  21. - flipVertical:sender;        /* connect to any control */
  22. - rotateRight:sender;        /* connect to any control */
  23.  
  24.  
  25. /* PRIVATE METHODS */
  26.  
  27. - setImageToAnimal:(const char *)imageName;
  28. - drawSelf:(NXRect *)rects :(int)rectCount;
  29.  
  30. @end
  31.