1 /* GIMP - The GNU Image Manipulation Program 2 * Copyright (C) 1995-2003 Spencer Kimball and Peter Mattis 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <https://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef __GIMP_PDB_UTILS_H__ 19 #define __GIMP_PDB_UTILS_H__ 20 21 22 GimpBrush * gimp_pdb_get_brush (Gimp *gimp, 23 const gchar *name, 24 GimpPDBDataAccess access, 25 GError **error); 26 GimpBrush * gimp_pdb_get_generated_brush (Gimp *gimp, 27 const gchar *name, 28 GimpPDBDataAccess access, 29 GError **error); 30 GimpDynamics * gimp_pdb_get_dynamics (Gimp *gimp, 31 const gchar *name, 32 GimpPDBDataAccess access, 33 GError **error); 34 GimpMybrush * gimp_pdb_get_mybrush (Gimp *gimp, 35 const gchar *name, 36 GimpPDBDataAccess access, 37 GError **error); 38 GimpPattern * gimp_pdb_get_pattern (Gimp *gimp, 39 const gchar *name, 40 GError **error); 41 GimpGradient * gimp_pdb_get_gradient (Gimp *gimp, 42 const gchar *name, 43 GimpPDBDataAccess access, 44 GError **error); 45 GimpPalette * gimp_pdb_get_palette (Gimp *gimp, 46 const gchar *name, 47 GimpPDBDataAccess access, 48 GError **error); 49 GimpFont * gimp_pdb_get_font (Gimp *gimp, 50 const gchar *name, 51 GError **error); 52 GimpBuffer * gimp_pdb_get_buffer (Gimp *gimp, 53 const gchar *name, 54 GError **error); 55 GimpPaintInfo * gimp_pdb_get_paint_info (Gimp *gimp, 56 const gchar *name, 57 GError **error); 58 59 gboolean gimp_pdb_item_is_attached (GimpItem *item, 60 GimpImage *image, 61 GimpPDBItemModify modify, 62 GError **error); 63 gboolean gimp_pdb_item_is_in_tree (GimpItem *item, 64 GimpImage *image, 65 GimpPDBItemModify modify, 66 GError **error); 67 gboolean gimp_pdb_item_is_in_same_tree (GimpItem *item, 68 GimpItem *item2, 69 GimpImage *image, 70 GError **error); 71 gboolean gimp_pdb_item_is_not_ancestor (GimpItem *item, 72 GimpItem *not_descendant, 73 GError **error); 74 gboolean gimp_pdb_item_is_floating (GimpItem *item, 75 GimpImage *dest_image, 76 GError **error); 77 gboolean gimp_pdb_item_is_modifiable (GimpItem *item, 78 GimpPDBItemModify modify, 79 GError **error); 80 gboolean gimp_pdb_item_is_group (GimpItem *item, 81 GError **error); 82 gboolean gimp_pdb_item_is_not_group (GimpItem *item, 83 GError **error); 84 85 gboolean gimp_pdb_layer_is_text_layer (GimpLayer *layer, 86 GimpPDBItemModify modify, 87 GError **error); 88 89 gboolean gimp_pdb_image_is_base_type (GimpImage *image, 90 GimpImageBaseType type, 91 GError **error); 92 gboolean gimp_pdb_image_is_not_base_type (GimpImage *image, 93 GimpImageBaseType type, 94 GError **error); 95 96 gboolean gimp_pdb_image_is_precision (GimpImage *image, 97 GimpPrecision precision, 98 GError **error); 99 gboolean gimp_pdb_image_is_not_precision (GimpImage *image, 100 GimpPrecision precision, 101 GError **error); 102 103 GimpGuide * gimp_pdb_image_get_guide (GimpImage *image, 104 gint guide_ID, 105 GError **error); 106 GimpSamplePoint * 107 gimp_pdb_image_get_sample_point (GimpImage *image, 108 gint sample_point_ID, 109 GError **error); 110 111 GimpStroke * gimp_pdb_get_vectors_stroke (GimpVectors *vectors, 112 gint stroke_ID, 113 GimpPDBItemModify modify, 114 GError **error); 115 116 117 #endif /* __GIMP_PDB_UTILS_H__ */ 118