Color Class Reference

An RGBA color. More...

#include <common.h>

List of all members.

Public Member Functions

 Color (char r=255, char g=255, char b=255, char a=255)
 Constructor.
SDL_Color toSDLColor () const
 Convert this color to an SDL_Color struct.
char r () const
 Get a color component from this object.
char g () const
 Get a color component from this object.
char b () const
 Get a color component from this object.
char a () const
 Get a color component from this object.

Private Attributes

char m_R
char m_G
char m_B
char m_A


Detailed Description

An RGBA color.

Each color can have four color attributes, including the optional alpha value. However, only the first three are actually used by the engine at this time, though that may change in the future


Constructor & Destructor Documentation

Color::Color ( char  r = 255,
char  g = 255,
char  b = 255,
char  a = 255 
) [inline]

Constructor.

Parameters:
r The red component
g The green component
b The blue component
a The alpha component


Member Function Documentation

SDL_Color Color::toSDLColor (  )  const [inline]

Convert this color to an SDL_Color struct.

Returns:
A completed SDL_Color struct


The documentation for this class was generated from the following file:
Generated on Fri Feb 22 22:29:23 2008 for Phoenix Wright Case Player API by  doxygen 1.5.3