app: add empty stub gimp_brush_transform_boundary()

as a separate commit because it reindents the entire header.
This commit is contained in:
Michael Natterer 2011-04-04 19:21:25 +02:00
parent 7d39d800fc
commit 9e1db5dc92
2 changed files with 83 additions and 59 deletions

View File

@ -531,6 +531,18 @@ gimp_brush_transform_pixmap (GimpBrush *brush,
angle, hardness); angle, hardness);
} }
GimpBezierDesc *
gimp_brush_transform_boundary (GimpBrush *brush,
gdouble scale,
gdouble aspect_ratio,
gdouble angle,
gdouble hardness)
{
g_return_val_if_fail (GIMP_IS_BRUSH (brush), NULL);
return NULL;
}
gdouble gdouble
gimp_brush_clamp_scale (GimpBrush *brush, gimp_brush_clamp_scale (GimpBrush *brush,
gdouble scale) gdouble scale)

View File

@ -47,78 +47,90 @@ struct _GimpBrush
struct _GimpBrushClass struct _GimpBrushClass
{ {
GimpDataClass parent_class; GimpDataClass parent_class;
/* virtual functions */ /* virtual functions */
GimpBrush * (* select_brush) (GimpBrush *brush, GimpBrush * (* select_brush) (GimpBrush *brush,
const GimpCoords *last_coords, const GimpCoords *last_coords,
const GimpCoords *current_coords); const GimpCoords *current_coords);
gboolean (* want_null_motion) (GimpBrush *brush, gboolean (* want_null_motion) (GimpBrush *brush,
const GimpCoords *last_coords, const GimpCoords *last_coords,
const GimpCoords *current_coords); const GimpCoords *current_coords);
void (* transform_size) (GimpBrush *brush, void (* transform_size) (GimpBrush *brush,
gdouble scale, gdouble scale,
gdouble aspect_ratio, gdouble aspect_ratio,
gdouble angle, gdouble angle,
gint *width, gint *width,
gint *height); gint *height);
TempBuf * (* transform_mask) (GimpBrush *brush, TempBuf * (* transform_mask) (GimpBrush *brush,
gdouble scale, gdouble scale,
gdouble aspect_ratio, gdouble aspect_ratio,
gdouble angle, gdouble angle,
gdouble hardness); gdouble hardness);
TempBuf * (* transform_pixmap) (GimpBrush *brush, TempBuf * (* transform_pixmap) (GimpBrush *brush,
gdouble scale, gdouble scale,
gdouble aspect_ratio, gdouble aspect_ratio,
gdouble angle, gdouble angle,
gdouble hardness); gdouble hardness);
GimpBezierDesc * (* transform_boundary) (GimpBrush *brush,
gdouble scale,
gdouble aspect_ratio,
gdouble angle,
gdouble hardness);
/* signals */ /* signals */
void (* spacing_changed) (GimpBrush *brush); void (* spacing_changed) (GimpBrush *brush);
}; };
GType gimp_brush_get_type (void) G_GNUC_CONST; GType gimp_brush_get_type (void) G_GNUC_CONST;
GimpData * gimp_brush_new (GimpContext *context, GimpData * gimp_brush_new (GimpContext *context,
const gchar *name); const gchar *name);
GimpData * gimp_brush_get_standard (GimpContext *context); GimpData * gimp_brush_get_standard (GimpContext *context);
GimpBrush * gimp_brush_select_brush (GimpBrush *brush, GimpBrush * gimp_brush_select_brush (GimpBrush *brush,
const GimpCoords *last_coords, const GimpCoords *last_coords,
const GimpCoords *current_coords); const GimpCoords *current_coords);
gboolean gimp_brush_want_null_motion (GimpBrush *brush, gboolean gimp_brush_want_null_motion (GimpBrush *brush,
const GimpCoords *last_coords, const GimpCoords *last_coords,
const GimpCoords *current_coords); const GimpCoords *current_coords);
/* Gets width and height of a transformed mask of the brush, for provided parameters. */ /* Gets width and height of a transformed mask of the brush, for
void gimp_brush_transform_size (GimpBrush *brush, * provided parameters.
gdouble scale, */
gdouble aspect_ratio, void gimp_brush_transform_size (GimpBrush *brush,
gdouble angle, gdouble scale,
gint *width, gdouble aspect_ratio,
gint *height); gdouble angle,
TempBuf * gimp_brush_transform_mask (GimpBrush *brush, gint *width,
gdouble scale, gint *height);
gdouble aspect_ratio, TempBuf * gimp_brush_transform_mask (GimpBrush *brush,
gdouble angle, gdouble scale,
gdouble hardness); gdouble aspect_ratio,
TempBuf * gimp_brush_transform_pixmap (GimpBrush *brush, gdouble angle,
gdouble scale, gdouble hardness);
gdouble aspect_ratio, TempBuf * gimp_brush_transform_pixmap (GimpBrush *brush,
gdouble angle, gdouble scale,
gdouble hardness); gdouble aspect_ratio,
gdouble angle,
gdouble hardness);
GimpBezierDesc * gimp_brush_transform_boundary (GimpBrush *brush,
gdouble scale,
gdouble aspect_ratio,
gdouble angle,
gdouble hardness);
gdouble gimp_brush_clamp_scale (GimpBrush *brush, gdouble gimp_brush_clamp_scale (GimpBrush *brush,
gdouble scale); gdouble scale);
TempBuf * gimp_brush_get_mask (const GimpBrush *brush); TempBuf * gimp_brush_get_mask (const GimpBrush *brush);
TempBuf * gimp_brush_get_pixmap (const GimpBrush *brush); TempBuf * gimp_brush_get_pixmap (const GimpBrush *brush);
gint gimp_brush_get_spacing (const GimpBrush *brush); gint gimp_brush_get_spacing (const GimpBrush *brush);
void gimp_brush_set_spacing (GimpBrush *brush, void gimp_brush_set_spacing (GimpBrush *brush,
gint spacing); gint spacing);
void gimp_brush_spacing_changed (GimpBrush *brush); void gimp_brush_spacing_changed (GimpBrush *brush);
#endif /* __GIMP_BRUSH_H__ */ #endif /* __GIMP_BRUSH_H__ */