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, /* 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.
|
||||
*/
|
||||
CORE_HANDLES_CHANGING_BRUSH = 0x1 << 0,
|
||||
|
||||
/* 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;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user