gimppatterns

gimppatterns — Functions relating to patterns.

Functions

gboolean gimp_patterns_refresh ()
gchar ** gimp_patterns_get_list ()

Description

Functions relating to patterns.

Functions

gimp_patterns_refresh ()

gboolean
gimp_patterns_refresh (void);

Refresh current patterns. This function always succeeds.

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

Returns

TRUE on success.


gimp_patterns_get_list ()

gchar **
gimp_patterns_get_list (const gchar *filter,
                        gint *num_patterns);

Retrieve a complete listing of the available patterns.

This procedure returns a complete listing of available GIMP patterns. Each name returned can be used as input to the gimp_context_set_pattern().

Parameters

filter

An optional regular expression used to filter the list.

 

num_patterns

The number of patterns in the pattern list.

[out]

Returns

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

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

Types and Values