Radial gradients. More...
#include <radialgradient.h>
Classes | |
struct | Circle |
Public Member Functions | |
PAPYRUS_RENDERABLE (RadialGradient) | |
virtual | ~RadialGradient () |
const Circle & | outer_circle () const |
void | set_outer_circle (const Circle &outer) |
const Circle & | inner_circle () const |
void | set_inner_circle (const Circle &inner) |
void | set_circles (const Circle &outer, const Circle &inner) |
virtual void | render (Context &cairo) const |
Static Public Member Functions | |
static pointer | create (double ox, double oy, double orad, Quantity q=ABSOLUTE) |
static pointer | create (const Circle &outer) |
static pointer | create (const Circle &outer, const Circle &inner) |
Protected Member Functions | |
RadialGradient (const Circle &outer, const Circle &inner) | |
Protected Attributes | |
Circle | m_outer_circle |
Circle | m_inner_circle |
Radial gradients.
This is similar to the cairo radial gradient class. However, several items have been added to support SVG style gradients.
Referenced by create().
Papyrus::RadialGradient::~RadialGradient | ( | ) | [virtual] |
RadialGradient::pointer Papyrus::RadialGradient::create | ( | const Circle & | outer, | |
const Circle & | inner | |||
) | [static] |
References RadialGradient().
RadialGradient::pointer Papyrus::RadialGradient::create | ( | const Circle & | outer | ) | [static] |
References RadialGradient().
RadialGradient::pointer Papyrus::RadialGradient::create | ( | double | ox, | |
double | oy, | |||
double | orad, | |||
Quantity | q = ABSOLUTE | |||
) | [static] |
References RadialGradient().
Referenced by render().
const RadialGradient::Circle & Papyrus::RadialGradient::inner_circle | ( | ) | const |
References m_inner_circle.
const RadialGradient::Circle & Papyrus::RadialGradient::outer_circle | ( | ) | const |
References m_outer_circle.
Papyrus::RadialGradient::PAPYRUS_RENDERABLE | ( | RadialGradient | ) |
void Papyrus::RadialGradient::render | ( | Context & | cairo | ) | const [virtual] |
Implements Papyrus::Renderable.
References create(), Papyrus::GRADIENT_SPREAD_NONE, Papyrus::GRADIENT_SPREAD_PAD, Papyrus::RadialGradient::Circle::has_percent(), Papyrus::Context::is_flag_set(), m_inner_circle, m_outer_circle, Papyrus::PERCENT, Papyrus::RadialGradient::Circle::quantity_r, Papyrus::LinearGradient::Point::quantity_x, Papyrus::LinearGradient::Point::quantity_y, Papyrus::RadialGradient::Circle::r, Papyrus::RENDER_HINT_STROKE, Papyrus::Gradient::spread(), Papyrus::Gradient::stops(), Papyrus::Point::x, and Papyrus::Point::y.
References m_inner_circle, m_outer_circle, and Papyrus::Object::m_signal_changed.
void Papyrus::RadialGradient::set_inner_circle | ( | const Circle & | inner | ) |
References m_inner_circle, and Papyrus::Object::m_signal_changed.
void Papyrus::RadialGradient::set_outer_circle | ( | const Circle & | outer | ) |
References m_outer_circle, and Papyrus::Object::m_signal_changed.
Circle Papyrus::RadialGradient::m_inner_circle [protected] |
Referenced by inner_circle(), render(), set_circles(), and set_inner_circle().
Circle Papyrus::RadialGradient::m_outer_circle [protected] |
Referenced by outer_circle(), render(), set_circles(), and set_outer_circle().