home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks3 / AppKit.framework / Headers / NSMatrix.h < prev    next >
Text File  |  1995-12-21  |  6KB  |  195 lines

  1. /*
  2.     Matrix.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "NSControl.h"
  8. #import "NSColor.h"
  9.  
  10. /* Matrix Constants */
  11.  
  12. typedef enum _NSMatrixMode {
  13.     NSRadioModeMatrix            = 0,
  14.     NSHighlightModeMatrix        = 1,
  15.     NSListModeMatrix            = 2,
  16.     NSTrackModeMatrix            = 3
  17. } NSMatrixMode;
  18.  
  19. @interface NSMatrix : NSControl
  20. {
  21.     id                  cellList;
  22.     id                  target;
  23.     SEL                 action;
  24.     id                  selectedCell;
  25.     int                 selectedRow;
  26.     int                 selectedCol;
  27.     int                 numRows;
  28.     int                 numCols;
  29.     NSSize              cellSize;
  30.     NSSize              intercell;
  31.     float               backgroundGray;
  32.     float               cellBackgroundGray;
  33.     id                  font;
  34.     id                  protoCell;
  35.     id                  cellClass;
  36.     id                  nextText;
  37.     id                  previousText;
  38.     SEL                 doubleAction;
  39.     SEL                 errorAction;
  40.     id                  textDelegate;
  41.     struct _mFlags {
  42. #ifdef __BIG_ENDIAN__
  43.     unsigned int        highlightMode:1;
  44.     unsigned int        radioMode:1;
  45.     unsigned int        listMode:1;
  46.     unsigned int        allowEmptySel:1;
  47.     unsigned int        autoscroll:1;
  48.     unsigned int        reaction:1;
  49.     unsigned int        selectionByRect:1;
  50.     unsigned int        _RESERVED:7;
  51.     unsigned int        _autosizeCells:1;
  52.     unsigned int        _drawingAncestor:1;
  53. #else
  54.     unsigned int        _drawingAncestor:1;
  55.     unsigned int        _autosizeCells:1;
  56.     unsigned int        _RESERVED:7;
  57.     unsigned int        selectionByRect:1;
  58.     unsigned int        reaction:1;
  59.     unsigned int        autoscroll:1;
  60.     unsigned int        allowEmptySel:1;
  61.     unsigned int        listMode:1;
  62.     unsigned int        radioMode:1;
  63.     unsigned int        highlightMode:1;
  64. #endif
  65.     }                   mFlags;
  66.     unsigned short      _reservedMshort1;
  67.     unsigned int        _reservedMint1;
  68.     void            *_private;
  69. }
  70.  
  71. + initialize;
  72. + setCellClass:factoryId;
  73.  
  74. - initFrame:(NSRect)frameRect;
  75. - initFrame:(NSRect)frameRect mode:(int)aMode prototype:aCell numRows:(int)rowsHigh numCols:(int)colsWide;
  76. - initFrame:(NSRect)frameRect mode:(int)aMode cellClass:factoryId numRows:(int)rowsHigh numCols:(int)colsWide;
  77.  
  78. - setCellClass:factoryId;
  79. - prototype;
  80. - setPrototype:aCell;
  81. - makeCellAt:(int)row :(int)col;
  82. - (NSMatrixMode)mode;
  83. - setMode:(NSMatrixMode)aMode;
  84. - setEmptySelectionEnabled:(BOOL)flag;
  85. - (BOOL)isEmptySelectionEnabled;
  86. - sendAction:(SEL)aSelector to:anObject forAllCells:(BOOL)flag;
  87. - cellList;
  88. - selectedCell;
  89. - getSelectedCells:(List *)aList;
  90. - (int)selectedRow;
  91. - (int)selectedCol;
  92. - setSelectionByRect:(BOOL)flag;
  93. - (BOOL)isSelectionByRect;
  94. - setSelectionFrom:(int)startPos to:(int)endPos anchor:(int)anchorPos lit:(BOOL)lit;
  95. - clearSelectedCell;
  96. - selectCellAt:(int)row :(int)col;
  97. - selectAll:sender;
  98. - selectCell:aCell;
  99. - selectCellWithTag:(int)anInt;
  100. - (NSSize)cellSize;
  101. - setCellSize:(NSSize)aSize;
  102. - (NSSize)intercell;
  103. - setIntercell:(NSSize)aSize;
  104. - setEnabled:(BOOL)flag;
  105. - setScrollable:(BOOL)flag;
  106. - font;
  107. - setFont:fontObj;
  108. - setBackgroundColor:(NSColor *)color;
  109. - (NSColor *)backgroundColor;
  110. - setBackgroundTransparent:(BOOL)flag;
  111. - (BOOL)isBackgroundTransparent;
  112. - setCellBackgroundColor:(NSColor *)color;
  113. - (NSColor *)cellBackgroundColor;
  114. - setCellBackgroundTransparent:(BOOL)flag;
  115. - (BOOL)isCellBackgroundTransparent;
  116. - setState:(int)value at:(int)row :(int)col;
  117. - setImage:(NSImage *)iconName atRow:(int)row column:(int)col;
  118. - setTitle:(NSString *)aString at:(int)row :(int)col;
  119. - (int)cellCount;
  120. - getNumRows:(int *)rowCount numCols:(int *)colCount;
  121. - (int)numberOfRows;
  122. - (int)numberOfColumns;
  123. - cellAt:(int)row :(int)col;
  124. - (NSRect)cellFrameAt:(int)row :(int)col;
  125. - getRow:(int *)row andCol:(int *)col ofCell:aCell;
  126. - getRow:(int *)row andCol:(int *)col forPoint:(NSPoint)aPoint;
  127. - renewRows:(int)newRows cols:(int)newCols;
  128. - putCell:newCell at:(int)row :(int)col;
  129. - addRow;
  130. - insertRowAt:(int)row;
  131. - removeRowAt:(int)row andFree:(BOOL)flag;
  132. - addCol;
  133. - insertColAt:(int)col;
  134. - removeColAt:(int)col andFree:(BOOL)flag;
  135. - findCellWithTag:(int)anInt;
  136. - setTag:(int)anInt at:(int)row :(int)col;
  137. - target;
  138. - setTarget:anObject;
  139. - setTarget:anObject at:(int)row :(int)col;
  140. - (SEL)action;
  141. - setAction:(SEL)aSelector;
  142. - (SEL)doubleAction;
  143. - setDoubleAction:(SEL)aSelector;
  144. - (SEL)errorAction;
  145. - setErrorAction:(SEL)aSelector;
  146. - setAction:(SEL)aSelector at:(int)row :(int)col;
  147. - setTag:(int)anInt target:anObject action:(SEL)aSelector at:(int)row :(int)col;
  148. - setAutosizeCells:(BOOL)flag;
  149. - (BOOL)doesAutosizeCells;
  150. - setFrameSize:(NSSize)_newSize;
  151. - sizeToCells;
  152. - sizeToFit;
  153. - validateSize:(BOOL)flag;
  154. - calcSize;
  155. - drawCell:aCell;
  156. - drawCellInside:aCell;
  157. - drawCellAt:(int)row :(int)col;
  158. - highlightCellAt:(int)row :(int)col lit:(BOOL)flag;
  159. - drawRect:(NSRect)rect;
  160. - display;
  161. - setAutoscroll:(BOOL)flag;
  162. - scrollCellToVisible:(int)row :(int)col;
  163. - setReaction:(BOOL)flag;
  164. - (int)mouseDownFlags;
  165. - mouseDown:(NSEvent *)theEvent;
  166. - (BOOL)performKeyEquivalent:(NSEvent *)theEvent;
  167. - sendAction:(SEL)theAction to:theTarget;
  168. - sendAction;
  169. - sendDoubleAction;
  170. - textDelegate;
  171. - setTextDelegate:anObject;
  172. - (BOOL)textShouldEndEditing:textObject;
  173. - (BOOL)textShouldBeginEditing:textObject;
  174. - textDidEnd:textObject endChar:(unsigned short)whyEnd;
  175. - textDidChange:textObject;
  176. - textDidGetKeys:textObject isEmpty:(BOOL)flag;
  177. - selectText:sender;
  178. - selectTextAt:(int)row :(int)col;
  179. - setPreviousText:anObject;
  180. - setNextText:anObject;
  181. - (BOOL)acceptsFirstMouse;
  182. - resetCursorRects;
  183.  
  184. @end
  185.  
  186. #ifdef KANJI
  187. @interface NSMatrix(InputManager)
  188. - setIMEnabled:(BOOL)flag;
  189. @end
  190.  
  191. @interface NSMatrix(IMSupportDelegate)
  192. - (BOOL)textUsesIM:sender;
  193. @end
  194. #endif
  195.