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

  1. /*
  2.     NSFontPanel.h
  3.     Application Kit
  4.     Copyright (c) 1994-1996, NeXT Software, Inc.
  5.     All rights reserved.
  6. */
  7.  
  8. #import <AppKit/NSPanel.h>
  9. #import <AppKit/NSFont.h>
  10.  
  11. @class NSMatrix;
  12. @class NSButton;
  13.  
  14. /* Tags of views in the FontPanel */
  15.  
  16. enum {
  17.     NSFPPreviewButton            = 131,
  18.     NSFPRevertButton            = 130,
  19.     NSFPSetButton            = 132,
  20.     NSFPPreviewField            = 128,
  21.     NSFPSizeField            = 129,
  22.     NSFPSizeTitle            = 133,
  23.     NSFPCurrentField            = 134
  24. };
  25.  
  26. @interface NSFontPanel : NSPanel
  27. {
  28.     NSMatrix         *_faces;
  29.     NSMatrix         *_families;
  30.     id                  _preview;
  31.     id                  _current;
  32.     id                  _size;
  33.     NSMatrix         *_sizes;
  34.     id                  _manager;
  35.     id                  _selFont;
  36.     struct _NSFontMetrics *_selMetrics;
  37.     int                 _curTag;
  38.     id                  _accessoryView;
  39.     NSString        *_keyBuffer;
  40.     NSButton        *_setButton;
  41.     id                  _separator;
  42.     id                  _sizeTitle;
  43.     NSString        *_lastPreview;
  44.     NSTimeInterval      _lastKeyTime;
  45.     id                _chooser;
  46.     NSMutableArray      *_titles;
  47.     id                _previewBox;
  48.     struct __fpFlags {
  49.         unsigned int        multipleFont:1;
  50.         unsigned int        dirty:1;
  51.         unsigned int        doingPreviewButton:1;
  52.         unsigned int        amPreviewing:1;
  53.         unsigned int        alwaysPreview:1;
  54.         unsigned int        dontPreview:1;
  55.     unsigned int        sizeFieldChanged:1;
  56.     unsigned int        sizeValueCacheIsValid:1;
  57.     unsigned int        sizeFieldIsRelative:1;
  58.         unsigned int        RESERVED:24;
  59.     } _fpFlags;
  60.     float        _cachedSizeValue;
  61.     int _reservedFontPanel1;
  62.     int _reservedFontPanel2;
  63. }
  64.  
  65. + (NSFontPanel *)sharedFontPanel;
  66.  
  67. #ifndef STRICT_OPENSTEP
  68. + (BOOL)sharedFontPanelExists;
  69. #endif
  70.  
  71. - (NSView *)accessoryView;
  72. - (void)setAccessoryView:(NSView *)aView;
  73. - (void)orderWindow:(NSWindowOrderingMode)place relativeTo:(int)otherWin;
  74. - (void)setPanelFont:(NSFont *)fontObj isMultiple:(BOOL)flag;
  75. - (NSFont *)panelConvertFont:(NSFont *)fontObj;
  76. - (BOOL)worksWhenModal;
  77. - (BOOL)isEnabled;
  78. - (void)setEnabled:(BOOL)flag;
  79.  
  80. @end
  81.