This class is used to represent and draw menu items in a menu view.
This class has been deprecated and should not be used in new code.
You should use the APIs provided by NSMenu and
NSMenuItem instead.
@interface NSMenuItemCell : NSButtonCell
|
// Accessor Methods |
- (void)setNeedsSizing:(BOOL)flag;
|
- (BOOL)needsSizing;
|
- (void)setNeedsDisplay:(BOOL)flag;
|
- (BOOL)needsDisplay;
|
- (void)setHighlighted:(BOOL)flag;
|
- (void)setMenuView:(NSMenuView *)menuView;
|
- (NSMenuView *)menuView;
|
- (void)setMenuItem:(NSMenuItem *)item;
|
- (NSMenuItem *)menuItem;
|
// Instance Methods |
- (void)calcSize;
|
- (void)drawBorderAndBackgroundWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
|
- (void)drawImageWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
|
- (void)drawKeyEquivalentWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
|
- (void)drawSeparatorItemWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
|
- (void)drawStateImageWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
|
- (void)drawTitleWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
|
- (NSRect)imageRectForBounds:(NSRect)cellFrame;
|
- (float)imageWidth;
|
- (BOOL)isHighlighted;
|
- (NSRect)keyEquivalentRectForBounds:(NSRect)cellFrame;
|
- (float)keyEquivalentWidth;
|
- (NSRect)stateImageRectForBounds:(NSRect)cellFrame;
|
- (float)stateImageWidth;
|
- (NSRect)titleRectForBounds:(NSRect)cellFrame;
|
- (float)titleWidth;
|