A structure storing an RGBA value. More...
#include <rgba.h>
Public Member Functions | |
RGBA (double r=0.0, double g=0.0, double b=0.0, double a=1.0) | |
RGBA (const Glib::ustring &name, double a=1.0) | |
double | operator[] (unsigned index) |
operator Cairo::RefPtr< Cairo::Pattern > () const | |
operator Fill::pointer () const | |
operator Stroke::pointer () const | |
operator Paint::pointer () const | |
Public Attributes | |
double | red |
double | green |
double | blue |
double | alpha |
Static Private Member Functions | |
static void | initialize_regular_expressions () |
Static Private Attributes | |
static regex_t | regular_expression [4] |
static bool | regex_initialized = false |
A structure storing an RGBA value.
Papyrus::RGBA::RGBA | ( | double | r = 0.0 , |
|
double | g = 0.0 , |
|||
double | b = 0.0 , |
|||
double | a = 1.0 | |||
) |
Papyrus::RGBA::RGBA | ( | const Glib::ustring & | name, | |
double | a = 1.0 | |||
) |
References alpha, blue, green, initialize_regular_expressions(), red, regex_initialized, regular_expression, and Papyrus::x11_color().
void Papyrus::RGBA::initialize_regular_expressions | ( | ) | [static, private] |
References regex_initialized, and regular_expression.
Referenced by RGBA().
Papyrus::RGBA::operator Cairo::RefPtr< Cairo::Pattern > | ( | ) | const |
Papyrus::RGBA::operator Fill::pointer | ( | ) | const |
References alpha, blue, Papyrus::Fill::create(), green, and red.
Papyrus::RGBA::operator Paint::pointer | ( | ) | const |
References alpha, blue, Papyrus::Color::create(), green, and red.
Papyrus::RGBA::operator Stroke::pointer | ( | ) | const |
References alpha, blue, Papyrus::Stroke::create(), green, and red.
double Papyrus::RGBA::alpha |
Referenced by Papyrus::Gradient::Stop::alpha(), operator Fill::pointer(), operator Paint::pointer(), Papyrus::YUVA::operator RGBA(), Papyrus::HSLA::operator RGBA(), Papyrus::HSBA::operator RGBA(), operator Stroke::pointer(), Papyrus::YUVA::operator=(), Papyrus::HSLA::operator=(), Papyrus::HSBA::operator=(), operator[](), Papyrus::process_stop(), and RGBA().
double Papyrus::RGBA::blue |
Referenced by Papyrus::Gradient::Stop::blue(), operator Fill::pointer(), operator Paint::pointer(), Papyrus::YUVA::operator RGBA(), Papyrus::HSLA::operator RGBA(), Papyrus::HSBA::operator RGBA(), operator Stroke::pointer(), Papyrus::YUVA::operator=(), Papyrus::HSLA::operator=(), Papyrus::HSBA::operator=(), operator[](), Papyrus::process_stop(), and RGBA().
double Papyrus::RGBA::green |
Referenced by Papyrus::Gradient::Stop::green(), operator Fill::pointer(), operator Paint::pointer(), Papyrus::YUVA::operator RGBA(), Papyrus::HSLA::operator RGBA(), Papyrus::HSBA::operator RGBA(), operator Stroke::pointer(), Papyrus::YUVA::operator=(), Papyrus::HSLA::operator=(), Papyrus::HSBA::operator=(), operator[](), Papyrus::process_stop(), and RGBA().
double Papyrus::RGBA::red |
Referenced by operator Fill::pointer(), operator Paint::pointer(), Papyrus::YUVA::operator RGBA(), Papyrus::HSLA::operator RGBA(), Papyrus::HSBA::operator RGBA(), operator Stroke::pointer(), Papyrus::YUVA::operator=(), Papyrus::HSLA::operator=(), Papyrus::HSBA::operator=(), operator[](), Papyrus::process_stop(), Papyrus::Gradient::Stop::red(), and RGBA().
bool Papyrus::RGBA::regex_initialized = false [static, private] |
Referenced by initialize_regular_expressions(), and RGBA().
regex_t Papyrus::RGBA::regular_expression [static, private] |
Referenced by initialize_regular_expressions(), and RGBA().