home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / FontPanel.h < prev    next >
Text File  |  1991-11-20  |  2KB  |  72 lines

  1. /*
  2.     FontPanel.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved.
  5. */
  6.  
  7. #import "Panel.h"
  8. #import "Font.h"
  9.  
  10. /* Tags of views in the FontPanel */
  11.  
  12. #define NX_FPPREVIEWBUTTON    131
  13. #define NX_FPREVERTBUTTON    130
  14. #define NX_FPSETBUTTON        132
  15. #define NX_FPPREVIEWFIELD    128
  16. #define NX_FPSIZEFIELD        129
  17. #define NX_FPSIZETITLE        133
  18. #define NX_FPCURRENTFIELD    134
  19.  
  20. @interface FontPanel : Panel
  21. {
  22.     id                  faces;
  23.     id                  families;
  24.     id                  preview;
  25.     id                  current;
  26.     id                  size;
  27.     id                  sizes;
  28.     id                  manager;
  29.     id                  selFont;
  30.     NXFontMetrics      *selMetrics;
  31.     int                 curTag;
  32.     id                  accessoryView;
  33.     char           *_keyBuffer;
  34.     id                  setButton;
  35.     id                  separator;
  36.     id                  sizeTitle;
  37.     char               *lastPreview;
  38.     struct _fpFlags {
  39.     unsigned int        multipleFont:1;
  40.     unsigned int        dirty:1;
  41.     unsigned int        _RESERVED:11;
  42.     unsigned int        _amPreviewing:1;
  43.     unsigned int        _alwaysPreview:1;
  44.     unsigned int        _dontPreview:1;
  45.     }                   fpFlags;
  46.     unsigned short      _reservedFPshort1;
  47.     long                _lastKeyTime;
  48.     id                _chooser;
  49.     id                _titles;
  50.     id                _previewBox;
  51. }
  52.  
  53. + new;
  54. + newContent:(const NXRect *)contentRect style:(int)aStyle backing:(int)bufferingType buttonMask:(int)mask defer:(BOOL)flag;
  55.  
  56. + allocFromZone:(NXZone *)zone;
  57. + alloc;
  58.  
  59. - accessoryView;
  60. - setAccessoryView:aView;
  61. - textDidEnd:textObject endChar:(unsigned short)endChar;
  62. - textDidGetKeys:textObject isEmpty:(BOOL)flag;
  63. - orderWindow:(int)place relativeTo:(int)otherWin;
  64. - windowWillResize:sender toSize:(NXSize *)frameUE;
  65. - setPanelFont:fontObj isMultiple:(BOOL)flag;
  66. - panelConvertFont:fontObj;
  67. - (BOOL)worksWhenModal;
  68. - (BOOL)isEnabled;
  69. - setEnabled:(BOOL)flag;
  70.  
  71. @end
  72.