home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / SourceCode / Palettes / PSAction / PSActionView.m < prev    next >
Encoding:
Text File  |  1994-01-03  |  390 b   |  26 lines

  1. #import <appkit/appkit.h>
  2.  
  3. #import "PSActionView.h"
  4.  
  5. @implementation PSActionView
  6.  
  7. - initFrame:(NXRect *) frameRect
  8. {
  9.     [super initFrame:frameRect];
  10.  
  11.     image = [NXImage findImageNamed:"PSActionPalette"];
  12.  
  13.     return self;
  14. }
  15.  
  16. - drawSelf:(const NXRect *) rects :(int) rectCount
  17. {
  18.     NXPoint origin = {0.0, 0.0};
  19.  
  20.      if (image != nil) [image composite:NX_COPY toPoint:&origin];
  21.  
  22.     return self;
  23. }
  24.  
  25. @end
  26.