gimpvectors_pdb.h 10.9 KB
Newer Older
1 2 3 4 5
/* LIBGIMP - The GIMP Library
 * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
 *
 * gimpvectors_pdb.h
 *
6
 * This library is free software: you can redistribute it and/or
7 8
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
9
 * version 3 of the License, or (at your option) any later version.
10 11 12 13 14 15 16
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
17
 * License along with this library.  If not, see
18
 * <https://www.gnu.org/licenses/>.
19 20
 */

21
/* NOTE: This file is auto-generated by pdbgen.pl */
22

23 24 25 26
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif

27 28 29 30 31 32 33 34
#ifndef __GIMP_VECTORS_PDB_H__
#define __GIMP_VECTORS_PDB_H__

G_BEGIN_DECLS

/* For information look into the C source or the html documentation */


35 36
gint32                gimp_vectors_new                       (gint32                  image_ID,
                                                              const gchar            *name);
37 38
gint32                gimp_vectors_new_from_text_layer       (gint32                  image_ID,
                                                              gint32                  layer_ID);
39
gint32                gimp_vectors_copy                      (gint32                  vectors_ID);
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
gint*                 gimp_vectors_get_strokes               (gint32                  vectors_ID,
                                                              gint                   *num_strokes);
gdouble               gimp_vectors_stroke_get_length         (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              gdouble                 precision);
gboolean              gimp_vectors_stroke_get_point_at_dist  (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              gdouble                 dist,
                                                              gdouble                 precision,
                                                              gdouble                *x_point,
                                                              gdouble                *y_point,
                                                              gdouble                *slope,
                                                              gboolean               *valid);
gboolean              gimp_vectors_remove_stroke             (gint32                  vectors_ID,
                                                              gint                    stroke_id);
gboolean              gimp_vectors_stroke_close              (gint32                  vectors_ID,
                                                              gint                    stroke_id);
gboolean              gimp_vectors_stroke_translate          (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              gint                    off_x,
                                                              gint                    off_y);
gboolean              gimp_vectors_stroke_scale              (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              gdouble                 scale_x,
                                                              gdouble                 scale_y);
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
gboolean              gimp_vectors_stroke_rotate             (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              gdouble                 center_x,
                                                              gdouble                 center_y,
                                                              gdouble                 angle);
gboolean              gimp_vectors_stroke_flip               (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              GimpOrientationType     flip_type,
                                                              gdouble                 axis);
gboolean              gimp_vectors_stroke_flip_free          (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              gdouble                 x1,
                                                              gdouble                 y1,
                                                              gdouble                 x2,
                                                              gdouble                 y2);
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
GimpVectorsStrokeType gimp_vectors_stroke_get_points         (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              gint                   *num_points,
                                                              gdouble               **controlpoints,
                                                              gboolean               *closed);
gint                  gimp_vectors_stroke_new_from_points    (gint32                  vectors_ID,
                                                              GimpVectorsStrokeType   type,
                                                              gint                    num_points,
                                                              const gdouble          *controlpoints,
                                                              gboolean                closed);
gdouble*              gimp_vectors_stroke_interpolate        (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              gdouble                 precision,
                                                              gint                   *num_coords,
                                                              gboolean               *closed);
gint                  gimp_vectors_bezier_stroke_new_moveto  (gint32                  vectors_ID,
                                                              gdouble                 x0,
                                                              gdouble                 y0);
gboolean              gimp_vectors_bezier_stroke_lineto      (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              gdouble                 x0,
                                                              gdouble                 y0);
gboolean              gimp_vectors_bezier_stroke_conicto     (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              gdouble                 x0,
                                                              gdouble                 y0,
                                                              gdouble                 x1,
                                                              gdouble                 y1);
gboolean              gimp_vectors_bezier_stroke_cubicto     (gint32                  vectors_ID,
                                                              gint                    stroke_id,
                                                              gdouble                 x0,
                                                              gdouble                 y0,
                                                              gdouble                 x1,
                                                              gdouble                 y1,
                                                              gdouble                 x2,
                                                              gdouble                 y2);
gint                  gimp_vectors_bezier_stroke_new_ellipse (gint32                  vectors_ID,
                                                              gdouble                 x0,
                                                              gdouble                 y0,
                                                              gdouble                 radius_x,
                                                              gdouble                 radius_y,
                                                              gdouble                 angle);
122
gboolean              gimp_vectors_import_from_file          (gint32                  image_ID,
123 124 125
                                                              const gchar            *filename,
                                                              gboolean                merge,
                                                              gboolean                scale,
126 127
                                                              gint                   *num_vectors,
                                                              gint32                **vectors_ids);
128
gboolean              gimp_vectors_import_from_string        (gint32                  image_ID,
129 130 131 132
                                                              const gchar            *string,
                                                              gint                    length,
                                                              gboolean                merge,
                                                              gboolean                scale,
133 134
                                                              gint                   *num_vectors,
                                                              gint32                **vectors_ids);
135 136 137 138 139
gboolean              gimp_vectors_export_to_file            (gint32                  image_ID,
                                                              const gchar            *filename,
                                                              gint32                  vectors_ID);
gchar*                gimp_vectors_export_to_string          (gint32                  image_ID,
                                                              gint32                  vectors_ID);
140 141 142 143 144


G_END_DECLS

#endif /* __GIMP_VECTORS_PDB_H__ */