2000-05-31 14:15:06 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
2003-07-03 08:47:26 +08:00
|
|
|
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
|
2000-05-31 14:15:06 +08:00
|
|
|
*
|
|
|
|
* gimpdrawable_pdb.h
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2000-05-31 14:15:06 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2000-06-01 22:59:22 +08:00
|
|
|
*
|
2000-05-31 14:15:06 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2000-06-01 22:59:22 +08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2000-05-31 14:15:06 +08:00
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2000-06-01 22:59:22 +08:00
|
|
|
*/
|
|
|
|
|
2007-01-09 18:52:47 +08:00
|
|
|
/* NOTE: This file is auto-generated by pdbgen.pl */
|
2000-05-31 14:15:06 +08:00
|
|
|
|
2011-04-29 01:59:52 +08:00
|
|
|
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
|
|
|
|
#error "Only <libgimp/gimp.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2000-05-31 14:15:06 +08:00
|
|
|
#ifndef __GIMP_DRAWABLE_PDB_H__
|
|
|
|
#define __GIMP_DRAWABLE_PDB_H__
|
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_BEGIN_DECLS
|
2000-05-31 14:15:06 +08:00
|
|
|
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
|
|
|
2019-08-13 19:59:33 +08:00
|
|
|
G_GNUC_INTERNAL gchar* _gimp_drawable_get_format (GimpDrawable *drawable);
|
|
|
|
G_GNUC_INTERNAL gchar* _gimp_drawable_get_thumbnail_format (GimpDrawable *drawable);
|
2023-11-04 04:42:11 +08:00
|
|
|
GeglColor* gimp_drawable_get_pixel (GimpDrawable *drawable,
|
|
|
|
gint x_coord,
|
|
|
|
gint y_coord);
|
|
|
|
gboolean gimp_drawable_set_pixel (GimpDrawable *drawable,
|
|
|
|
gint x_coord,
|
|
|
|
gint y_coord,
|
|
|
|
GeglColor *color);
|
2019-08-13 19:59:33 +08:00
|
|
|
GimpImageType gimp_drawable_type (GimpDrawable *drawable);
|
|
|
|
GimpImageType gimp_drawable_type_with_alpha (GimpDrawable *drawable);
|
|
|
|
gboolean gimp_drawable_has_alpha (GimpDrawable *drawable);
|
|
|
|
gboolean gimp_drawable_is_rgb (GimpDrawable *drawable);
|
|
|
|
gboolean gimp_drawable_is_gray (GimpDrawable *drawable);
|
|
|
|
gboolean gimp_drawable_is_indexed (GimpDrawable *drawable);
|
2021-04-06 20:28:40 +08:00
|
|
|
gint gimp_drawable_get_bpp (GimpDrawable *drawable);
|
|
|
|
gint gimp_drawable_get_width (GimpDrawable *drawable);
|
|
|
|
gint gimp_drawable_get_height (GimpDrawable *drawable);
|
|
|
|
gboolean gimp_drawable_get_offsets (GimpDrawable *drawable,
|
2019-07-10 21:10:03 +08:00
|
|
|
gint *offset_x,
|
|
|
|
gint *offset_y);
|
2019-08-13 19:59:33 +08:00
|
|
|
gboolean gimp_drawable_mask_bounds (GimpDrawable *drawable,
|
2019-07-10 21:10:03 +08:00
|
|
|
gint *x1,
|
|
|
|
gint *y1,
|
|
|
|
gint *x2,
|
|
|
|
gint *y2);
|
2019-08-13 19:59:33 +08:00
|
|
|
gboolean gimp_drawable_mask_intersect (GimpDrawable *drawable,
|
2019-07-10 21:10:03 +08:00
|
|
|
gint *x,
|
|
|
|
gint *y,
|
|
|
|
gint *width,
|
|
|
|
gint *height);
|
2023-06-19 22:54:21 +08:00
|
|
|
gboolean gimp_drawable_merge_filters (GimpDrawable *drawable);
|
2019-08-13 19:59:33 +08:00
|
|
|
gboolean gimp_drawable_merge_shadow (GimpDrawable *drawable,
|
2019-07-10 21:10:03 +08:00
|
|
|
gboolean undo);
|
2019-08-13 19:59:33 +08:00
|
|
|
gboolean gimp_drawable_free_shadow (GimpDrawable *drawable);
|
|
|
|
gboolean gimp_drawable_update (GimpDrawable *drawable,
|
2019-07-10 21:10:03 +08:00
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
2019-08-13 19:59:33 +08:00
|
|
|
gboolean gimp_drawable_fill (GimpDrawable *drawable,
|
2019-07-10 21:10:03 +08:00
|
|
|
GimpFillType fill_type);
|
2019-08-13 19:59:33 +08:00
|
|
|
gboolean gimp_drawable_offset (GimpDrawable *drawable,
|
2019-07-10 21:10:03 +08:00
|
|
|
gboolean wrap_around,
|
|
|
|
GimpOffsetType fill_type,
|
|
|
|
gint offset_x,
|
|
|
|
gint offset_y);
|
2019-08-13 19:59:33 +08:00
|
|
|
G_GNUC_INTERNAL gboolean _gimp_drawable_thumbnail (GimpDrawable *drawable,
|
2019-07-10 21:10:03 +08:00
|
|
|
gint width,
|
|
|
|
gint height,
|
|
|
|
gint *actual_width,
|
|
|
|
gint *actual_height,
|
|
|
|
gint *bpp,
|
2023-05-24 05:37:46 +08:00
|
|
|
GBytes **thumbnail_data);
|
2019-08-13 19:59:33 +08:00
|
|
|
G_GNUC_INTERNAL gboolean _gimp_drawable_sub_thumbnail (GimpDrawable *drawable,
|
2019-07-10 21:10:03 +08:00
|
|
|
gint src_x,
|
|
|
|
gint src_y,
|
|
|
|
gint src_width,
|
|
|
|
gint src_height,
|
|
|
|
gint dest_width,
|
|
|
|
gint dest_height,
|
|
|
|
gint *width,
|
|
|
|
gint *height,
|
|
|
|
gint *bpp,
|
2023-05-24 05:37:46 +08:00
|
|
|
GBytes **thumbnail_data);
|
2019-08-13 19:59:33 +08:00
|
|
|
gboolean gimp_drawable_foreground_extract (GimpDrawable *drawable,
|
2019-07-10 21:10:03 +08:00
|
|
|
GimpForegroundExtractMode mode,
|
2019-08-13 19:59:33 +08:00
|
|
|
GimpDrawable *mask);
|
2019-08-13 00:00:44 +08:00
|
|
|
|
2000-05-31 14:15:06 +08:00
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_END_DECLS
|
2000-05-31 14:15:06 +08:00
|
|
|
|
|
|
|
#endif /* __GIMP_DRAWABLE_PDB_H__ */
|