Method

GtkGradientresolve

deprecated: 3.8 since: 3.0

Declaration [src]

gboolean
gtk_gradient_resolve (
  GtkGradient* gradient,
  GtkStyleProperties* props,
  cairo_pattern_t** resolved_gradient
)

Description [src]

If gradient is resolvable, resolved_gradient will be filled in with the resolved gradient as a cairo_pattern_t, and TRUE will be returned. Generally, if gradient can’t be resolved, it is due to it being defined on top of a named color that doesn’t exist in props.

Available since: 3.0

Deprecated since: 3.8

GtkGradient is deprecated.

Parameters

props

Type: GtkStyleProperties

GtkStyleProperties to use when resolving named colors.

The data is owned by the caller of the method.
resolved_gradient

Type: cairo_pattern_t

Return location for the resolved pattern.

The argument will be set by the function.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.

Return value

Type: gboolean

TRUE if the gradient has been resolved.