home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks2 / AppKit.framework / Headers / NSBox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-29  |  1.5 KB  |  66 lines

  1. /*
  2.     Box.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "NSView.h"
  8.  
  9. /* Box title positions */
  10.  
  11. typedef enum _NSTitlePosition {
  12.     NSNoTitle                = 0,
  13.     NSAboveTop                = 1,
  14.     NSAtTop                = 2,
  15.     NSBelowTop                = 3,
  16.     NSAboveBottom            = 4,
  17.     NSAtBottom                = 5,
  18.     NSBelowBottom            = 6
  19. } NSTitlePosition;
  20.  
  21. @interface NSBox : NSView
  22. {
  23.     id                  cell;
  24.     id                  contentView;
  25.     NSSize              offsets;
  26.     NSRect              borderRect;
  27.     NSRect              titleRect;
  28.     struct _bFlags {
  29. #ifdef __BIG_ENDIAN__
  30.     unsigned int        borderType:2;
  31.     unsigned int        titlePosition:3;
  32.     unsigned int        _transparent:1;
  33.     unsigned int        _RESERVED:10;
  34. #else
  35.     unsigned int        _RESERVED:10;
  36.     unsigned int        _transparent:1;
  37.     unsigned int        titlePosition:3;
  38.     unsigned int        borderType:2;
  39. #endif
  40.     }                   bFlags;
  41. }
  42.  
  43. - initFrame:(NSRect)frameRect;
  44.  
  45. - (NSBorderType)borderType;
  46. - (NSTitlePosition)titlePosition;
  47. - setBorderType:(NSBorderType)aType;
  48. - setTitlePosition:(NSTitlePosition)aPosition;
  49. - (NSString *)title;
  50. - setTitle:(NSString *)aString;
  51. - cell;
  52. - font;
  53. - setFont:fontObj;
  54. - (NSSize)offsets;
  55. - setContentViewMargins:(NSSize)_offsetSize;
  56. - setFrameSize:(NSSize)newSize;
  57. - sizeToFit;
  58. - setFrameFromContentFrame:(NSRect)contentFrame;
  59. - contentView;
  60. - setContentView:aView;
  61. - addSubview:aView;
  62. - replaceSubview:oldView with:newView;
  63. - drawRect:(NSRect)rect;
  64.  
  65. @end
  66.