Commit 1da4a19f authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

app/paint/paint-types.h move opaque typedefs of object instances to

2007-02-08  Michael Natterer  <mitch@gimp.org>

	* app/paint/paint-types.h
	* app/paint/*.h: move opaque typedefs of object instances to
	paint-types.h, don't typedef empty class stuctures as their parent
	class (gtk-doc gets confused), cleanups.


svn path=/trunk/; revision=21877
parent b76ad2b8
......@@ -31,16 +31,20 @@
#define GIMP_SMUDGE_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_SMUDGE_OPTIONS, GimpSmudgeOptionsClass))
typedef struct _GimpSmudgeOptions GimpSmudgeOptions;
typedef struct _GimpPaintOptionsClass GimpSmudgeOptionsClass;
typedef struct _GimpSmudgeOptionsClass GimpSmudgeOptionsClass;
struct _GimpSmudgeOptions
{
GimpPaintOptions paint_options;
GimpPaintOptions parent_instance;
gdouble rate;
};
struct _GimpSmudgeOptionsClass
{
GimpPaintOptionsClass parent_class;
};
GType gimp_smudge_options_get_type (void) G_GNUC_CONST;
......
......@@ -31,7 +31,6 @@
#define GIMP_SOURCE_CORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_SOURCE_CORE, GimpSourceCoreClass))
typedef struct _GimpSourceCore GimpSourceCore;
typedef struct _GimpSourceCoreClass GimpSourceCoreClass;
struct _GimpSourceCore
......
......@@ -31,22 +31,21 @@
#define GIMP_SOURCE_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_SOURCE_OPTIONS, GimpSourceOptionsClass))
typedef struct _GimpSourceOptions GimpSourceOptions;
typedef struct _GimpSourceOptionsClass GimpSourceOptionsClass;
struct _GimpSourceOptions
{
GimpPaintOptions parent_instance;
GimpPaintOptions parent_instance;
GimpSourceAlignMode align_mode;
gboolean sample_merged;
GimpSourceAlignMode align_mode;
gboolean sample_merged;
gboolean use_source; /* not a property */
gboolean use_source; /* not a property */
};
struct _GimpSourceOptionsClass
{
GimpPaintOptionsClass parent_class;
GimpPaintOptionsClass parent_class;
};
......
......@@ -24,15 +24,46 @@
#include "paint/paint-enums.h"
/* objects */
/* paint cores */
typedef struct _GimpPaintCore GimpPaintCore;
typedef struct _GimpBrushCore GimpBrushCore;
typedef struct _GimpSourceCore GimpSourceCore;
typedef struct _GimpAirbrush GimpAirbrush;
typedef struct _GimpClone GimpClone;
typedef struct _GimpConvolve GimpConvolve;
typedef struct _GimpDodgeBurn GimpDodgeBurn;
typedef struct _GimpEraser GimpEraser;
typedef struct _GimpHeal GimpHeal;
typedef struct _GimpInk GimpInk;
typedef struct _GimpPaintbrush GimpPaintbrush;
typedef struct _GimpPencil GimpPencil;
typedef struct _GimpPerspectiveClone GimpPerspectiveClone;
typedef struct _GimpSmudge GimpSmudge;
/* paint options */
typedef struct _GimpPaintOptions GimpPaintOptions;
typedef struct _GimpSourceOptions GimpSourceOptions;
typedef struct _GimpAirbrushOptions GimpAirbrushOptions;
typedef struct _GimpCloneOptions GimpCloneOptions;
typedef struct _GimpConvolveOptions GimpConvolveOptions;
typedef struct _GimpDodgeBurnOptions GimpDodgeBurnOptions;
typedef struct _GimpEraserOptions GimpEraserOptions;
typedef struct _GimpInkOptions GimpInkOptions;
typedef struct _GimpPencilOptions GimpPencilOptions;
typedef struct _GimpPerspectiveCloneOptions GimpPerspectiveCloneOptions;
typedef struct _GimpSmudgeOptions GimpSmudgeOptions;
/* paint undos */
typedef struct _GimpPaintCore GimpPaintCore;
typedef struct _GimpPaintCoreUndo GimpPaintCoreUndo;
typedef struct _GimpBrushCore GimpBrushCore;
typedef struct _GimpInkUndo GimpInkUndo;
typedef struct _GimpPaintOptions GimpPaintOptions;
/* functions */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment