home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks5 / AppKit.framework / Headers / NSMenu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-14  |  1.8 KB  |  72 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 "NSPanel.h"
  8. @class NSMatrix;
  9. @class NSActionCell;
  10. @class NSMenuCell;
  11.  
  12. @interface NSMenu : NSPanel
  13. {
  14.     id                  supermenu;
  15.     id                  matrix;
  16.     id                  attachedMenu;
  17.     NSPoint             lastLocation;
  18.     id                  reserved;
  19.     struct _menuFlags {
  20. #ifdef __BIG_ENDIAN__
  21.     unsigned int        sizeFitted:1;
  22.     unsigned int        autoupdate:1;
  23.     unsigned int        attached:1;
  24.     unsigned int        tornOff:1;
  25.     unsigned int        wasAttached:1;
  26.     unsigned int        wasTornOff:1;
  27.     unsigned int        _RESERVED:6;
  28.     unsigned int        _templateType:2;
  29.     unsigned int        _isServicesMenu:1;
  30.     unsigned int        _changeTitle:1;
  31. #else
  32.     unsigned int        _changeTitle:1;
  33.     unsigned int        _isServicesMenu:1;
  34.     unsigned int        _templateType:2;
  35.     unsigned int        _RESERVED:6;
  36.     unsigned int        wasTornOff:1;
  37.     unsigned int        wasAttached:1;
  38.     unsigned int        tornOff:1;
  39.     unsigned int        attached:1;
  40.     unsigned int        autoupdate:1;
  41.     unsigned int        sizeFitted:1;
  42. #endif
  43.     }                   menuFlags;
  44. }
  45.  
  46. + setMenuZone:(NSZone *)aZone;
  47. + (NSZone *)menuZone;
  48.  
  49. - initTitle:(NSString *)aTitle;
  50.  
  51. - addItemWithTitle:(NSString *)aString action:(SEL)aSelector keyEquivalent:(NSString *)characters;
  52. - setSubmenu:aMenu forItem:aCell;
  53. - (NSMatrix *)itemMatrix;    // NSMatrix of NSMenuCells
  54. - setItemMatrix:aMatrix;
  55. - display;
  56. - sizeToFit;
  57. - setFrameTopLeftPoint:(NSPoint)_newTopLeft;
  58. - windowMoved:(NSEvent *)theEvent;
  59. - close;
  60. - update;
  61. - setAutoupdate:(BOOL)flag;
  62. - findCellWithTag:(int)aTag;
  63. - (NSPoint)locationForSubmenu:aSubmenu;
  64. - mouseDown:(NSEvent *)theEvent;
  65. - rightMouseDown:(NSEvent *)theEvent;
  66.  
  67. @end
  68.  
  69. @interface NSMenu(SubmenuDummyAction)
  70. - submenuAction:sender;
  71. @end
  72.