Function
GtkGradientnew_linear
deprecated: 3.8 since: 3.0
Declaration [src]
GtkGradient*
gtk_gradient_new_linear (
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1
)
Description [src]
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().
Available since: 3.0
Deprecated since: 3.8
GtkGradient
is deprecated.
Parameters
x0
-
Type:
gdouble
X coordinate of the starting point.
y0
-
Type:
gdouble
Y coordinate of the starting point.
x1
-
Type:
gdouble
X coordinate of the end point.
y1
-
Type:
gdouble
Y coordinate of the end point.
Return value
Type: GtkGradient
A newly created GtkGradient
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |