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