MRPT logo

mrpt::utils::TColor Struct Reference

A RGB color - 8bit. More...

#include <mrpt/utils/types.h>

Collaboration diagram for mrpt::utils::TColor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TColor (uint8_t r=0, uint8_t g=0, uint8_t b=0, uint8_t alpha=255)
 operator int (void) const
 Operator for implicit conversion into an int binary representation 0xRRGGBB.

Public Attributes

uint8_t R
uint8_t G
uint8_t B
uint8_t A

Static Public Attributes

static TColor red
 Predefined colors.
static TColor green
 Predefined colors.
static TColor blue
 Predefined colors.
static TColor white
 Predefined colors.
static TColor black
 Predefined colors.
static TColor gray
 Predefined colors.

Detailed Description

A RGB color - 8bit.

Definition at line 169 of file types.h.


Constructor & Destructor Documentation

mrpt::utils::TColor::TColor ( uint8_t  r = 0,
uint8_t  g = 0,
uint8_t  b = 0,
uint8_t  alpha = 255 
) [inline]

Definition at line 171 of file types.h.


Member Function Documentation

mrpt::utils::TColor::operator int ( void   )  const [inline]

Operator for implicit conversion into an int binary representation 0xRRGGBB.

Definition at line 174 of file types.h.


Member Data Documentation

Definition at line 172 of file types.h.

Definition at line 172 of file types.h.

Predefined colors.

Definition at line 180 of file types.h.

Predefined colors.

Definition at line 178 of file types.h.

Definition at line 172 of file types.h.

Predefined colors.

Definition at line 181 of file types.h.

Predefined colors.

Definition at line 177 of file types.h.

Definition at line 172 of file types.h.

Predefined colors.

Definition at line 176 of file types.h.

Predefined colors.

Definition at line 179 of file types.h.




Page generated by Doxygen 1.6.2 for MRPT 0.8.1 SVN:exported at Mon Feb 15 22:01:07 UTC 2010