Raster.h
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:1k
源码类别:

信息检索与抽取

开发平台:

Unix_Linux

  1. // Swarm library. Copyright © 2003 Swarm Development Group.
  2. //
  3. // Author: Scott Christley
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License as published by
  7. // the Free Software Foundation; either version 2 of the License, or
  8. // (at your option) any later version.
  9. //
  10. // This program is distributed in the hope that it will be useful, but
  11. // WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13. // General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  18. // USA
  19. // 
  20. // The Swarm Development Group can be reached via our website at:
  21. // http://www.swarm.org/
  22. #include <AppKit/AppKit.h>
  23. @interface Raster : NSView
  24. {
  25.   NSImage *image;
  26.   NSBitmapImageRep *imageRep;
  27.   NSMutableArray *displayList;
  28.   NSColor *backgroundColor;
  29.   NSPoint rasterOrigin;
  30.   NSSize pointSize;
  31. }
  32. - initWithFrame:(NSRect)aRect pointSize:(NSSize)aSize;
  33. - (void)setRasterOrigin:(NSPoint)aPoint;
  34. - (void)setPointSize:(NSSize)aSize;
  35. - (void)addDisplay: aDisplay;
  36. - (void)removeDisplay: aDisplay;
  37. - (NSImage *)image;
  38. - (void)drawRect:(NSRect)aRect;
  39. @end