Function

GtkGradientnew_radial

deprecated: 3.8 since: 3.0

Declaration [src]

GtkGradient*
gtk_gradient_new_radial (
  gdouble x0,
  gdouble y0,
  gdouble radius0,
  gdouble x1,
  gdouble y1,
  gdouble radius1
)

Description [src]

Creates a new radial gradient along the two circles defined by (x0, y0, radius0) and (x1, y1, radius1). 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 start circle.

y0

Type: gdouble

Y coordinate of the start circle.

radius0

Type: gdouble

Radius of the start circle.

x1

Type: gdouble

X coordinate of the end circle.

y1

Type: gdouble

Y coordinate of the end circle.

radius1

Type: gdouble

Radius of the end circle.

Return value

Type: GtkGradient

A newly created GtkGradient.

The caller of the function takes ownership of the data, and is responsible for freeing it.