home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / Draw / Group.h < prev    next >
Text File  |  1992-07-20  |  2KB  |  68 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.  
  45. /* Notification from GraphicView */
  46.  
  47. - wasRemovedFrom:(GraphicView *)sender;
  48. - wasAddedTo:(GraphicView *)sender;
  49.  
  50. /* Methods overridden from superclass */
  51.  
  52. - (Graphic *)colorAcceptorAt:(const NXPoint *)point;
  53. - (BOOL)hasTextGraphic;
  54. - setCacheable:(BOOL)flag;
  55. - (BOOL)isCacheable;
  56. - draw;
  57. - (BOOL)hit:(const NXPoint *)point;
  58.  
  59. /* Compatibility methods */
  60.  
  61. - replaceWithImage;
  62. RWArchiving methods */
  63.  
  64. - write:(NXTypedStream *)stream;
  65. - read:(NXTypedStream *)stream;
  66.  
  67. @end
  68.