[gimp] app: add empty stub gimp_brush_transform_boundary()



commit 9e1db5dc92204a3de1af73a2f824b9212e53cf00
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 4 19:21:25 2011 +0200

    app: add empty stub gimp_brush_transform_boundary()
    
    as a separate commit because it reindents the entire header.

 app/core/gimpbrush.c |   12 ++++
 app/core/gimpbrush.h |  142 +++++++++++++++++++++++++++-----------------------
 2 files changed, 89 insertions(+), 65 deletions(-)
---
diff --git a/app/core/gimpbrush.c b/app/core/gimpbrush.c
index 75a58c3..5cb2b42 100644
--- a/app/core/gimpbrush.c
+++ b/app/core/gimpbrush.c
@@ -531,6 +531,18 @@ gimp_brush_transform_pixmap (GimpBrush *brush,
                                                          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
 gimp_brush_clamp_scale (GimpBrush *brush,
                         gdouble    scale)
diff --git a/app/core/gimpbrush.h b/app/core/gimpbrush.h
index ebd69da..31fcfbb 100644
--- a/app/core/gimpbrush.h
+++ b/app/core/gimpbrush.h
@@ -47,78 +47,90 @@ struct _GimpBrush
 
 struct _GimpBrushClass
 {
-  GimpDataClass parent_class;
+  GimpDataClass  parent_class;
 
   /*  virtual functions  */
-  GimpBrush * (* select_brush)     (GimpBrush        *brush,
-                                    const GimpCoords *last_coords,
-                                    const GimpCoords *current_coords);
-  gboolean    (* want_null_motion) (GimpBrush        *brush,
-                                    const GimpCoords *last_coords,
-                                    const GimpCoords *current_coords);
-  void        (* transform_size)   (GimpBrush        *brush,
-                                    gdouble           scale,
-                                    gdouble           aspect_ratio,
-                                    gdouble           angle,
-                                    gint             *width,
-                                    gint             *height);
-  TempBuf   * (* transform_mask)   (GimpBrush        *brush,
-                                    gdouble           scale,
-                                    gdouble           aspect_ratio,
-                                    gdouble           angle,
-                                    gdouble           hardness);
-  TempBuf   * (* transform_pixmap) (GimpBrush        *brush,
-                                    gdouble           scale,
-                                    gdouble           aspect_ratio,
-                                    gdouble           angle,
-                                    gdouble           hardness);
+  GimpBrush      * (* select_brush)       (GimpBrush        *brush,
+                                           const GimpCoords *last_coords,
+                                           const GimpCoords *current_coords);
+  gboolean         (* want_null_motion)   (GimpBrush        *brush,
+                                           const GimpCoords *last_coords,
+                                           const GimpCoords *current_coords);
+  void             (* transform_size)     (GimpBrush        *brush,
+                                           gdouble           scale,
+                                           gdouble           aspect_ratio,
+                                           gdouble           angle,
+                                           gint             *width,
+                                           gint             *height);
+  TempBuf        * (* transform_mask)     (GimpBrush        *brush,
+                                           gdouble           scale,
+                                           gdouble           aspect_ratio,
+                                           gdouble           angle,
+                                           gdouble           hardness);
+  TempBuf        * (* transform_pixmap)   (GimpBrush        *brush,
+                                           gdouble           scale,
+                                           gdouble           aspect_ratio,
+                                           gdouble           angle,
+                                           gdouble           hardness);
+  GimpBezierDesc * (* transform_boundary) (GimpBrush        *brush,
+                                           gdouble           scale,
+                                           gdouble           aspect_ratio,
+                                           gdouble           angle,
+                                           gdouble           hardness);
 
   /*  signals  */
-  void        (* spacing_changed)  (GimpBrush        *brush);
+  void             (* spacing_changed)    (GimpBrush        *brush);
 };
 
 
-GType       gimp_brush_get_type         (void) G_GNUC_CONST;
-
-GimpData  * gimp_brush_new              (GimpContext      *context,
-                                         const gchar      *name);
-GimpData  * gimp_brush_get_standard     (GimpContext      *context);
-
-GimpBrush * gimp_brush_select_brush     (GimpBrush        *brush,
-                                         const GimpCoords *last_coords,
-                                         const GimpCoords *current_coords);
-gboolean    gimp_brush_want_null_motion (GimpBrush        *brush,
-                                         const GimpCoords *last_coords,
-                                         const GimpCoords *current_coords);
-
-/* Gets width and height of a transformed mask of the brush, for provided parameters. */
-void        gimp_brush_transform_size   (GimpBrush        *brush,
-                                         gdouble           scale,
-                                         gdouble           aspect_ratio,
-                                         gdouble           angle,
-                                         gint             *width,
-                                         gint             *height);
-TempBuf   * gimp_brush_transform_mask   (GimpBrush        *brush,
-                                         gdouble           scale,
-                                         gdouble           aspect_ratio,
-                                         gdouble           angle,
-                                         gdouble           hardness);
-TempBuf   * gimp_brush_transform_pixmap (GimpBrush        *brush,
-                                         gdouble           scale,
-                                         gdouble           aspect_ratio,
-                                         gdouble           angle,
-                                         gdouble           hardness);
-
-gdouble     gimp_brush_clamp_scale      (GimpBrush        *brush,
-                                         gdouble           scale);
-
-TempBuf   * gimp_brush_get_mask         (const GimpBrush  *brush);
-TempBuf   * gimp_brush_get_pixmap       (const GimpBrush  *brush);
-
-gint        gimp_brush_get_spacing      (const GimpBrush  *brush);
-void        gimp_brush_set_spacing      (GimpBrush        *brush,
-                                         gint              spacing);
-void        gimp_brush_spacing_changed  (GimpBrush        *brush);
+GType            gimp_brush_get_type           (void) G_GNUC_CONST;
+
+GimpData       * gimp_brush_new                (GimpContext      *context,
+                                                const gchar      *name);
+GimpData       * gimp_brush_get_standard       (GimpContext      *context);
+
+GimpBrush      * gimp_brush_select_brush       (GimpBrush        *brush,
+                                                const GimpCoords *last_coords,
+                                                const GimpCoords *current_coords);
+gboolean         gimp_brush_want_null_motion   (GimpBrush        *brush,
+                                                const GimpCoords *last_coords,
+                                                const GimpCoords *current_coords);
+
+/* Gets width and height of a transformed mask of the brush, for
+ * provided parameters.
+ */
+void             gimp_brush_transform_size     (GimpBrush        *brush,
+                                                gdouble           scale,
+                                                gdouble           aspect_ratio,
+                                                gdouble           angle,
+                                                gint             *width,
+                                                gint             *height);
+TempBuf        * gimp_brush_transform_mask     (GimpBrush        *brush,
+                                                gdouble           scale,
+                                                gdouble           aspect_ratio,
+                                                gdouble           angle,
+                                                gdouble           hardness);
+TempBuf        * gimp_brush_transform_pixmap   (GimpBrush        *brush,
+                                                gdouble           scale,
+                                                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           scale);
+
+TempBuf        * gimp_brush_get_mask           (const GimpBrush  *brush);
+TempBuf        * gimp_brush_get_pixmap         (const GimpBrush  *brush);
+
+gint             gimp_brush_get_spacing        (const GimpBrush  *brush);
+void             gimp_brush_set_spacing        (GimpBrush        *brush,
+                                                gint              spacing);
+void             gimp_brush_spacing_changed    (GimpBrush        *brush);
 
 
 #endif /* __GIMP_BRUSH_H__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]