gimpgradients

gimpgradients — Operations related to gradients.

Functions

gboolean gimp_gradients_refresh ()
gchar ** gimp_gradients_get_list ()

Description

Operations related to gradients.

Functions

gimp_gradients_refresh ()

gboolean
gimp_gradients_refresh (void);

Refresh current gradients. This function always succeeds.

This procedure retrieves all gradients currently in the user's gradient path and updates the gradient dialogs accordingly.

Returns

TRUE on success.


gimp_gradients_get_list ()

gchar **
gimp_gradients_get_list (const gchar *filter,
                         gint *num_gradients);

Retrieve the list of loaded gradients.

This procedure returns a list of the gradients that are currently loaded. You can later use the gimp_context_set_gradient() function to set the active gradient.

Parameters

filter

An optional regular expression used to filter the list.

 

num_gradients

The number of loaded gradients.

[out]

Returns

The list of gradient names. The returned value must be freed with g_strfreev().

[array length=num_gradients][element-type gchar*][transfer full]

Types and Values