![]() |
![]() |
![]() |
GIMP Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
gboolean gimp_patterns_refresh (void
); gchar ** gimp_patterns_get_list (const gchar *filter
,gint *num_patterns
); gchar * gimp_patterns_get_pattern (gint *width
,gint *height
); gboolean gimp_patterns_set_pattern (const gchar *name
); gchar * gimp_patterns_get_pattern_data (const gchar *name
,gint *width
,gint *height
,gint *mask_bpp
,gint *length
,guint8 **mask_data
);
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. |
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()
.
|
An optional regular expression used to filter the list. |
|
The number of patterns in the pattern list. |
Returns : |
The list of pattern names. |
gchar * gimp_patterns_get_pattern (gint *width
,gint *height
);
gimp_patterns_get_pattern
is deprecated and should not be used in newly-written code. Use gimp_context_get_pattern()
instead.
|
The pattern width. |
|
The pattern height. |
Returns : |
The pattern name. |
gboolean gimp_patterns_set_pattern (const gchar *name
);
gimp_patterns_set_pattern
is deprecated and should not be used in newly-written code.
This procedure is deprecated! Use gimp_context_set_pattern()
instead.
|
The pattern name. |
Returns : |
TRUE on success. |
gchar * gimp_patterns_get_pattern_data (const gchar *name
,gint *width
,gint *height
,gint *mask_bpp
,gint *length
,guint8 **mask_data
);
gimp_patterns_get_pattern_data
is deprecated and should not be used in newly-written code. Use gimp_pattern_get_pixels()
instead.
|
The pattern name (\"\" means currently active pattern). |
|
The pattern width. |
|
The pattern height. |
|
Pattern bytes per pixel. |
|
Length of pattern mask data. |
|
The pattern mask data. |
Returns : |
The pattern name. |