MRPT logo
Public Member Functions | Public Attributes | Static Public Attributes

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 221 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 223 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 226 of file types.h.


Member Data Documentation

Definition at line 224 of file types.h.

Definition at line 224 of file types.h.

Predefined colors.

Definition at line 232 of file types.h.

Predefined colors.

Definition at line 230 of file types.h.

Definition at line 224 of file types.h.

Predefined colors.

Definition at line 233 of file types.h.

Predefined colors.

Definition at line 229 of file types.h.

Definition at line 224 of file types.h.

Predefined colors.

Definition at line 228 of file types.h.

Predefined colors.

Definition at line 231 of file types.h.




Page generated by Doxygen 1.7.1 for MRPT 0.8.1 SVN:exported at Sun Sep 19 14:53:45 UTC 2010