home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks1 / AppKit.framework / Headers / NSControl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-20  |  2.1 KB  |  93 lines

  1. /*
  2.     Control.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. #import "NSText.h"
  9.  
  10. @interface NSControl : NSView
  11. {
  12.     int                 tag;
  13.     id                  cell;
  14.     struct _conFlags {
  15. #ifdef __BIG_ENDIAN__
  16.     unsigned int        enabled:1;
  17.     unsigned int        editingValid:1;
  18.     unsigned int        ignoreMultiClick:1;
  19.     unsigned int        calcSize:1;
  20.     unsigned int        _drawingAncestor:1;
  21.     unsigned int        _RESERVED:11;
  22. #else
  23.     unsigned int        _RESERVED:11;
  24.     unsigned int        _drawingAncestor:1;
  25.     unsigned int        calcSize:1;
  26.     unsigned int        ignoreMultiClick:1;
  27.     unsigned int        editingValid:1;
  28.     unsigned int        enabled:1;
  29. #endif
  30.     }                   conFlags;
  31.     unsigned short      _reservedCshort1;
  32. }
  33.  
  34. + setCellClass:factoryId;
  35.  
  36. - initFrame:(NSRect)frameRect;
  37.  
  38. - (void)dealloc;
  39. - sizeToFit;
  40. - setFrameSize:(NSSize)_newSize;
  41. - calcSize;
  42. - cell;
  43. - setCell:aCell;
  44. - selectedCell;
  45. - target;
  46. - setTarget:anObject;
  47. - (SEL)action;
  48. - setAction:(SEL)aSelector;
  49. - (int)tag;
  50. - setTag:(int)anInt;
  51. - (int)selectedTag;
  52. - ignoreMultiClick:(BOOL)flag;
  53. - mouseDown:(NXEvent *)theEvent;
  54. - (int)mouseDownFlags;
  55. - (int)sendActionOn:(int)mask;
  56. - (BOOL)isContinuous;
  57. - setContinuous:(BOOL)flag;
  58. - (BOOL)isEnabled;
  59. - setEnabled:(BOOL)flag;
  60. - setFloatingPointFormat:(BOOL)autoRange left:(unsigned)leftDigits right:(unsigned)rightDigits;
  61. - (NSTextAlignment)alignment;
  62. - setAlignment:(NSTextAlignment)mode;
  63. - font;
  64. - setFont:fontObj;
  65. - setStringValue:(NSString *)aString;
  66. - setIntValue:(int)anInt;
  67. - setFloatValue:(float)aFloat;
  68. - setDoubleValue:(double)aDouble;
  69. - (NSString *)stringValue;
  70. - (int)intValue;
  71. - (float)floatValue;
  72. - (double)doubleValue;
  73. - update;
  74. - updateCell:aCell;
  75. - updateCellInside:aCell;
  76. - drawCellInside:aCell;
  77. - drawCell:aCell;
  78. - selectCell:aCell;
  79. - drawRect:(NSRect)rect;
  80. - sendAction:(SEL)theAction to:theTarget;
  81. - takeIntValueFrom:sender;
  82. - takeFloatValueFrom:sender;
  83. - takeDoubleValueFrom:sender;
  84. - takeStringValueFrom:sender;
  85. - currentEditor;
  86. - abortEditing;
  87. - validateEditing;
  88. - resetCursorRects;
  89. - write:(NXTypedStream *)stream;
  90. - read:(NXTypedStream *)stream;
  91.  
  92. @end
  93.