Gimp/libgimp/gimpimagesamplepoints_pdb.h
Jehan 8c95499e14 pdb, libgimp: now make all ID types classes of their own.
No need of is_id_arg() anymore in pdb/lib.pl. Let's reuse the {id}
value. Also I had to add an additional trick for GimpDisplay which we
will now generate as such in libgimp PDB files, but still need to show
as GimpObject on app/pdb/.

As previously, only the new classes and the PDB generation for a first
step.
2019-08-22 15:54:36 +02:00

78 lines
3.1 KiB
C

/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
*
* gimpimagesamplepoints_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_IMAGE_SAMPLE_POINTS_PDB_H__
#define __GIMP_IMAGE_SAMPLE_POINTS_PDB_H__
G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
#ifndef GIMP_DEPRECATED_REPLACE_NEW_API
guint gimp_image_add_sample_point (GimpImage *image,
gint position_x,
gint position_y);
gboolean gimp_image_delete_sample_point (GimpImage *image,
guint sample_point);
guint gimp_image_find_next_sample_point (GimpImage *image,
guint sample_point);
gint gimp_image_get_sample_point_position (GimpImage *image,
guint sample_point,
gint *position_y);
#else /* GIMP_DEPRECATED_REPLACE_NEW_API */
#define gimp_image_add_sample_point _gimp_image_add_sample_point
#define gimp_image_delete_sample_point _gimp_image_delete_sample_point
#define gimp_image_find_next_sample_point _gimp_image_find_next_sample_point
#define gimp_image_get_sample_point_position _gimp_image_get_sample_point_position
#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_image_add_sample_point (gint32 image_ID,
gint position_x,
gint position_y);
gboolean _gimp_image_delete_sample_point (gint32 image_ID,
gint32 sample_point_ID);
gint32 _gimp_image_find_next_sample_point (gint32 image_ID,
gint32 sample_point_ID);
gint _gimp_image_get_sample_point_position (gint32 image_ID,
gint32 sample_point_ID,
gint *position_y);
G_END_DECLS
#endif /* __GIMP_IMAGE_SAMPLE_POINTS_PDB_H__ */