Gradient.this

Warning gtk_gradient_new_linear has been deprecated since version 3.8 and should not be used in newly-written code. GtkGradient is deprecated. Creates a new linear gradient along the line defined by (x0, y0) and (x1, y1). Before using the gradient a number of stop colors must be added through gtk_gradient_add_color_stop().

  1. this(GtkGradient* gtkGradient)
  2. this(double x0, double y0, double x1, double y1)
    class Gradient
    this
    (
    double x0
    ,
    double y0
    ,
    double x1
    ,
    double y1
    )
  3. this(double x0, double y0, double radius0, double x1, double y1, double radius1)

Parameters

x0 double

X coordinate of the starting point

y0 double

Y coordinate of the starting point

x1 double

X coordinate of the end point

y1 double

Y coordinate of the end point

Throws

ConstructionException GTK+ fails to create the object.

Meta