GimpBrush

GimpBrush

Synopsis

                    GimpBrush;
GimpData *          gimp_brush_new                      (GimpContext *context,
                                                         const gchar *name);
GimpData *          gimp_brush_get_standard             (GimpContext *context);
void                gimp_brush_begin_use                (GimpBrush *brush);
void                gimp_brush_end_use                  (GimpBrush *brush);
GimpBrush *         gimp_brush_select_brush             (GimpBrush *brush,
                                                         const GimpCoords *last_coords,
                                                         const GimpCoords *current_coords);
gboolean            gimp_brush_want_null_motion         (GimpBrush *brush,
                                                         const GimpCoords *last_coords,
                                                         const GimpCoords *current_coords);
void                gimp_brush_transform_size           (GimpBrush *brush,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gint *width,
                                                         gint *height);
const TempBuf *     gimp_brush_transform_mask           (GimpBrush *brush,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gdouble hardness);
const TempBuf *     gimp_brush_transform_pixmap         (GimpBrush *brush,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gdouble hardness);
const GimpBezierDesc * gimp_brush_transform_boundary    (GimpBrush *brush,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gdouble hardness,
                                                         gint *width,
                                                         gint *height);
TempBuf *           gimp_brush_get_mask                 (const GimpBrush *brush);
TempBuf *           gimp_brush_get_pixmap               (const GimpBrush *brush);
gint                gimp_brush_get_spacing              (const GimpBrush *brush);
void                gimp_brush_set_spacing              (GimpBrush *brush,
                                                         gint spacing);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpViewable
               +----GimpData
                     +----GimpBrush
                           +----GimpBrushClipboard
                           +----GimpBrushGenerated
                           +----GimpBrushPipe

Implemented Interfaces

GimpBrush implements GimpConfigInterface and GimpTaggedInterface.

Properties

  "spacing"                  gdouble               : Read / Write / Construct

Signals

  "spacing-changed"                                : Run First

Description

Details

GimpBrush

typedef struct _GimpBrush GimpBrush;


gimp_brush_new ()

GimpData *          gimp_brush_new                      (GimpContext *context,
                                                         const gchar *name);


gimp_brush_get_standard ()

GimpData *          gimp_brush_get_standard             (GimpContext *context);


gimp_brush_begin_use ()

void                gimp_brush_begin_use                (GimpBrush *brush);


gimp_brush_end_use ()

void                gimp_brush_end_use                  (GimpBrush *brush);


gimp_brush_select_brush ()

GimpBrush *         gimp_brush_select_brush             (GimpBrush *brush,
                                                         const GimpCoords *last_coords,
                                                         const GimpCoords *current_coords);


gimp_brush_want_null_motion ()

gboolean            gimp_brush_want_null_motion         (GimpBrush *brush,
                                                         const GimpCoords *last_coords,
                                                         const GimpCoords *current_coords);


gimp_brush_transform_size ()

void                gimp_brush_transform_size           (GimpBrush *brush,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gint *width,
                                                         gint *height);


gimp_brush_transform_mask ()

const TempBuf *     gimp_brush_transform_mask           (GimpBrush *brush,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gdouble hardness);


gimp_brush_transform_pixmap ()

const TempBuf *     gimp_brush_transform_pixmap         (GimpBrush *brush,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gdouble hardness);


gimp_brush_transform_boundary ()

const GimpBezierDesc * gimp_brush_transform_boundary    (GimpBrush *brush,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gdouble hardness,
                                                         gint *width,
                                                         gint *height);


gimp_brush_get_mask ()

TempBuf *           gimp_brush_get_mask                 (const GimpBrush *brush);


gimp_brush_get_pixmap ()

TempBuf *           gimp_brush_get_pixmap               (const GimpBrush *brush);


gimp_brush_get_spacing ()

gint                gimp_brush_get_spacing              (const GimpBrush *brush);


gimp_brush_set_spacing ()

void                gimp_brush_set_spacing              (GimpBrush *brush,
                                                         gint spacing);

Property Details

The "spacing" property

  "spacing"                  gdouble               : Read / Write / Construct

Brush Spacing.

Allowed values: [1,5000]

Default value: 20

Signal Details

The "spacing-changed" signal

void                user_function                      (GimpBrush *gimpbrush,
                                                        gpointer   user_data)      : Run First

gimpbrush :

the object which received the signal.

user_data :

user data set when the signal handler was connected.