1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 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 122 123 124 125 126 127 128
|
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
*
* gimppath_pdb.h
*
* This library is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* 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
* License along with this library. If not, see
* <https://www.gnu.org/licenses/>.
*/
/* NOTE: This file is auto-generated by pdbgen.pl */
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
#error "Only <libgimp/gimp.h> can be included directly."
#endif
#ifndef __GIMP_PATH_PDB_H__
#define __GIMP_PATH_PDB_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
GimpPath* gimp_path_new (GimpImage *image,
const gchar *name);
GimpPath* gimp_path_new_from_text_layer (GimpImage *image,
GimpLayer *layer);
GimpPath* gimp_path_copy (GimpPath *path);
gint* gimp_path_get_strokes (GimpPath *path,
gsize *num_strokes);
gdouble gimp_path_stroke_get_length (GimpPath *path,
gint stroke_id,
gdouble precision);
gboolean gimp_path_stroke_get_point_at_dist (GimpPath *path,
gint stroke_id,
gdouble dist,
gdouble precision,
gdouble *x_point,
gdouble *y_point,
gdouble *slope,
gboolean *valid);
gboolean gimp_path_remove_stroke (GimpPath *path,
gint stroke_id);
gboolean gimp_path_stroke_close (GimpPath *path,
gint stroke_id);
gboolean gimp_path_stroke_reverse (GimpPath *path,
gint stroke_id);
gboolean gimp_path_stroke_translate (GimpPath *path,
gint stroke_id,
gdouble off_x,
gdouble off_y);
gboolean gimp_path_stroke_scale (GimpPath *path,
gint stroke_id,
gdouble scale_x,
gdouble scale_y);
gboolean gimp_path_stroke_rotate (GimpPath *path,
gint stroke_id,
gdouble center_x,
gdouble center_y,
gdouble angle);
gboolean gimp_path_stroke_flip (GimpPath *path,
gint stroke_id,
GimpOrientationType flip_type,
gdouble axis);
gboolean gimp_path_stroke_flip_free (GimpPath *path,
gint stroke_id,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2);
GimpPathStrokeType gimp_path_stroke_get_points (GimpPath *path,
gint stroke_id,
gsize *num_points,
gdouble **controlpoints,
gboolean *closed);
gint gimp_path_stroke_new_from_points (GimpPath *path,
GimpPathStrokeType type,
gsize num_points,
const gdouble *controlpoints,
gboolean closed);
gdouble* gimp_path_stroke_interpolate (GimpPath *path,
gint stroke_id,
gdouble precision,
gsize *num_coords,
gboolean *closed);
gint gimp_path_bezier_stroke_new_moveto (GimpPath *path,
gdouble x0,
gdouble y0);
gboolean gimp_path_bezier_stroke_lineto (GimpPath *path,
gint stroke_id,
gdouble x0,
gdouble y0);
gboolean gimp_path_bezier_stroke_conicto (GimpPath *path,
gint stroke_id,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1);
gboolean gimp_path_bezier_stroke_cubicto (GimpPath *path,
gint stroke_id,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2);
gint gimp_path_bezier_stroke_new_ellipse (GimpPath *path,
gdouble x0,
gdouble y0,
gdouble radius_x,
gdouble radius_y,
gdouble angle);
G_END_DECLS
#endif /* __GIMP_PATH_PDB_H__ */
|