~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/vectors/gimpstroke.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * gimpstroke.h
38
38
struct _GimpStroke
39
39
{
40
40
  GimpObject  parent_instance;
 
41
  gint        ID;
41
42
 
42
43
  GList      *anchors;
43
44
 
60
61
                                          GimpAnchor           **ret_segment_start,
61
62
                                          GimpAnchor           **ret_segment_end,
62
63
                                          gdouble               *ret_pos);
 
64
  gdouble       (* nearest_tangent_get)  (const GimpStroke      *stroke,
 
65
                                          const GimpCoords      *coord1,
 
66
                                          const GimpCoords      *coord2,
 
67
                                          const gdouble          precision,
 
68
                                          GimpCoords            *nearest,
 
69
                                          GimpAnchor           **ret_segment_start,
 
70
                                          GimpAnchor           **ret_segment_end,
 
71
                                          gdouble               *ret_pos);
 
72
  gdouble       (* nearest_intersection_get)
 
73
                                         (const GimpStroke      *stroke,
 
74
                                          const GimpCoords      *coord1,
 
75
                                          const GimpCoords      *direction,
 
76
                                          const gdouble          precision,
 
77
                                          GimpCoords            *nearest,
 
78
                                          GimpAnchor           **ret_segment_start,
 
79
                                          GimpAnchor           **ret_segment_end,
 
80
                                          gdouble               *ret_pos);
63
81
  GimpAnchor  * (* anchor_get_next)      (const GimpStroke      *stroke,
64
82
                                          const GimpAnchor      *prev);
65
83
  void          (* anchor_select)        (GimpStroke            *stroke,
139
157
  void          (* scale)                (GimpStroke            *stroke,
140
158
                                          gdouble                scale_x,
141
159
                                          gdouble                scale_y);
 
160
  void          (* rotate)               (GimpStroke            *stroke,
 
161
                                          gdouble                center_x,
 
162
                                          gdouble                center_y,
 
163
                                          gdouble                angle);
 
164
  void          (* flip)                 (GimpStroke             *stroke,
 
165
                                          GimpOrientationType    flip_type,
 
166
                                          gdouble                axis);
 
167
  void          (* flip_free)            (GimpStroke            *stroke,
 
168
                                          gdouble                x1,
 
169
                                          gdouble                y1,
 
170
                                          gdouble                x2,
 
171
                                          gdouble                y2);
142
172
  void          (* transform)            (GimpStroke            *stroke,
143
173
                                          const GimpMatrix3     *matrix);
144
174
 
154
184
 
155
185
GType        gimp_stroke_get_type             (void) G_GNUC_CONST;
156
186
 
 
187
void         gimp_stroke_set_ID               (GimpStroke            *stroke,
 
188
                                               gint                   id);
 
189
gint         gimp_stroke_get_ID               (const GimpStroke      *stroke);
 
190
 
157
191
 
158
192
/* accessing / modifying the anchors */
159
193
 
170
204
                                               GimpAnchor           **ret_segment_start,
171
205
                                               GimpAnchor           **ret_segment_end,
172
206
                                               gdouble               *ret_pos);
 
207
gdouble     gimp_stroke_nearest_tangent_get   (const GimpStroke      *stroke,
 
208
                                               const GimpCoords      *coords1,
 
209
                                               const GimpCoords      *coords2,
 
210
                                               gdouble                precision,
 
211
                                               GimpCoords            *nearest,
 
212
                                               GimpAnchor           **ret_segment_start,
 
213
                                               GimpAnchor           **ret_segment_end,
 
214
                                               gdouble               *ret_pos);
 
215
gdouble  gimp_stroke_nearest_intersection_get (const GimpStroke      *stroke,
 
216
                                               const GimpCoords      *coords1,
 
217
                                               const GimpCoords      *direction,
 
218
                                               gdouble                precision,
 
219
                                               GimpCoords            *nearest,
 
220
                                               GimpAnchor           **ret_segment_start,
 
221
                                               GimpAnchor           **ret_segment_end,
 
222
                                               gdouble               *ret_pos);
173
223
 
174
224
 
175
225
/* prev == NULL: "first" anchor */
222
272
gboolean     gimp_stroke_anchor_is_insertable (GimpStroke            *stroke,
223
273
                                               GimpAnchor            *predec,
224
274
                                               gdouble                position);
225
 
GimpAnchor  * gimp_stroke_anchor_insert       (GimpStroke            *stroke,
 
275
GimpAnchor * gimp_stroke_anchor_insert        (GimpStroke            *stroke,
226
276
                                               GimpAnchor            *predec,
227
277
                                               gdouble                position);
228
278
 
270
320
void         gimp_stroke_scale                (GimpStroke            *stroke,
271
321
                                               gdouble                scale_x,
272
322
                                               gdouble                scale_y);
 
323
void         gimp_stroke_rotate               (GimpStroke            *stroke,
 
324
                                               gdouble                center_x,
 
325
                                               gdouble                center_y,
 
326
                                               gdouble                angle);
 
327
void         gimp_stroke_flip                 (GimpStroke             *stroke,
 
328
                                               GimpOrientationType    flip_type,
 
329
                                               gdouble                axis);
 
330
void         gimp_stroke_flip_free            (GimpStroke            *stroke,
 
331
                                               gdouble                x1,
 
332
                                               gdouble                y1,
 
333
                                               gdouble                x2,
 
334
                                               gdouble                y2);
273
335
void         gimp_stroke_transform            (GimpStroke            *stroke,
274
336
                                               const GimpMatrix3     *matrix);
275
337