home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / Menu.h < prev    next >
Text File  |  1992-06-19  |  2KB  |  69 lines

  1. /*
  2.     Menu.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "Panel.h"
  8. #import <objc/zone.h>
  9.  
  10. @interface Menu : Panel
  11. {
  12.     id                  supermenu;
  13.     id                  matrix;
  14.     id                  attachedMenu;
  15.     NXPoint             lastLocation;
  16.     id                  reserved;
  17.     struct _menuFlags {
  18.     unsigned int        sizeFitted:1;
  19.     unsigned int        autoupdate:1;
  20.     unsigned int        attached:1;
  21.     unsigned int        tornOff:1;
  22.     unsigned int        wasAttached:1;
  23.     unsigned int        wasTornOff:1;
  24.     unsigned int        _RESERVED:6;
  25.     unsigned int        _templateType:2;
  26.     unsigned int        _isServicesMenu:1;
  27.     unsigned int        _changeTitle:1;
  28.     }                   menuFlags;
  29. }
  30.  
  31. + setMenuZone:(NXZone *)aZone;
  32. + (NXZone *)menuZone;
  33.  
  34. - init;
  35. - initTitle:(const char *)aTitle;
  36.  
  37. - addItem:(const char *)aString action:(SEL)aSelector keyEquivalent:(unsigned short)charCode;
  38. - setSubmenu:aMenu forItem:aCell;
  39. - itemList;
  40. - setItemList:aMatrix;
  41. - display;
  42. - sizeToFit;
  43. - moveTopLeftTo:(NXCoord)x :(NXCoord)y;
  44. - windowMoved:(NXEvent *)theEvent;
  45. - close;
  46. - update;
  47. - setAutoupdate:(BOOL)flag;
  48. - findCellWithTag:(int)aTag;
  49. - getLocation:(NXPoint *)theLocation forSubmenu:aSubmenu;
  50. - mouseDown:(NXEvent *)theEvent;
  51. - rightMouseDown:(NXEvent *)theEvent;
  52. - awake;
  53. - write:(NXTypedStream *)stream;
  54. - read:(NXTypedStream *)stream;
  55.  
  56. /* 
  57.  * The following new... methods are now obsolete.  They remain in this  
  58.  * interface file for backward compatibility only.  Use Object's alloc method  
  59.  * and the init... methods defined in this class instead.
  60.  */
  61. + new;
  62. + newTitle:(const char *)aTitle;
  63.  
  64. @end
  65.  
  66. @UErface Menu(SubmenuDummyAction)
  67. - submenuAction:sender;
  68. @end
  69.