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

  1. /*
  2.     NSBox.h
  3.     Application Kit
  4.     Copyright (c) 1994-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8. #import <AppKit/NSView.h>
  9.  
  10. @class NSCell;
  11. @class NSFont;
  12.  
  13. typedef enum _NSTitlePosition {
  14.     NSNoTitle                = 0,
  15.     NSAboveTop                = 1,
  16.     NSAtTop                = 2,
  17.     NSBelowTop                = 3,
  18.     NSAboveBottom            = 4,
  19.     NSAtBottom                = 5,
  20.     NSBelowBottom            = 6
  21. } NSTitlePosition;
  22.  
  23. @interface NSBox : NSView
  24. {
  25.     id                  _titleCell;
  26.     id                  _contentView;
  27.     NSSize              _offsets;
  28.     NSRect              _borderRect;
  29.     NSRect              _titleRect;
  30.     struct __bFlags {
  31.     NSBorderType    borderType:2;
  32.     NSTitlePosition    titlePosition:3;
  33.     unsigned int    transparent:1;
  34.     unsigned int    _RESERVED:26;
  35.     } _bFlags;
  36.     id            _unused;
  37. }
  38.  
  39. - (NSBorderType)borderType;
  40. - (NSTitlePosition)titlePosition;
  41. - (void)setBorderType:(NSBorderType)aType;
  42. - (void)setTitlePosition:(NSTitlePosition)aPosition;
  43. - (NSString *)title;
  44. - (void)setTitle:(NSString *)aString;
  45. - (NSFont *)titleFont;
  46. - (void)setTitleFont:(NSFont *)fontObj;
  47. - (NSRect)borderRect;
  48. - (NSRect)titleRect;
  49. - (id)titleCell;
  50. - (void)sizeToFit;
  51. - (NSSize)contentViewMargins;
  52. - (void)setContentViewMargins:(NSSize)offsetSize;
  53. - (void)setFrameFromContentFrame:(NSRect)contentFrame;
  54. - (id)contentView;
  55. - (void)setContentView:(NSView *)aView;
  56.  
  57. @end
  58.  
  59. #ifndef STRICT_OPENSTEP
  60. @interface NSBox(NSKeyboardUI)
  61. - (void)setTitleWithMnemonic:(NSString *)stringWithAmpersand;
  62. @end
  63. #endif
  64.