## gimpbrush

gimpbrush

## Functions

gchar * | gimp_brush_new ()
gchar * | gimp_brush_duplicate ()
gchar * | gimp_brush_rename ()
gboolean | gimp_brush_delete ()
gboolean | gimp_brush_get_info ()
gboolean | gimp_brush_get_pixels ()
gboolean | gimp_brush_get_spacing ()
gboolean | gimp_brush_set_spacing ()
GimpBrushGeneratedShape | gimp_brush_get_shape ()
GimpBrushGeneratedShape | gimp_brush_set_shape ()
gint | gimp_brush_get_spikes ()
gint | gimp_brush_set_spikes ()
gdouble | gimp_brush_get_angle ()
gdouble | gimp_brush_set_angle ()
gdouble | gimp_brush_get_radius ()
gdouble | gimp_brush_set_radius ()
gdouble | gimp_brush_get_aspect_ratio ()
gdouble | gimp_brush_set_aspect_ratio ()
gdouble | gimp_brush_get_hardness ()
gdouble | gimp_brush_set_hardness ()
gboolean | gimp_brush_is_generated ()
gboolean | gimp_brush_is_editable ()

## Description

## Functions

### gimp_brush_new ()

    gchar *
    gimp_brush_new (const gchar *name);

Since: GIMP 2.2

### gimp_brush_duplicate ()

    gchar *
    gimp_brush_duplicate (const gchar *name);

Since: GIMP 2.2

### gimp_brush_rename ()

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

Since: GIMP 2.2

### gimp_brush_delete ()

    gboolean
    gimp_brush_delete (const gchar *name);

Since: GIMP 2.2

### gimp_brush_get_info ()

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

Since: GIMP 2.2

### gimp_brush_get_pixels ()

    gboolean
    gimp_brush_get_pixels (const gchar *name,
                           gint *width,
                           gint *height,
                           gint *mask_bpp,
                           gint *num_mask_bytes,
                           guint8 **mask_bytes,
                           gint *color_bpp,
                           gint *num_color_bytes,
                           guint8 **color_bytes);

Since: GIMP 2.2

### gimp_brush_get_spacing ()

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

Since: GIMP 2.2

### gimp_brush_set_spacing ()

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

Since: GIMP 2.4

### gimp_brush_get_shape ()

    GimpBrushGeneratedShape
    gimp_brush_get_shape (const gchar *name);

Since: GIMP 2.4

### gimp_brush_set_shape ()

    GimpBrushGeneratedShape
    gimp_brush_set_shape (const gchar *name,
                          GimpBrushGeneratedShape shape_in);

Since: GIMP 2.4

### gimp_brush_get_spikes ()

    gint
    gimp_brush_get_spikes (const gchar *name);

Since: GIMP 2.4

### gimp_brush_set_spikes ()

    gint
    gimp_brush_set_spikes (const gchar *name,
                           gint spikes_in);

Since: GIMP 2.4

### gimp_brush_get_angle ()

    gdouble
    gimp_brush_get_angle (const gchar *name);

Since: GIMP 2.4

### gimp_brush_set_angle ()

    gdouble
    gimp_brush_set_angle (const gchar *name,
                          gdouble angle_in);

Since: GIMP 2.4

### gimp_brush_get_radius ()

    gdouble
    gimp_brush_get_radius (const gchar *name);

Since: GIMP 2.4

### gimp_brush_set_radius ()

    gdouble
    gimp_brush_set_radius (const gchar *name,
                           gdouble radius_in);

Since: GIMP 2.4

### gimp_brush_get_aspect_ratio ()

    gdouble
    gimp_brush_get_aspect_ratio (const gchar *name);

Since: GIMP 2.4

### gimp_brush_set_aspect_ratio ()

    gdouble
    gimp_brush_set_aspect_ratio (const gchar *name,
                                 gdouble aspect_ratio_in);

Since: GIMP 2.4

### gimp_brush_get_hardness ()

    gdouble
    gimp_brush_get_hardness (const gchar *name);

Since: GIMP 2.4

### gimp_brush_set_hardness ()

    gdouble
    gimp_brush_set_hardness (const gchar *name,
                             gdouble hardness_in);

Since: GIMP 2.4

### gimp_brush_is_generated ()

    gboolean
    gimp_brush_is_generated (const gchar *name);

Since: GIMP 2.4

### gimp_brush_is_editable ()

    gboolean
    gimp_brush_is_editable (const gchar *name);

Since: GIMP 2.4

## Types and Values