gimpbrush

gimpbrush —

Synopsis




gchar*      gimp_brush_new                  (const gchar *name);
gchar*      gimp_brush_duplicate            (const gchar *name);
gchar*      gimp_brush_rename               (const gchar *name,
                                             const gchar *new_name);
gboolean    gimp_brush_delete               (const gchar *name);
gboolean    gimp_brush_get_info             (const gchar *name,
                                             gint *width,
                                             gint *height);
gboolean    gimp_brush_get_spacing          (const gchar *name,
                                             gint *spacing);
gboolean    gimp_brush_set_spacing          (const gchar *name,
                                             gint spacing);

Description

Details

gimp_brush_new ()

gchar*      gimp_brush_new                  (const gchar *name);

Creates a new brush

This procedure creates a new, uninitialized brush

name : The requested name of the new brush.
Returns : The actual new brush name.

Since GIMP 2.2


gimp_brush_duplicate ()

gchar*      gimp_brush_duplicate            (const gchar *name);

Duplicates a brush

This procedure creates an identical brush by a different name

name : The brush name (\"\" means currently active brush).
Returns : The name of the brush's copy.

Since GIMP 2.2


gimp_brush_rename ()

gchar*      gimp_brush_rename               (const gchar *name,
                                             const gchar *new_name);

Rename a brush

This procedure renames a brush

name : The brush name (\"\" means currently active brush).
new_name : The new name of the brush.
Returns : The actual new name of the brush.

Since GIMP 2.2


gimp_brush_delete ()

gboolean    gimp_brush_delete               (const gchar *name);

Deletes a brush

This procedure deletes a brush

name : The brush name (\"\" means currently active brush).
Returns : TRUE on success.

Since GIMP 2.2


gimp_brush_get_info ()

gboolean    gimp_brush_get_info             (const gchar *name,
                                             gint *width,
                                             gint *height);

Retrieve information about the specified brush.

This procedure retrieves information about the specified brush. This includes the brush name, and the brush extents (width and height).

name : The brush name (\"\" means currently active brush).
width : The brush width.
height : The brush height.
Returns : TRUE on success.

Since GIMP 2.2


gimp_brush_get_spacing ()

gboolean    gimp_brush_get_spacing          (const gchar *name,
                                             gint *spacing);

Get the brush spacing.

This procedure returns the spacing setting for the specified brush. The return value is an integer between 0 and 1000 which represents percentage of the maximum of the width and height of the mask.

name : The brush name (\"\" means currently active brush).
spacing : The brush spacing.
Returns : TRUE on success.

Since GIMP 2.2


gimp_brush_set_spacing ()

gboolean    gimp_brush_set_spacing          (const gchar *name,
                                             gint spacing);

Set the brush spacing.

This procedure modifies the spacing setting for the specified brush. The value should be a integer between 0 and 1000.

name : The brush name (\"\" means currently active brush).
spacing : The brush spacing.
Returns : TRUE on success.

Since GIMP 2.2