Create a LinearGradient from a existing cairo_pattern_t*. LinearGradient is a garbage collected class. It will call cairo_pattern_destroy when it gets collected by the GC or when dispose() is called.
Create a new linear gradient Pattern along the line defined by p1 and p2. Before using the gradient pattern, a number of color stops should be defined using Gradient.addColorStopRGB() or Gradient.addColorStopRGBA().
Convenience alias
Gets the gradient endpoints for a linear gradient.
Adds an opaque color stop to a gradient pattern. The offset specifies the location along the gradient's control vector. For example, a LinearGradient's control vector is from (x0,y0) to (x1,y1) while a RadialGradient's control vector is from any point on the start circle to the corresponding point on the end circle.
Adds a translucent color stop to a gradient pattern. The offset specifies the location along the gradient's control vector. For example, a linear gradient's control vector is from (x0,y0) to (x1,y1) while a radial gradient's control vector is from any point on the start circle to the corresponding point on the end circle.
Gets the number of color stops specified in the given gradient pattern.
Convenience alias
Gets the color and offset information at the given index for a gradient pattern. Values of index are 0 to 1 less than the number returned by getColorStopCount().
A linear gradient.
Use the this(Point!double p1, Point!double p2) constructor to create an instance.