home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextDeveloper / Examples / AppKit / Draw / Group.h < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.8 KB  |  70 lines

  1. @interface Group : Graphic
  2. {
  3.     NXImage *cache;    /* an NXImage used to cache the group */
  4.     List *components;    /* the Graphics in the group */
  5.     NXRect lastRect;    /* the last rectangle the group was drawn in */
  6.     BOOL dontCache;    /* whether we can cache this group */
  7.     BOOL hasTextGraphic;/* whether a TextGraphic is included in the group */
  8. }
  9.  
  10. /* Creation methods */
  11.  
  12. - initList:(List *)list;
  13. - free;
  14.  
  15. /* Public methods */
  16.  
  17. - transferSubGraphicsTo:(List *)list at:(int)position;
  18. - (List *)subGraphics;
  19.  
  20. /* Group must override all the setting routines to forward to components */
  21.  
  22. - makeGraphicsPerform:(SEL)aSelector with:(const void *)anArgument;
  23.  
  24. - changeFont:sender;
  25. - (Font *)font;
  26. - setLineWidth:(const float *)value;
  27. - setGray:(const float *)value;
  28. - setFill:(int)mode;
  29. - setFillColor:(NXColor *)aColor;
  30. - setLineColor:(NXColor *)aColor;
  31. - setLineCap:(int)capValue;
  32. - setLineArrow:(int)arrowValue;
  33. - setLineJoin:(int)joinValue;
  34.  
  35. /* Link methods */
  36.  
  37. - reviveLink:(NXDataLinkManager *)linkManager;
  38. - (Graphic *)graphicLinkedBy:(NXDataLink *)aLink;
  39.  
  40. - resetIdentifier;
  41. - writeIdentifierTo:(char *)buffer;
  42. - (int)graphicCount;
  43. - (Graphic *)graphicIdentifiedBy:(int)anIdentifier;
  44. - readLinkFromPasteboard:(Pasteboard *)pboard usingManager:(NXDataLinkManager *)linkManager useNewIdentifier:(BOOL)useNewIdentifier;
  45.  
  46. /* Notification from GraphicView */
  47.  
  48. - wasRemovedFrom:(GraphicView *)sender;
  49. - wasAddedTo:(GraphicView *)sender;
  50.  
  51. /* Methods overridden from superclass */
  52.  
  53. - (Graphic *)colorAcceptorAt:(const NXPoint *)point;
  54. - (BOOL)hasTextGraphic;
  55. - setCacheable:(BOOL)flag;
  56. - (BOOL)isCacheable;
  57. - draw;
  58. - (BOOL)hit:(const NXPoint *)point;
  59.  
  60. /* Compatibility methods */
  61.  
  62. - replaceWithImage;
  63.  
  64. /* Archiving methods */
  65.  
  66. - write:(NXTypedStream *)stream;
  67. - read:(NXTypedStream *)stream;
  68.  
  69. @end
  70.