RadialGradient.this - multiple declarations

Function RadialGradient.this

Create a RadialGradient from a existing cairo_pattern_t*. RadialGradient is a garbage collected class. It will call cairo_pattern_destroy when it gets collected by the GC or when dispose() is called.

Prototype

this(
  cairo_pattern_t* ptr
);

Warning

ptr's reference count is not increased by this function! Adjust reference count before calling it if necessary

Only use this if you know what your doing! This function should not be needed for standard cairoD usage.

Function RadialGradient.this

Creates a new radial gradient pattern between the two circles defined by (c0, radius0) and (c1, radius1). Before using the gradient pattern, a number of color stops should be defined using Pattern.addColorStopRGB() or Pattern.addColorStopRGBA().

Prototypes

this(
  Point!(double) c0,
  double radius0,
  Point!(double) c1,
  double radius1
);

this(
  double c0x,
  double c0y,
  double radius0,
  double c1x,
  double c1y,
  double radius1
);

Parameters

NameDescription
c0 center of the start circle
radius0 radius of the start circle
c1 center of the end circle
radius1 radius of the end circle

Note

The coordinates here are in pattern space. For a new pattern, pattern space is identical to user space, but the relationship between the spaces can be changed with Pattern.setMatrix().

Authors

Johannes Pfau cairoD
Andrej Mitrovic cairoD
cairo team cairo

Copyright

License

cairoD wrapper/bindings Boost License 1.0
cairo LGPL 2.1 / MPL 1.1