CommonTransInfo Class Reference

#include <xpfrgn.h>

List of all members.

Public Member Functions

 CommonTransInfo ()
BOOL IsCommonType ()
void UpdateCommonType (UINT32 Type)
UINT32 GetCommonType ()
BOOL UsesNonAlpha ()

Protected Attributes

BOOL m_bCommonType
UINT32 m_CommonType
BOOL m_bUsesNonAlpha


Detailed Description

Definition at line 185 of file xpfrgn.h.


Constructor & Destructor Documentation

CommonTransInfo::CommonTransInfo  ) 
 

Definition at line 3093 of file xpfrgn.cpp.

03094 {
03095     m_bCommonType = TRUE;
03096     m_CommonType = TT_NoTranspType;
03097 }


Member Function Documentation

UINT32 CommonTransInfo::GetCommonType  ) 
 

Definition at line 3119 of file xpfrgn.cpp.

03120 {
03121     return(m_bCommonType ? m_CommonType : TT_NoTranspType);
03122 }

BOOL CommonTransInfo::IsCommonType  )  [inline]
 

Definition at line 190 of file xpfrgn.h.

00190 { return(m_bCommonType); }

void CommonTransInfo::UpdateCommonType UINT32  Type  ) 
 

Definition at line 3099 of file xpfrgn.cpp.

03100 {
03101     if (m_bCommonType)
03102     {
03103         if (Type == TT_NoTranspType ||
03104             Type == TT_DARKEN ||
03105             Type == TT_LIGHTEN ||
03106             Type == TT_BRIGHTNESS ||
03107             Type == TT_BEVEL)
03108         {
03109             Type = TT_Mix;      // These are all mix
03110         }
03111 
03112         if (m_CommonType == TT_NoTranspType)
03113             m_CommonType = Type;
03114         else if (m_CommonType != Type)
03115             m_bCommonType = FALSE;
03116     }
03117 }

BOOL CommonTransInfo::UsesNonAlpha  )  [inline]
 

Definition at line 193 of file xpfrgn.h.

00193 { return(m_bUsesNonAlpha); }


Member Data Documentation

BOOL CommonTransInfo::m_bCommonType [protected]
 

Definition at line 196 of file xpfrgn.h.

BOOL CommonTransInfo::m_bUsesNonAlpha [protected]
 

Definition at line 198 of file xpfrgn.h.

UINT32 CommonTransInfo::m_CommonType [protected]
 

Definition at line 197 of file xpfrgn.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:53:03 2007 for Camelot by  doxygen 1.4.4