papyrus logo

Papyrus::LinearGradient Class Reference

Linear gradients. More...

#include <lineargradient.h>

Inheritance diagram for Papyrus::LinearGradient:
Inheritance graph

List of all members.


struct  Point
struct  Vector

Public Member Functions

virtual ~LinearGradient ()
const Vectorvector () const
void set_vector (const Vector &v)
virtual void render (Context &cairo) const

Static Public Member Functions

static pointer create (double x0, double y0, double x1, double y1, Quantity q=ABSOLUTE)
static pointer create (const Papyrus::Point &p0, const Papyrus::Point &p1, Quantity q=ABSOLUTE)
static pointer create (const Point &p0, const Point &p1)
static pointer create (const Vector &v)

Protected Member Functions

 LinearGradient (const Vector &v)

Protected Attributes

Vector m_vector

Detailed Description

Linear gradients.

This is similar to the cairo linear gradient class. However, several items have been added to support SVG style gradients.

Rick L Vinyard Jr <>

Constructor & Destructor Documentation

Papyrus::LinearGradient::LinearGradient ( const Vector v  )  [protected]

Referenced by create().

Papyrus::LinearGradient::~LinearGradient (  )  [virtual]

Member Function Documentation

LinearGradient::pointer Papyrus::LinearGradient::create ( const Vector v  )  [static]

References LinearGradient().

LinearGradient::pointer Papyrus::LinearGradient::create ( const Point p0,
const Point p1 
) [static]

References LinearGradient().

LinearGradient::pointer Papyrus::LinearGradient::create ( const Papyrus::Point p0,
const Papyrus::Point p1,
Quantity  q = ABSOLUTE 
) [static]

References LinearGradient().

LinearGradient::pointer Papyrus::LinearGradient::create ( double  x0,
double  y0,
double  x1,
double  y1,
Quantity  q = ABSOLUTE 
) [static]

References LinearGradient().

Referenced by render().

Papyrus::LinearGradient::PAPYRUS_RENDERABLE ( LinearGradient   ) 
void Papyrus::LinearGradient::render ( Context cairo  )  const [virtual]
void Papyrus::LinearGradient::set_vector ( const Vector v  ) 
const LinearGradient::Vector & Papyrus::LinearGradient::vector (  )  const

References m_vector.

Member Data Documentation

Referenced by render(), set_vector(), and vector().

The documentation for this class was generated from the following files:

Generated on Fri Apr 16 12:41:07 2010 for papyrus by doxygen 1.6.1