25 #include <boost/cstdint.hpp>
56 rgba(boost::uint8_t
r, boost::uint8_t
g, boost::uint8_t
b,
74 m_r =
static_cast<boost::uint8_t
>(rgbCol >> 16);
75 m_g =
static_cast<boost::uint8_t
>(rgbCol >> 8);
76 m_b =
static_cast<boost::uint8_t
>(rgbCol);
87 return (m_r << 16) + (m_g << 8) + m_b;
97 return toRGB() + (m_a << 24);
103 return m_r == o.
m_r &&
110 return !(*
this ==
o);
113 boost::uint8_t
m_r, m_g, m_b, m_a;
Definition: GnashKey.h:147
void parseRGB(boost::uint32_t rgbCol)
Parse a 32-bit unsigned integer as three packed R,G,B bytes.
Definition: RGBA.h:73
boost::uint8_t m_a
Definition: RGBA.h:113
bool operator!=(const rgba &o) const
Definition: RGBA.h:109
boost::uint32_t toRGBA() const
Return a 32-bit unsigned integer as four packed A,R,G,B bytes.
Definition: RGBA.h:96
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
rgba(boost::uint8_t r, boost::uint8_t g, boost::uint8_t b, boost::uint8_t a)
Construct an RGBA with the provided values.
Definition: RGBA.h:56
Definition: GnashKey.h:152
Definition: GnashKey.h:161
const VGfloat color[4]
Definition: testr_gtk.cpp:82
Definition: GnashKey.h:164
std::ostream & operator<<(std::ostream &o, const URL &u)
Definition: URL.cpp:448
T lerp(T a, T b, T f)
Definition: GnashNumeric.h:84
rgba colorFromHexString(const std::string &color)
Create an RGBA value from a hex string (e.g. FF0000)
Definition: RGBA.cpp:41
Definition: GnashKey.h:148
#define DSOEXPORT
Definition: dsodefs.h:55
bool operator==(const rgba &o) const
Definition: RGBA.h:102
#define DSOTEXPORT
Definition: dsodefs.h:63
Definition: GnashKey.h:153
rgba()
Construct default RGBA value.
Definition: RGBA.h:42
boost::uint32_t toRGB() const
Return a 32-bit unsigned integer as four packed R,G,B bytes.
Definition: RGBA.h:86
boost::uint8_t m_b
Definition: RGBA.h:113
boost::uint8_t m_r
Definition: RGBA.h:113
boost::uint8_t m_g
Definition: RGBA.h:113
A basic RGBA type.
Definition: RGBA.h:35