home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / AppKit.framework / Versions / B / Headers / NSButton.h < prev    next >
Text File  |  1996-10-17  |  2KB  |  58 lines

  1. /*
  2.     NSButton.h
  3.     Application Kit
  4.     Copyright (c) 1994-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8. #import <AppKit/NSControl.h>
  9. #import <AppKit/NSButtonCell.h>
  10.  
  11. @interface NSButton : NSControl
  12.  
  13. - (NSString *)title;
  14. - (void)setTitle:(NSString *)aString;
  15. - (NSString *)alternateTitle;
  16. - (void)setAlternateTitle:(NSString *)aString;
  17. - (NSImage *)image;
  18. - (void)setImage:(NSImage *)image;
  19. - (NSImage *)alternateImage;
  20. - (void)setAlternateImage:(NSImage *)image;
  21. - (NSCellImagePosition)imagePosition;
  22. - (void)setImagePosition:(NSCellImagePosition)aPosition;
  23. - (void)setButtonType:(NSButtonType)aType;
  24. - (int)state;
  25. - (void)setState:(int)value;
  26. - (BOOL)isBordered;
  27. - (void)setBordered:(BOOL)flag;
  28. - (BOOL)isTransparent;
  29. - (void)setTransparent:(BOOL)flag;
  30. - (void)setPeriodicDelay:(float)delay interval:(float)interval;
  31. - (void)getPeriodicDelay:(float *)delay interval:(float *)interval;
  32. - (NSString *)keyEquivalent;
  33. - (void)setKeyEquivalent:(NSString *)charCode;
  34. - (unsigned int)keyEquivalentModifierMask;
  35. - (void)setKeyEquivalentModifierMask:(unsigned int)mask;
  36. - (void)highlight:(BOOL)flag;
  37. - (BOOL)performKeyEquivalent:(NSEvent *)key;
  38. - (void)performClick:(id)sender;
  39.  
  40. @end
  41.  
  42. #ifndef STRICT_OPENSTEP
  43. @interface NSButton(NSKeyboardUI)
  44. - (void)setTitleWithMnemonic:(NSString *)stringWithAmpersand;
  45. @end
  46. #endif
  47.  
  48. #ifndef STRICT_OPENSTEP
  49.  
  50. @interface NSButton(NSButtonAttributedStringMethods)
  51. - (NSAttributedString *)attributedTitle;
  52. - (void)setAttributedTitle:(NSAttributedString *)aString;
  53. - (NSAttributedString *)attributedAlternateTitle;
  54. - (void)setAttributedAlternateTitle:(NSAttributedString *)obj;
  55. @end
  56.  
  57. #endif
  58.