app/paint/gimpbrushcore.h some cleanup.
2004-05-26 Michael Natterer <mitch@gimp.org> * app/paint/gimpbrushcore.h * app/paint/gimppaintcore.h: some cleanup.
This commit is contained in:

committed by
Michael Natterer

parent
557c8465bf
commit
94d256a1a3
@ -1,3 +1,8 @@
|
||||
2004-05-26 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/paint/gimpbrushcore.h
|
||||
* app/paint/gimppaintcore.h: some cleanup.
|
||||
|
||||
2004-05-26 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpdisplayshell-layer-select.c
|
||||
|
@ -26,6 +26,8 @@
|
||||
#define BRUSH_CORE_SUBSAMPLE 4
|
||||
#define BRUSH_CORE_SOLID_SUBSAMPLE 2
|
||||
|
||||
#define PRESSURE_SCALE 1.5
|
||||
|
||||
|
||||
#define GIMP_TYPE_BRUSH_CORE (gimp_brush_core_get_type ())
|
||||
#define GIMP_BRUSH_CORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_BRUSH_CORE, GimpBrushCore))
|
||||
|
@ -23,39 +23,37 @@
|
||||
#include "core/gimpobject.h"
|
||||
|
||||
|
||||
#define PAINT_CORE_SUBSAMPLE 4
|
||||
#define PAINT_CORE_SOLID_SUBSAMPLE 2
|
||||
|
||||
#define PRESSURE_SCALE 1.5
|
||||
|
||||
|
||||
/* the different states that the painting function can be called with */
|
||||
|
||||
typedef enum
|
||||
{
|
||||
INIT_PAINT, /* Setup PaintFunc internals */
|
||||
MOTION_PAINT, /* PaintFunc performs motion-related rendering */
|
||||
PAUSE_PAINT, /* Unused. Reserved */
|
||||
RESUME_PAINT, /* Unused. Reserved */
|
||||
FINISH_PAINT, /* Cleanup and/or reset PaintFunc operation */
|
||||
PRETRACE_PAINT, /* PaintFunc performs window tracing activity prior to rendering */
|
||||
POSTTRACE_PAINT /* PaintFunc performs window tracing activity following rendering */
|
||||
PRETRACE_PAINT, /* PaintFunc performs window tracing activity
|
||||
* prior to rendering
|
||||
*/
|
||||
POSTTRACE_PAINT /* PaintFunc performs window tracing activity
|
||||
* following rendering
|
||||
*/
|
||||
} GimpPaintCoreState;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
/* Set for tools that don't mind if
|
||||
* the brush changes while painting.
|
||||
*/
|
||||
CORE_HANDLES_CHANGING_BRUSH = 0x1 << 0,
|
||||
CORE_HANDLES_CHANGING_BRUSH = 0x1 << 0, /* Set for tools that don't
|
||||
* mind if the brush
|
||||
* changes while painting.
|
||||
*/
|
||||
CORE_TRACES_ON_WINDOW = 0x1 << 1 /* Set for tools that
|
||||
* perform temporary
|
||||
* rendering directly to
|
||||
* the window. These
|
||||
* require sequencing with
|
||||
* gdisplay_flush()
|
||||
* routines. See
|
||||
* gimpclone.c for example.
|
||||
*/
|
||||
|
||||
/* Set for tools that perform
|
||||
* temporary rendering directly to the
|
||||
* window. These require sequencing with
|
||||
* gdisplay_flush() routines.
|
||||
* See gimpclone.c for example.
|
||||
*/
|
||||
CORE_TRACES_ON_WINDOW = 0x1 << 1
|
||||
} GimpPaintCoreFlags;
|
||||
|
||||
|
||||
@ -129,67 +127,67 @@ struct _GimpPaintCoreClass
|
||||
};
|
||||
|
||||
|
||||
GType gimp_paint_core_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_paint_core_get_type (void) G_GNUC_CONST;
|
||||
|
||||
void gimp_paint_core_paint (GimpPaintCore *core,
|
||||
GimpDrawable *drawable,
|
||||
GimpPaintOptions *paint_options,
|
||||
GimpPaintCoreState state);
|
||||
void gimp_paint_core_paint (GimpPaintCore *core,
|
||||
GimpDrawable *drawable,
|
||||
GimpPaintOptions *paint_options,
|
||||
GimpPaintCoreState state);
|
||||
|
||||
gboolean gimp_paint_core_start (GimpPaintCore *core,
|
||||
GimpDrawable *drawable,
|
||||
GimpPaintOptions *paint_options,
|
||||
GimpCoords *coords);
|
||||
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);
|
||||
gboolean gimp_paint_core_start (GimpPaintCore *core,
|
||||
GimpDrawable *drawable,
|
||||
GimpPaintOptions *paint_options,
|
||||
GimpCoords *coords);
|
||||
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_constrain (GimpPaintCore *core);
|
||||
void gimp_paint_core_constrain (GimpPaintCore *core);
|
||||
|
||||
void gimp_paint_core_interpolate (GimpPaintCore *core,
|
||||
GimpDrawable *drawable,
|
||||
GimpPaintOptions *paint_options);
|
||||
void gimp_paint_core_interpolate (GimpPaintCore *core,
|
||||
GimpDrawable *drawable,
|
||||
GimpPaintOptions *paint_options);
|
||||
|
||||
|
||||
/* protected functions */
|
||||
|
||||
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_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);
|
||||
|
||||
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_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_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);
|
||||
|
||||
|
||||
#endif /* __GIMP_PAINT_CORE_H__ */
|
||||
|
Reference in New Issue
Block a user