Go to the documentation of this file.
56 rgba(std::uint8_t
r, std::uint8_t
g, std::uint8_t
b,
74 m_r =
static_cast<std::uint8_t
>(rgbCol >> 16);
75 m_g =
static_cast<std::uint8_t
>(rgbCol >> 8);
76 m_b =
static_cast<std::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 std::uint8_t
m_r, m_g, m_b, m_a;
std::uint8_t m_r
Definition: RGBA.h:113
rgba(std::uint8_t r, std::uint8_t g, std::uint8_t b, std::uint8_t a)
Construct an RGBA with the provided values.
Definition: RGBA.h:56
bool operator!=(const rgba &o) const
Definition: RGBA.h:109
std::uint32_t toRGB() const
Return a 32-bit unsigned integer as four packed R,G,B bytes.
Definition: RGBA.h:86
A basic RGBA type.
Definition: RGBA.h:36
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
@ g
Definition: GnashKey.h:153
int frnd(float f)
Definition: GnashNumeric.h:91
rgba colorFromHexString(const std::string &color)
Create an RGBA value from a hex string (e.g. FF0000)
Definition: RGBA.cpp:41
void log_error(StringType msg, Args... args)
Definition: log.h:283
const VGfloat color[4]
Definition: testr_gtk.cpp:82
@ r
Definition: GnashKey.h:164
T lerp(T a, T b, T f)
Definition: GnashNumeric.h:85
@ a
Definition: GnashKey.h:147
std::uint32_t toRGBA() const
Return a 32-bit unsigned integer as four packed A,R,G,B bytes.
Definition: RGBA.h:96
void parseRGB(std::uint32_t rgbCol)
Parse a 32-bit unsigned integer as three packed R,G,B bytes.
Definition: RGBA.h:73
constexpr rgba()
Construct default RGBA value.
Definition: RGBA.h:42
@ f
Definition: GnashKey.h:152
#define DSOTEXPORT
Definition: dsodefs.h:63
#define DSOEXPORT
Definition: dsodefs.h:55
bool operator==(const rgba &o) const
Definition: RGBA.h:102
@ o
Definition: GnashKey.h:161
@ b
Definition: GnashKey.h:148
std::ostream & operator<<(std::ostream &o, const URL &u)
Definition: URL.cpp:447