Public Member Functions | Static Public Member Functions | Protected Member Functions

Cairo::LinearGradient Class Reference

Inheritance diagram for Cairo::LinearGradient:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 LinearGradient (cairo_pattern_t*cobject, bool has_reference=false)
 Create a C++ wrapper for the C instance.
void get_linear_points (double& x0, double& y0, double& x1, double& y1) const
virtual ~LinearGradient ()

Static Public Member Functions

static RefPtr< LinearGradientcreate (double x0, double y0, double x1, double y1)

Protected Member Functions

 LinearGradient (double x0, double y0, double x1, double y1)

Constructor & Destructor Documentation

Cairo::LinearGradient::LinearGradient ( double  x0,
double  y0,
double  x1,
double  y1 
) [protected]
Cairo::LinearGradient::LinearGradient ( cairo_pattern_t *  cobject,
bool  has_reference = false 
) [explicit]

Create a C++ wrapper for the C instance.

This C++ instance should then be given to a RefPtr.

Parameters:
cobjectThe C instance.
has_referenceWhether we already have a reference. Otherwise, the constructor will take an extra reference.
virtual Cairo::LinearGradient::~LinearGradient ( ) [virtual]

Member Function Documentation

static RefPtr<LinearGradient> Cairo::LinearGradient::create ( double  x0,
double  y0,
double  x1,
double  y1 
) [static]
void Cairo::LinearGradient::get_linear_points ( double &  x0,
double &  y0,
double &  x1,
double &  y1 
) const
Parameters:
x0return value for the x coordinate of the first point
y0return value for the y coordinate of the first point
x1return value for the x coordinate of the second point
y1return value for the y coordinate of the second point

Gets the gradient endpoints for a linear gradient.

Since:
1.4

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