ROSE  0.11.145.0
Public Member Functions | List of all members
Rose::Color::RGB Class Reference

Description

Colors in RGB space.

Definition at line 135 of file Color.h.

#include <Rose/Color.h>

Public Member Functions

 RGB ()
 Default constructed color. More...
 
 RGB (Component r, Component g, Component b, Component a=1.0)
 Construct a color specified by components. More...
 
 RGB (const HSV &)
 Convert an HSV color to RGB space. More...
 
std::string toHtml () const
 Convert to HTML string. More...
 
std::string toAnsi (Layer::Flag) const
 Convert to ANSI color escape. More...
 
Component r () const
 Component of color. More...
 
Component g () const
 Component of color. More...
 
Component b () const
 Component of color. More...
 
Component a () const
 Component of color. More...
 
Component red () const
 Component of color. More...
 
Component green () const
 Component of color. More...
 
Component blue () const
 Component of color. More...
 
Component alpha () const
 Component of color. More...
 

Constructor & Destructor Documentation

Rose::Color::RGB::RGB ( )
inline

Default constructed color.

Default constructed colors are useful when a color is stored in a container, but should not generally be used otherwise. Therefore, a default constructed color will be bright red as a warning.

Definition at line 143 of file Color.h.

Rose::Color::RGB::RGB ( Component  r,
Component  g,
Component  b,
Component  a = 1.0 
)
inline

Construct a color specified by components.

Definition at line 146 of file Color.h.

Rose::Color::RGB::RGB ( const HSV )

Convert an HSV color to RGB space.

Member Function Documentation

Component Rose::Color::RGB::r ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 156 of file Color.h.

Component Rose::Color::RGB::g ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 157 of file Color.h.

Component Rose::Color::RGB::b ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 158 of file Color.h.

Component Rose::Color::RGB::a ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 159 of file Color.h.

Component Rose::Color::RGB::red ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 160 of file Color.h.

Component Rose::Color::RGB::green ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 161 of file Color.h.

Component Rose::Color::RGB::blue ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 162 of file Color.h.

Component Rose::Color::RGB::alpha ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 163 of file Color.h.

std::string Rose::Color::RGB::toHtml ( ) const

Convert to HTML string.

std::string Rose::Color::RGB::toAnsi ( Layer::Flag  ) const

Convert to ANSI color escape.


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