Gnash 0.8.9
|
Color transformation record. More...
#include <SWFCxForm.h>
Public Member Functions | |
SWFCxForm () | |
Construct an identity CxForm. | |
void | concatenate (const SWFCxForm &c) |
Concatenate SWFCxForm c onto ours. | |
rgba | transform (const rgba &in) const |
Transform the given color, return the result. | |
void | transform (boost::uint8_t &r, boost::uint8_t &g, boost::uint8_t &b, boost::uint8_t &a) const |
Transform the given color. | |
Public Attributes | |
boost::int16_t | ra |
boost::int16_t | ga |
boost::int16_t | ba |
boost::int16_t | aa |
boost::int16_t | rb |
boost::int16_t | gb |
boost::int16_t | bb |
boost::int16_t | ab |
Color transformation record.
gnash::SWFCxForm::SWFCxForm | ( | ) | [inline] |
Construct an identity CxForm.
void gnash::SWFCxForm::concatenate | ( | const SWFCxForm & | c | ) |
void gnash::SWFCxForm::transform | ( | boost::uint8_t & | r, |
boost::uint8_t & | g, | ||
boost::uint8_t & | b, | ||
boost::uint8_t & | a | ||
) | const |
Transform the given color.
References gnash::key::a, aa, ab, gnash::key::b, ba, bb, gnash::key::g, ga, gb, gnash::key::r, ra, and rb.
Transform the given color, return the result.
References gnash::rgba::m_a, gnash::rgba::m_b, gnash::rgba::m_g, and gnash::rgba::m_r.
Referenced by gnash::Renderer_cairo::apply_line_style(), gnash::TextField::display(), gnash::SWF::TextRecord::displayRecords(), and gnash::AddStyles::operator()().
boost::int16_t gnash::SWFCxForm::aa |
Referenced by concatenate(), gnash::invisible(), gnash::operator<<(), gnash::operator==(), gnash::readCxFormRGBA(), and transform().
boost::int16_t gnash::SWFCxForm::ab |
Referenced by concatenate(), gnash::invisible(), gnash::operator<<(), gnash::operator==(), gnash::readCxFormRGBA(), and transform().
boost::int16_t gnash::SWFCxForm::ba |
Referenced by concatenate(), gnash::operator<<(), gnash::operator==(), gnash::readCxFormRGB(), gnash::readCxFormRGBA(), and transform().
boost::int16_t gnash::SWFCxForm::bb |
Referenced by concatenate(), gnash::operator<<(), gnash::operator==(), gnash::readCxFormRGB(), gnash::readCxFormRGBA(), and transform().
boost::int16_t gnash::SWFCxForm::ga |
Referenced by concatenate(), gnash::operator<<(), gnash::operator==(), gnash::readCxFormRGB(), gnash::readCxFormRGBA(), and transform().
boost::int16_t gnash::SWFCxForm::gb |
Referenced by concatenate(), gnash::operator<<(), gnash::operator==(), gnash::readCxFormRGB(), gnash::readCxFormRGBA(), and transform().
boost::int16_t gnash::SWFCxForm::ra |
Referenced by concatenate(), gnash::operator<<(), gnash::operator==(), gnash::readCxFormRGB(), gnash::readCxFormRGBA(), and transform().
boost::int16_t gnash::SWFCxForm::rb |
Referenced by concatenate(), gnash::operator<<(), gnash::operator==(), gnash::readCxFormRGB(), gnash::readCxFormRGBA(), and transform().