claw::graphic::pixel24 Struct Reference

#include <pixel.hpp>

List of all members.


Detailed Description

RGB pixel.

Definition at line 40 of file pixel.hpp.


Public Types

typedef unsigned char component_type

Public Member Functions

 pixel24 ()
 Default constructor.
 pixel24 (component_type r, component_type g, component_type b)
 Constructor.

Public Attributes

struct {
   component_type   red
 Red component.
   component_type   green
 Green component.
   component_type   blue
 Blue component.
components

Member Typedef Documentation

Definition at line 42 of file pixel.hpp.


Constructor & Destructor Documentation

claw::graphic::pixel24::pixel24 (  )  [inline]

Default constructor.

Definition at line 60 of file pixel.hpp.

00060 {}

claw::graphic::pixel24::pixel24 ( component_type  r,
component_type  g,
component_type  b 
) [inline]

Constructor.

Parameters:
r The value of the red field.
g The value of the green field.
b The value of the blue field.

Definition at line 68 of file pixel.hpp.

References components.

00069       { 
00070         components.red = r;
00071         components.green = g;
00072         components.blue = b;
00073       } // pixel24()


Member Data Documentation

Red component.

Definition at line 48 of file pixel.hpp.

Referenced by claw::graphic::pixel32::operator=().

Green component.

Definition at line 51 of file pixel.hpp.

Referenced by claw::graphic::pixel32::operator=().

Blue component.

Definition at line 54 of file pixel.hpp.

Referenced by claw::graphic::pixel32::operator=().


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

Generated on Thu May 22 21:07:38 2008 for CLAW Library (a C++ Library Absolutely Wonderful) by  doxygen 1.5.5