gimp/libgimp/gimpitemtransform_pdb.h
Jehan 79b319cf9d libgimp, pdb: add GimpItem > GimpDrawable > GimpLayer classes.
Only class and subclasses creation and PDB generation for this first
step.
I'll later do other types of items.
2019-08-22 15:54:36 +02:00

178 lines
10 KiB
C

/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
*
* gimpitemtransform_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_ITEM_TRANSFORM_PDB_H__
#define __GIMP_ITEM_TRANSFORM_PDB_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#ifndef GIMP_DEPRECATED_REPLACE_NEW_API
GimpItem* gimp_item_transform_translate (GimpItem *item,
gdouble off_x,
gdouble off_y);
GimpItem* gimp_item_transform_flip_simple (GimpItem *item,
GimpOrientationType flip_type,
gboolean auto_center,
gdouble axis);
GimpItem* gimp_item_transform_flip (GimpItem *item,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1);
GimpItem* gimp_item_transform_perspective (GimpItem *item,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gdouble x3,
gdouble y3);
GimpItem* gimp_item_transform_rotate_simple (GimpItem *item,
GimpRotationType rotate_type,
gboolean auto_center,
gdouble center_x,
gdouble center_y);
GimpItem* gimp_item_transform_rotate (GimpItem *item,
gdouble angle,
gboolean auto_center,
gdouble center_x,
gdouble center_y);
GimpItem* gimp_item_transform_scale (GimpItem *item,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1);
GimpItem* gimp_item_transform_shear (GimpItem *item,
GimpOrientationType shear_type,
gdouble magnitude);
GimpItem* gimp_item_transform_2d (GimpItem *item,
gdouble source_x,
gdouble source_y,
gdouble scale_x,
gdouble scale_y,
gdouble angle,
gdouble dest_x,
gdouble dest_y);
GimpItem* gimp_item_transform_matrix (GimpItem *item,
gdouble coeff_0_0,
gdouble coeff_0_1,
gdouble coeff_0_2,
gdouble coeff_1_0,
gdouble coeff_1_1,
gdouble coeff_1_2,
gdouble coeff_2_0,
gdouble coeff_2_1,
gdouble coeff_2_2);
#else /* GIMP_DEPRECATED_REPLACE_NEW_API */
#define gimp_item_transform_translate _gimp_item_transform_translate
#define gimp_item_transform_flip_simple _gimp_item_transform_flip_simple
#define gimp_item_transform_flip _gimp_item_transform_flip
#define gimp_item_transform_perspective _gimp_item_transform_perspective
#define gimp_item_transform_rotate_simple _gimp_item_transform_rotate_simple
#define gimp_item_transform_rotate _gimp_item_transform_rotate
#define gimp_item_transform_scale _gimp_item_transform_scale
#define gimp_item_transform_shear _gimp_item_transform_shear
#define gimp_item_transform_2d _gimp_item_transform_2d
#define gimp_item_transform_matrix _gimp_item_transform_matrix
#endif /* GIMP_DEPRECATED_REPLACE_NEW_API */
/* Below API are deprecated and should not be used by new plug-ins.
* They are not marked internal as a trick to keep the old API alive for now.
*/
gint32 _gimp_item_transform_translate (gint32 item_ID,
gdouble off_x,
gdouble off_y);
gint32 _gimp_item_transform_flip_simple (gint32 item_ID,
GimpOrientationType flip_type,
gboolean auto_center,
gdouble axis);
gint32 _gimp_item_transform_flip (gint32 item_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1);
gint32 _gimp_item_transform_perspective (gint32 item_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2,
gdouble x3,
gdouble y3);
gint32 _gimp_item_transform_rotate_simple (gint32 item_ID,
GimpRotationType rotate_type,
gboolean auto_center,
gdouble center_x,
gdouble center_y);
gint32 _gimp_item_transform_rotate (gint32 item_ID,
gdouble angle,
gboolean auto_center,
gdouble center_x,
gdouble center_y);
gint32 _gimp_item_transform_scale (gint32 item_ID,
gdouble x0,
gdouble y0,
gdouble x1,
gdouble y1);
gint32 _gimp_item_transform_shear (gint32 item_ID,
GimpOrientationType shear_type,
gdouble magnitude);
gint32 _gimp_item_transform_2d (gint32 item_ID,
gdouble source_x,
gdouble source_y,
gdouble scale_x,
gdouble scale_y,
gdouble angle,
gdouble dest_x,
gdouble dest_y);
gint32 _gimp_item_transform_matrix (gint32 item_ID,
gdouble coeff_0_0,
gdouble coeff_0_1,
gdouble coeff_0_2,
gdouble coeff_1_0,
gdouble coeff_1_1,
gdouble coeff_1_2,
gdouble coeff_2_0,
gdouble coeff_2_1,
gdouble coeff_2_2);
G_END_DECLS
#endif /* __GIMP_ITEM_TRANSFORM_PDB_H__ */