home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula
/
nebula.bin
/
SourceCode
/
MiniExamples
/
PerformanceTuning
/
VisibleView-03
/
VisibleOne.h
< prev
next >
Wrap
Text File
|
1991-10-18
|
1KB
|
56 lines
//
// A Visible View
// Randy Nelson, NeXT Developer Training
// Created 5-1-90
// Modified 9-3-90 for 2.0
//
// You may freely copy, distribute and reuse the code in this example.
// NeXT disclaims any warranty of any kind, expressed or implied, as to
// its fitness for any particular use.
//
#import <appkit/View.h>
@interface VisibleOne:View
{
//outlets
id infoPanel;
id scaleX;
id translateY;
id vitalMatrix;
id translateX;
id scaleY;
id frameX;
id frameY;
id frameWidth;
id frameHeight;
id compositeIndicator;
id drawGridIndicator;
id transparencyIndicator;
id appender;
//NXImage for an eps picture
//the SubViewFramer (our eventual SuperView)
//a string resource, an object that holds the info panel
id myPic,
newSuperView,
stringSet;
char buffer[100];
}
- initFrame:(const NXRect *)framerect;
//action methods
- setSelfOrigin:sender;
- setSelfScale:sender;
- setSelfRotation:sender;
- frameMove:sender;
- frameRotate:sender;
- frameChangeSize:sender;
- newDisplayState:sender;
- infoPanel:sender;
//local methods
- updateVitals;
- (BOOL)wantsTransparency;
- setTrackingRect;
@end