Gtk.Gradient.prototype.resolve
function resolve(props:Gtk.StyleProperties):Boolean { // Gjs wrapper for gtk_gradient_resolve() }
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.
Since 3.0
- props
Gtk.StyleProperties to use when resolving named colors
- Returns
true if the gradient has been resolved