GimpBrushCore

GimpBrushCore

Synopsis

#define             BRUSH_CORE_SUBSAMPLE
#define             BRUSH_CORE_SOLID_SUBSAMPLE
#define             BRUSH_CORE_JITTER_LUTSIZE
                    GimpBrushCore;
void                gimp_brush_core_set_brush           (GimpBrushCore *core,
                                                         GimpBrush *brush);
void                gimp_brush_core_set_dynamics        (GimpBrushCore *core,
                                                         GimpDynamics *dynamics);
void                gimp_brush_core_paste_canvas        (GimpBrushCore *core,
                                                         GimpDrawable *drawable,
                                                         const GimpCoords *coords,
                                                         gdouble brush_opacity,
                                                         gdouble image_opacity,
                                                         GimpLayerModeEffects paint_mode,
                                                         GimpBrushApplicationMode brush_hardness,
                                                         gdouble dynamic_hardness,
                                                         GimpPaintApplicationMode mode);
void                gimp_brush_core_replace_canvas      (GimpBrushCore *core,
                                                         GimpDrawable *drawable,
                                                         const GimpCoords *coords,
                                                         gdouble brush_opacity,
                                                         gdouble image_opacity,
                                                         GimpBrushApplicationMode brush_hardness,
                                                         gdouble dynamic_hardness,
                                                         GimpPaintApplicationMode mode);
void                gimp_brush_core_color_area_with_pixmap
                                                        (GimpBrushCore *core,
                                                         GimpDrawable *drawable,
                                                         const GimpCoords *coords,
                                                         TempBuf *area,
                                                         GimpBrushApplicationMode mode);
const TempBuf *     gimp_brush_core_get_brush_mask      (GimpBrushCore *core,
                                                         const GimpCoords *coords,
                                                         GimpBrushApplicationMode brush_hardness,
                                                         gdouble dynamic_hardness);
void                gimp_brush_core_eval_transform_dynamics
                                                        (GimpBrushCore *paint_core,
                                                         GimpDrawable *drawable,
                                                         GimpPaintOptions *paint_options,
                                                         const GimpCoords *coords);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpPaintCore
               +----GimpBrushCore
                     +----GimpPaintbrush
                     +----GimpSourceCore
                     +----GimpConvolve
                     +----GimpDodgeBurn
                     +----GimpEraser
                     +----GimpSmudge

Signals

  "set-brush"                                      : Run Last
  "set-dynamics"                                   : Run Last

Description

Details

BRUSH_CORE_SUBSAMPLE

#define BRUSH_CORE_SUBSAMPLE        4


BRUSH_CORE_SOLID_SUBSAMPLE

#define BRUSH_CORE_SOLID_SUBSAMPLE  2


BRUSH_CORE_JITTER_LUTSIZE

#define BRUSH_CORE_JITTER_LUTSIZE   360


GimpBrushCore

typedef struct _GimpBrushCore GimpBrushCore;


gimp_brush_core_set_brush ()

void                gimp_brush_core_set_brush           (GimpBrushCore *core,
                                                         GimpBrush *brush);


gimp_brush_core_set_dynamics ()

void                gimp_brush_core_set_dynamics        (GimpBrushCore *core,
                                                         GimpDynamics *dynamics);


gimp_brush_core_paste_canvas ()

void                gimp_brush_core_paste_canvas        (GimpBrushCore *core,
                                                         GimpDrawable *drawable,
                                                         const GimpCoords *coords,
                                                         gdouble brush_opacity,
                                                         gdouble image_opacity,
                                                         GimpLayerModeEffects paint_mode,
                                                         GimpBrushApplicationMode brush_hardness,
                                                         gdouble dynamic_hardness,
                                                         GimpPaintApplicationMode mode);


gimp_brush_core_replace_canvas ()

void                gimp_brush_core_replace_canvas      (GimpBrushCore *core,
                                                         GimpDrawable *drawable,
                                                         const GimpCoords *coords,
                                                         gdouble brush_opacity,
                                                         gdouble image_opacity,
                                                         GimpBrushApplicationMode brush_hardness,
                                                         gdouble dynamic_hardness,
                                                         GimpPaintApplicationMode mode);


gimp_brush_core_color_area_with_pixmap ()

void                gimp_brush_core_color_area_with_pixmap
                                                        (GimpBrushCore *core,
                                                         GimpDrawable *drawable,
                                                         const GimpCoords *coords,
                                                         TempBuf *area,
                                                         GimpBrushApplicationMode mode);


gimp_brush_core_get_brush_mask ()

const TempBuf *     gimp_brush_core_get_brush_mask      (GimpBrushCore *core,
                                                         const GimpCoords *coords,
                                                         GimpBrushApplicationMode brush_hardness,
                                                         gdouble dynamic_hardness);


gimp_brush_core_eval_transform_dynamics ()

void                gimp_brush_core_eval_transform_dynamics
                                                        (GimpBrushCore *paint_core,
                                                         GimpDrawable *drawable,
                                                         GimpPaintOptions *paint_options,
                                                         const GimpCoords *coords);

Signal Details

The "set-brush" signal

void                user_function                      (GimpBrushCore *gimpbrushcore,
                                                        GimpBrush     *arg1,
                                                        gpointer       user_data)          : Run Last

gimpbrushcore :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "set-dynamics" signal

void                user_function                      (GimpBrushCore *gimpbrushcore,
                                                        GimpDynamics  *arg1,
                                                        gpointer       user_data)          : Run Last

gimpbrushcore :

the object which received the signal.

user_data :

user data set when the signal handler was connected.