1 /* LIBGIMP - The GIMP Library 2 * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball 3 * 4 * gimpdrawable_pdb.h 5 * 6 * This library is free software: you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 3 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * 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 #if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION) 24 #error "Only <libgimp/gimp.h> can be included directly." 25 #endif 26 27 #ifndef __GIMP_DRAWABLE_PDB_H__ 28 #define __GIMP_DRAWABLE_PDB_H__ 29 30 G_BEGIN_DECLS 31 32 /* For information look into the C source or the html documentation */ 33 34 35 G_GNUC_INTERNAL gchar* _gimp_drawable_get_format (gint32 drawable_ID); 36 G_GNUC_INTERNAL gchar* _gimp_drawable_get_thumbnail_format (gint32 drawable_ID); 37 GimpImageType gimp_drawable_type (gint32 drawable_ID); 38 GimpImageType gimp_drawable_type_with_alpha (gint32 drawable_ID); 39 gboolean gimp_drawable_has_alpha (gint32 drawable_ID); 40 gboolean gimp_drawable_is_rgb (gint32 drawable_ID); 41 gboolean gimp_drawable_is_gray (gint32 drawable_ID); 42 gboolean gimp_drawable_is_indexed (gint32 drawable_ID); 43 gint gimp_drawable_bpp (gint32 drawable_ID); 44 gint gimp_drawable_width (gint32 drawable_ID); 45 gint gimp_drawable_height (gint32 drawable_ID); 46 gboolean gimp_drawable_offsets (gint32 drawable_ID, 47 gint *offset_x, 48 gint *offset_y); 49 GIMP_DEPRECATED 50 gboolean gimp_drawable_set_image (gint32 drawable_ID, 51 gint32 image_ID); 52 gboolean gimp_drawable_mask_bounds (gint32 drawable_ID, 53 gint *x1, 54 gint *y1, 55 gint *x2, 56 gint *y2); 57 gboolean gimp_drawable_mask_intersect (gint32 drawable_ID, 58 gint *x, 59 gint *y, 60 gint *width, 61 gint *height); 62 gboolean gimp_drawable_merge_shadow (gint32 drawable_ID, 63 gboolean undo); 64 gboolean gimp_drawable_free_shadow (gint32 drawable_ID); 65 gboolean gimp_drawable_update (gint32 drawable_ID, 66 gint x, 67 gint y, 68 gint width, 69 gint height); 70 guint8* gimp_drawable_get_pixel (gint32 drawable_ID, 71 gint x_coord, 72 gint y_coord, 73 gint *num_channels); 74 gboolean gimp_drawable_set_pixel (gint32 drawable_ID, 75 gint x_coord, 76 gint y_coord, 77 gint num_channels, 78 const guint8 *pixel); 79 gboolean gimp_drawable_fill (gint32 drawable_ID, 80 GimpFillType fill_type); 81 gboolean gimp_drawable_offset (gint32 drawable_ID, 82 gboolean wrap_around, 83 GimpOffsetType fill_type, 84 gint offset_x, 85 gint offset_y); 86 G_GNUC_INTERNAL gboolean _gimp_drawable_thumbnail (gint32 drawable_ID, 87 gint width, 88 gint height, 89 gint *actual_width, 90 gint *actual_height, 91 gint *bpp, 92 gint *thumbnail_data_count, 93 guint8 **thumbnail_data); 94 G_GNUC_INTERNAL gboolean _gimp_drawable_sub_thumbnail (gint32 drawable_ID, 95 gint src_x, 96 gint src_y, 97 gint src_width, 98 gint src_height, 99 gint dest_width, 100 gint dest_height, 101 gint *width, 102 gint *height, 103 gint *bpp, 104 gint *thumbnail_data_count, 105 guint8 **thumbnail_data); 106 gboolean gimp_drawable_foreground_extract (gint32 drawable_ID, 107 GimpForegroundExtractMode mode, 108 gint32 mask_ID); 109 110 111 G_END_DECLS 112 113 #endif /* __GIMP_DRAWABLE_PDB_H__ */ 114