home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks2 / AppKit.framework / Headers / NSControl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-29  |  2.1 KB  |  90 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. - sizeToFit;
  39. - setFrameSize:(NSSize)_newSize;
  40. - calcSize;
  41. - cell;
  42. - setCell:aCell;
  43. - selectedCell;
  44. - target;
  45. - setTarget:anObject;
  46. - (SEL)action;
  47. - setAction:(SEL)aSelector;
  48. - (int)tag;
  49. - setTag:(int)anInt;
  50. - (int)selectedTag;
  51. - ignoreMultiClick:(BOOL)flag;
  52. - mouseDown:(NXEvent *)theEvent;
  53. - (int)mouseDownFlags;
  54. - (int)sendActionOn:(int)mask;
  55. - (BOOL)isContinuous;
  56. - setContinuous:(BOOL)flag;
  57. - (BOOL)isEnabled;
  58. - setEnabled:(BOOL)flag;
  59. - setFloatingPointFormat:(BOOL)autoRange left:(unsigned)leftDigits right:(unsigned)rightDigits;
  60. - (NSTextAlignment)alignment;
  61. - setAlignment:(NSTextAlignment)mode;
  62. - font;
  63. - setFont:fontObj;
  64. - setStringValue:(NSString *)aString;
  65. - setIntValue:(int)anInt;
  66. - setFloatValue:(float)aFloat;
  67. - setDoubleValue:(double)aDouble;
  68. - (NSString *)stringValue;
  69. - (int)intValue;
  70. - (float)floatValue;
  71. - (double)doubleValue;
  72. - update;
  73. - updateCell:aCell;
  74. - updateCellInside:aCell;
  75. - drawCellInside:aCell;
  76. - drawCell:aCell;
  77. - selectCell:aCell;
  78. - drawRect:(NSRect)rect;
  79. - sendAction:(SEL)theAction to:theTarget;
  80. - takeIntValueFrom:sender;
  81. - takeFloatValueFrom:sender;
  82. - takeDoubleValueFrom:sender;
  83. - takeStringValueFrom:sender;
  84. - currentEditor;
  85. - abortEditing;
  86. - validateEditing;
  87. - resetCursorRects;
  88.  
  89. @end
  90.