GimpPaintCore

GimpPaintCore

Synopsis




                    GimpPaintCore;
                    GimpPaintCoreClass;
void                gimp_paint_core_paint               (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         GimpPaintOptions *paint_options,
                                                         GimpPaintState state,
                                                         guint32 time);
gboolean            gimp_paint_core_start               (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         GimpPaintOptions *paint_options,
                                                         GimpCoords *coords,
                                                         GError **error);
void                gimp_paint_core_finish              (GimpPaintCore *core,
                                                         GimpDrawable *drawable);
void                gimp_paint_core_cancel              (GimpPaintCore *core,
                                                         GimpDrawable *drawable);
void                gimp_paint_core_cleanup             (GimpPaintCore *core);
void                gimp_paint_core_interpolate         (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         GimpPaintOptions *paint_options,
                                                         guint32 time);
TempBuf*            gimp_paint_core_get_paint_area      (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         GimpPaintOptions *options);
TempBuf*            gimp_paint_core_get_orig_image      (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         gint x1,
                                                         gint y1,
                                                         gint x2,
                                                         gint y2);
TempBuf*            gimp_paint_core_get_orig_proj       (GimpPaintCore *core,
                                                         GimpPickable *pickable,
                                                         gint x1,
                                                         gint y1,
                                                         gint x2,
                                                         gint y2);
void                gimp_paint_core_paste               (GimpPaintCore *core,
                                                         PixelRegion *paint_maskPR,
                                                         GimpDrawable *drawable,
                                                         gdouble paint_opacity,
                                                         gdouble image_opacity,
                                                         GimpLayerModeEffects paint_mode,
                                                         GimpPaintApplicationMode mode);
void                gimp_paint_core_replace             (GimpPaintCore *core,
                                                         PixelRegion *paint_maskPR,
                                                         GimpDrawable *drawable,
                                                         gdouble paint_opacity,
                                                         gdouble image_opacity,
                                                         GimpPaintApplicationMode mode);
void                gimp_paint_core_validate_undo_tiles (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h);
void                gimp_paint_core_validate_canvas_tiles
                                                        (GimpPaintCore *core,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h);
void                gimp_paint_core_validate_saved_proj_tiles
                                                        (GimpPaintCore *core,
                                                         GimpPickable *pickable,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h);

Object Hierarchy


  GObject
   +----GimpObject
         +----GimpPaintCore
               +----GimpBrushCore
               +----GimpInk

Properties


  "undo-desc"                gchararray            : Read / Write / Construct Only

Description

Details

GimpPaintCore

typedef struct _GimpPaintCore GimpPaintCore;


GimpPaintCoreClass

typedef struct {
  GimpObjectClass  parent_class;

  /*  virtual functions  */
  gboolean   (* start)          (GimpPaintCore    *core,
                                 GimpDrawable     *drawable,
                                 GimpPaintOptions *paint_options,
                                 GimpCoords       *coords,
                                 GError          **error);

  gboolean   (* pre_paint)      (GimpPaintCore    *core,
                                 GimpDrawable     *drawable,
                                 GimpPaintOptions *paint_options,
                                 GimpPaintState    paint_state,
                                 guint32           time);
  void       (* paint)          (GimpPaintCore    *core,
                                 GimpDrawable     *drawable,
                                 GimpPaintOptions *paint_options,
                                 GimpPaintState    paint_state,
                                 guint32           time);
  void       (* post_paint)     (GimpPaintCore    *core,
                                 GimpDrawable     *drawable,
                                 GimpPaintOptions *paint_options,
                                 GimpPaintState    paint_state,
                                 guint32           time);

  void       (* interpolate)    (GimpPaintCore    *core,
                                 GimpDrawable     *drawable,
                                 GimpPaintOptions *paint_options,
                                 guint32           time);

  TempBuf  * (* get_paint_area) (GimpPaintCore    *core,
                                 GimpDrawable     *drawable,
                                 GimpPaintOptions *paint_options);

  GimpUndo * (* push_undo)      (GimpPaintCore    *core,
                                 GimpImage        *image,
                                 const gchar      *undo_desc);
} GimpPaintCoreClass;


gimp_paint_core_paint ()

void                gimp_paint_core_paint               (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         GimpPaintOptions *paint_options,
                                                         GimpPaintState state,
                                                         guint32 time);

core :

drawable :

paint_options :

state :

time :


gimp_paint_core_start ()

gboolean            gimp_paint_core_start               (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         GimpPaintOptions *paint_options,
                                                         GimpCoords *coords,
                                                         GError **error);

core :

drawable :

paint_options :

coords :

error :

Returns :


gimp_paint_core_finish ()

void                gimp_paint_core_finish              (GimpPaintCore *core,
                                                         GimpDrawable *drawable);

core :

drawable :


gimp_paint_core_cancel ()

void                gimp_paint_core_cancel              (GimpPaintCore *core,
                                                         GimpDrawable *drawable);

core :

drawable :


gimp_paint_core_cleanup ()

void                gimp_paint_core_cleanup             (GimpPaintCore *core);

core :


gimp_paint_core_interpolate ()

void                gimp_paint_core_interpolate         (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         GimpPaintOptions *paint_options,
                                                         guint32 time);

core :

drawable :

paint_options :

time :


gimp_paint_core_get_paint_area ()

TempBuf*            gimp_paint_core_get_paint_area      (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         GimpPaintOptions *options);

core :

drawable :

options :

Returns :


gimp_paint_core_get_orig_image ()

TempBuf*            gimp_paint_core_get_orig_image      (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         gint x1,
                                                         gint y1,
                                                         gint x2,
                                                         gint y2);

core :

drawable :

x1 :

y1 :

x2 :

y2 :

Returns :


gimp_paint_core_get_orig_proj ()

TempBuf*            gimp_paint_core_get_orig_proj       (GimpPaintCore *core,
                                                         GimpPickable *pickable,
                                                         gint x1,
                                                         gint y1,
                                                         gint x2,
                                                         gint y2);

core :

pickable :

x1 :

y1 :

x2 :

y2 :

Returns :


gimp_paint_core_paste ()

void                gimp_paint_core_paste               (GimpPaintCore *core,
                                                         PixelRegion *paint_maskPR,
                                                         GimpDrawable *drawable,
                                                         gdouble paint_opacity,
                                                         gdouble image_opacity,
                                                         GimpLayerModeEffects paint_mode,
                                                         GimpPaintApplicationMode mode);

core :

paint_maskPR :

drawable :

paint_opacity :

image_opacity :

paint_mode :

mode :


gimp_paint_core_replace ()

void                gimp_paint_core_replace             (GimpPaintCore *core,
                                                         PixelRegion *paint_maskPR,
                                                         GimpDrawable *drawable,
                                                         gdouble paint_opacity,
                                                         gdouble image_opacity,
                                                         GimpPaintApplicationMode mode);

core :

paint_maskPR :

drawable :

paint_opacity :

image_opacity :

mode :


gimp_paint_core_validate_undo_tiles ()

void                gimp_paint_core_validate_undo_tiles (GimpPaintCore *core,
                                                         GimpDrawable *drawable,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h);

core :

drawable :

x :

y :

w :

h :


gimp_paint_core_validate_canvas_tiles ()

void                gimp_paint_core_validate_canvas_tiles
                                                        (GimpPaintCore *core,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h);

core :

x :

y :

w :

h :


gimp_paint_core_validate_saved_proj_tiles ()

void                gimp_paint_core_validate_saved_proj_tiles
                                                        (GimpPaintCore *core,
                                                         GimpPickable *pickable,
                                                         gint x,
                                                         gint y,
                                                         gint w,
                                                         gint h);

core :

pickable :

x :

y :

w :

h :

Property Details

The "undo-desc" property

  "undo-desc"                gchararray            : Read / Write / Construct Only

Default value: "Paint"