Color_t Struct Reference

Color object (red, green, blue, alpha). More...

#include <UTColor.h>

List of all members.

Public Member Functions

 Color_t ()
 Color_t (uint8 red, uint8 green, uint8 blue, uint8 alpha=255)
const Color_toperator= (const Color_t &copy)
bool operator== (const Color_t &other) const
bool operator!= (const Color_t &other) const

Public Attributes

uint8 red
uint8 green
uint8 blue
uint8 alpha

Detailed Description

Non-core library: UTgfx

Struct representing a color's red, green and blue values, and also its alpha value. An alpha value of 0 is completely transparent, and an alpha value of 255 is completely opaque. Red, green, blue values of 0,0,0 are black and 255,255,255 are white.

Definition at line 42 of file UTColor.h.


Constructor & Destructor Documentation

Color_t::Color_t (  )  [inline]

Contructor for an empty color, which is transparent having an alpha value of zero. Red, green, and blue also happen to be zero making the color transparent but with RGB specifying a color which is irrelevant but happens to be black.

Definition at line 104 of file UTColor.h.

Color_t::Color_t ( uint8  red,
uint8  green,
uint8  blue,
uint8  alpha = 255 
) [inline]

Contructor for a color.

Definition at line 114 of file UTColor.h.


Member Function Documentation

const Color_t & Color_t::operator= ( const Color_t copy  )  [inline]

Assignment operator.

Definition at line 124 of file UTColor.h.

bool Color_t::operator== ( const Color_t other  )  const [inline]

Comparison operator.

Definition at line 136 of file UTColor.h.

bool Color_t::operator!= ( const Color_t other  )  const [inline]

Comparison operator.

Definition at line 146 of file UTColor.h.


Member Data Documentation

The red value. 0 is minimum intensity, 255 is maximum intensity.

Definition at line 53 of file UTColor.h.

The green value. 0 is minimum intensity, 255 is maximum intensity.

Definition at line 57 of file UTColor.h.

The blue value. 0 is minimum intensity, 255 is maximum intensity.

Definition at line 61 of file UTColor.h.

The alpha value. 0 is completely transparent, 255 is completely opaque.

Definition at line 65 of file UTColor.h.


The documentation for this struct was generated from the following file:

Generated on Tue Dec 14 22:35:06 2010 for UT library by  doxygen 1.6.1