Version 1.1 Copyright ã1995 by My Company, Inc., All Rights Reserved.  

MyView 

Inherits From:	View : Responder : Object
Declared In:	MyView.h

Class Description
 
MyView is a subclass of View which provides the methods setBackgroundColor: and color to set and query the background color for the view.  

Note that this is a really useless example class!

The .001% of the time you wish to show the % and # characters, (or even as bold % and italics #!)

Defined Types
 
SYNOPSIS 
	MYFavoriteColors	typedef enum {	
			FCRed = NX_COLORRED,
			FCBlue = NX_COLORCYAN
		} MYFavoriteColors;

DESCRIPTION
	A handy typedef for color information 

SYNOPSIS 
	UglyColorFunc	typedef NXColor (*UglyColorFunc)(NXColor *);

DESCRIPTION
	Yecchy function typedef construct 

Symbolic Constants
 
SYNOPSIS 
	MY_DEFAULTCOLOR	NX_COLORGREEN
	MY_OTHERGOODCOLOR	NX_COLORBLUE

DESCRIPTION
	Constants that define useful colors. 

Macro Definitions
 
SYNOPSIS 
	MY_IS_ONE(x)
	MY_IS_TWO(x)

DESCRIPTION
	Macros that really help me calculate things. 

Functions
 
SYNOPSIS 
	BOOL MYColorIsValid(int year)

DESCRIPTION
	Color testing functions 

Global Variables
 
SYNOPSIS 
	NXColor MYCurrentGlobalColor;

Instance Variables
 
NXColor backgroundColor;

backgroundColor 	The color used to display the background of my view.

Method Types
 
 Determining the color 	- setBackgroundColor:
- backgroundColor

Displaying 	- drawSelf::

Instance Methods
 
backgroundColor
- (NXColor)backgroundColor

Returns the color which is displayed as a background to this view. 

drawSelf::
- drawSelf:(const NXRect *)rects :(int)rectCount

Fills the rectangles specified by rects and rectCount with the background color specified with setBackgroundColor: and then returns self. 

setBackgroundColor:
- setBackgroundColor:(NXColor)aColor

Sets the background color of the view to aColor, and returns self.