Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_Pattern Class Reference

CP_Pattern. More...

List of all members.

Public Member Functions

 CP_Pattern ()
 CP_Pattern (const CP_Pattern &inPattern)
 CP_Pattern (SInt16 inPatternID)
virtual ~CP_Pattern ()
bool operator== (const CP_Pattern &inColor) const
bool operator!= (const CP_Pattern &inColor) const
CP_Patternoperator= (const CP_Pattern &inColor)
 CP_Pattern (Pattern *inPattern)
Pattern * GetOSPattern ()
PixPatHandle GetPixPatHandle ()
void LoadPattern (SInt16 inID, SInt16 inIndex)
void Set (Pattern *inPattern)
HBRUSH GetOSPattern ()

Protected Attributes

Pattern fMacOSPattern
PixPatHandle fMacOSPatternHandle
HBRUSH fPatternBrush


Detailed Description

class dealing with a platforms pattern.


Constructor & Destructor Documentation

CPLAT_Begin_Namespace_CPLAT CP_Pattern::CP_Pattern  ) 
 

Constructor.

CP_Pattern::CP_Pattern const CP_Pattern inPattern  ) 
 

Copy constructor.

Parameters:
inPattern - the CP_Pattern we are copying.

CP_Pattern::CP_Pattern SInt16  inPatternID  ) 
 

Constructor.

Parameters:
inPatternID - id of a pattern resource.

CP_Pattern::~CP_Pattern  )  [virtual]
 

Destructor.

CP_Pattern::CP_Pattern Pattern *  inPattern  ) 
 

Constructor from a MacOS Pattern.

Parameters:
inPattern - the MacOS pattern we are copying.


Member Function Documentation

bool CP_Pattern::operator== const CP_Pattern inPattern  )  const
 

Equality operator.

Parameters:
inPattern - the pattern we are checking against. Returns true if both patterns are equal.

bool CP_Pattern::operator!= const CP_Pattern inPattern  )  const
 

Inequality operator.

Parameters:
inPattern - the pattern we are comparing.

CP_Pattern & CP_Pattern::operator= const CP_Pattern inPattern  ) 
 

Assignment operator.

Parameters:
inPattern - the pattern we are copying.

Pattern* CP_Pattern::GetOSPattern  ) 
 

Return the MacOS black and white pattern.

PixPatHandle CP_Pattern::GetPixPatHandle  ) 
 

Return the MacOS color pattern.

void CP_Pattern::LoadPattern SInt16  inID,
SInt16  inIndex
 

Load the specified pattern. This is simply a call to GetIndPattern.

Parameters:
inID - the resource id of the pattern.
inIndex - the index of the pattern.

void CP_Pattern::Set Pattern *  inPattern  ) 
 

Copy the passed in MacOS Pattern.

Parameters:
inPattern - the MacOS Pattern we are copying.

HBRUSH CP_Pattern::GetOSPattern  ) 
 

Return a Windows HBRUSH containing the pattern.


Member Data Documentation

Pattern CP_Pattern::fMacOSPattern [protected]
 

A MacOS black and white pattern.

PixPatHandle CP_Pattern::fMacOSPatternHandle [protected]
 

A MacOS color pattern.

HBRUSH CP_Pattern::fPatternBrush [protected]
 

A Windows pattern brush containing the pattern.


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:01:55 2005 for CPLAT by  doxygen 1.4.0