This is SafetyView.h in view mode; [Download] [Up]
/* Generated by Interface Builder */
#import "CardView.h"
// All of the safety cards are a subclass of this view.
// This class is intended to be a form of a base class for those
// subclasses.
// This class implements a method that allows the rotated flag
// to be manipulated. It also performes the drawing for the safety card.
@interface SafetyView:CardView
{
// This is the bitmap used for the coup fouree
// bottom face. Its is assigned in a
// subclass.
CardImage *rotatedBottomFaceBitmap;
// This flag is used to determine if the rotated
// bottom face bitmap should be displayed.
BOOL rotatedFlag;
}
// The +new method simply initializes
// a instance variable.
+ new;
// Only safety cards are allowed to be
// rotated. This occurs when the safety is
// a coup fouree.
// This method will also manipulate the frame
// of the card so that the view is rotated.
- setRotatedFlag:( BOOL )flag;
- drawSelf:( const NXRect * )rects :( int )rectCount;
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.