This is Matrix.h in view mode; [Download] [Up]
/* Interface for Matrix class
*
* Copyright (C) 1993, 1994 The Board of Trustees of
* The Leland Stanford Junior University. All Rights Reserved.
*
* Authors: Scott Francis, Mike Gravina, Fred Harris, Paul Kunz, Tom Pavel,
* Imran Qureshi, and Libing Wang
* Mike L. Kienenberger (Alaska)
*
* This file is part of an Objective-C class library for a window system
*
* Matrix.h,v 1.52 1995/12/13 22:33:03 fedor Exp
*/
#ifndef _Matrix_h_
#define _Matrix_h_
#include "appkit/color.h"
#include "Control.h"
/* Matrix Constants */
#define NX_RADIOMODE 0
#define NX_HIGHLIGHTMODE 1
#define NX_LISTMODE 2
#define NX_TRACKMODE 3
@class Cell, List;
@interface Matrix:Control
{
List *cellList;
id target;
SEL action;
Cell *selectedCell;
int selectedRow;
int selectedCol;
int numRows;
int numCols;
NXSize cellSize;
NXSize intercell;
float backgroundGary;
float cellBackgroundGray;
id font;
Cell *protoCell;
id cellClass;
id nextText;
id previousText;
SEL doubleAction;
SEL errorAction;
id textDelegate;
int radioBehavior;
NXCoord marginWidth;
BOOL allowEmptySel;
}
// + initialize;
+ setCellClass:factoryId;
- initFrame:(const NXRect *)frameRect;
- initFrame:(const NXRect *)frameRect mode:(int)aMode prototype:aCell
numRows:(int)rowsHigh numCols:(int)colsWide;
- initFrame:(const NXRect *)frameRect mode:(int)aMode cellClass:factoryId
numRows:(int)rowsHigh numCols:(int)colsWide;
- free;
- setMode:(int)aMode;
- setEmptySelectionEnabled:(BOOL)flag;
- (int)getMode;
- setCellClass:factoryId;
- prototype;
- setPrototype:aCell;
- makeCellAt:(int)row :(int)col;
- (int)mode;
- setMode:(int)aMode;
- setEmptySelectionEnabled:(BOOL)flag;
- (BOOL)isEmptySelectionEnabled;
- sendAction:(SEL)aSelector to:anObject forAllCells:(BOOL)flag;
- cellList;
- selectedCell;
- getSelectedCells:(List *)aList;
- (int)selectedRow;
- (int)selectedCol;
- setSelectionByRect:(BOOL)flag;
- (BOOL)isSelectionByRect;
- setSelectionFrom:(int)startPos to:(int)endPos anchor:(int)anchorPos
lit:(BOOL)lit;
- clearSelectedCell;
- selectCellAt:(int)row :(int)col;
- selectAll:sender;
- selectCell:aCell;
- selectCellWithTag:(int)anInt;
- getCellSize:(NXSize *)theSize;
- setCellSize:(const NXSize *)aSize;
- getIntercell:(NXSize *)theSize;
- setIntercell:(const NXSize *)aSize;
- setEnabled:(BOOL)flag;
- setScrollable:(BOOL)flag;
- font;
- setFont:fontObj;
- (float)backgroundGray;
- setBackgroundGray:(float)value;
- setBackgroundColor:(NXColor)color;
- (NXColor)backgroundColor;
- setBackgroundTransparent:(BOOL)flag;
- (BOOL)isBackgroundTransparent;
- setCellBackgroundColor:(NXColor)color;
- (NXColor)cellBackgroundColor;
- setCellBackgroundTransparent:(BOOL)flag;
- (BOOL)isCellBackgroundTransparent;
- (float)cellBackgroundGray;
- setCellBackgroundGray:(float)value;
- setState:(int)value at:(int)row :(int)col;
- setIcon:(const char *)iconName at:(int)row :(int)col;
- setTitle:(const char *)aString at:(int)row :(int)col;
- (int)cellCount;
- getNumRows:(int *)rowCount numCols:(int *)colCount;
- cellAt:(int)row :(int)col;
- getCellFrame:(NXRect *)theRect at:(int)row :(int)col;
- getRow:(int *)row andCol:(int *)col ofCell:aCell;
- getRow:(int *)row andCol:(int *)col forPoint:(const NXPoint *)aPoint;
- renewRows:(int)newRows cols:(int)newCols;
- putCell:newCell at:(int)row :(int)col;
- addRow;
- insertRowAt:(int)row;
- removeRowAt:(int)row andFree:(BOOL)flag;
- addCol;
- insertColAt:(int)col;
- removeColAt:(int)col andFree:(BOOL)flag;
- findCellWithTag:(int)anInt;
- setTag:(int)anInt at:(int)row :(int)col;
- target;
- setTarget:anObject;
- setTarget:anObject at:(int)row :(int)col;
- (SEL)action;
- setAction:(SEL)aSelector;
- (SEL)doubleAction;
- setDoubleAction:(SEL)aSelector;
- (SEL)errorAction;
- setErrorAction:(SEL)aSelector;
- setAction:(SEL)aSelector at:(int)row :(int)col;
- setTag:(int)anInt target:anObject action:(SEL)aSelector
at:(int)row :(int)col;
- setAutosizeCells:(BOOL)flag;
- (BOOL)doesAutosizeCells;
- sizeTo:(float)width :(float)height;
- sizeToCells;
- sizeToFit;
- validateSize:(BOOL)flag;
- calcSize;
- drawCell:aCell;
- drawCellInside:aCell;
- drawCellAt:(int)row :(int)col;
- highlightCellAt:(int)row :(int)col lit:(BOOL)flag;
- drawSelf:(const NXRect *)rects :(int)rectCount;
- display;
- setAutoscroll:(BOOL)flag;
- scrollCellToVisible:(int)row :(int)col;
- setReaction:(BOOL)flag;
- (int)mouseDownFlags;
- mouseDown:(NXEvent *)theEvent;
- (BOOL)performKeyEquivalent:(NXEvent *)theEvent;
- sendAction:(SEL)theAction to:theTarget;
- sendAction;
- sendDoubleAction;
- textDelegate;
- setTextDelegate:anObject;
- (BOOL)textWillEnd:textObject;
- (BOOL)textWillChange:textObject;
- textDidEnd:textObject endChar:(unsigned short)whyEnd;
- textDidChange:textObject;
- textDidGetKeys:textObject isEmpty:(BOOL)flag;
- selectText:sender;
- selectTextAt:(int)row :(int)col;
- setPreviousText:anObject;
- setNextText:anObject;
- (BOOL)acceptsFirstMouse;
- write:(NXTypedStream *)stream;
- read:(NXTypedStream *)stream;
- resetCursorRects;
// + newFrame:(const NXRect *)frameRect;
// + newFrame:(const NXRect *)frameRect mode:(int)aMode prototype:aCell
// numRows:(int)rowsHigh numCols:(int)colsWide;
// + newFrame:(const NXRect *)frameRect mode:(int)aMode cellClass:factoryId
// numRows:(int)rowsHigh numCols:(int)colsWide;
- (int)getMode;
- _init;
- _managedBy:parent wid:(void *)widget;
- _destroy;
@end
#ifdef KANJI
@interface Matrix(InputManager)
- setIMEnabled:(BOOL)flag;
@end
#endif
@interface Matrix(IMSupportDelegate)
- (BOOL)textUsesIM:sender;
@end
#endif /* _Matrix_h_ */
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.