summaryrefslogtreecommitdiffstats
path: root/app/pdb/gimppdb-utils.h
blob: 83b51c04abd0052a44a78dbfda625e24b1e8c529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/* GIMP - The GNU Image Manipulation Program
 * Copyright (C) 1995-2003 Spencer Kimball and Peter Mattis
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

#ifndef __GIMP_PDB_UTILS_H__
#define __GIMP_PDB_UTILS_H__


GimpBrush     * gimp_pdb_get_brush              (Gimp               *gimp,
                                                 const gchar        *name,
                                                 GimpPDBDataAccess   access,
                                                 GError            **error);
GimpBrush     * gimp_pdb_get_generated_brush    (Gimp               *gimp,
                                                 const gchar        *name,
                                                 GimpPDBDataAccess   access,
                                                 GError            **error);
GimpDynamics  * gimp_pdb_get_dynamics           (Gimp               *gimp,
                                                 const gchar        *name,
                                                 GimpPDBDataAccess   access,
                                                 GError            **error);
GimpMybrush   * gimp_pdb_get_mybrush            (Gimp               *gimp,
                                                 const gchar        *name,
                                                 GimpPDBDataAccess   access,
                                                 GError            **error);
GimpPattern   * gimp_pdb_get_pattern            (Gimp               *gimp,
                                                 const gchar        *name,
                                                 GError            **error);
GimpGradient  * gimp_pdb_get_gradient           (Gimp               *gimp,
                                                 const gchar        *name,
                                                 GimpPDBDataAccess   access,
                                                 GError            **error);
GimpPalette   * gimp_pdb_get_palette            (Gimp               *gimp,
                                                 const gchar        *name,
                                                 GimpPDBDataAccess   access,
                                                 GError            **error);
GimpFont      * gimp_pdb_get_font               (Gimp               *gimp,
                                                 const gchar        *name,
                                                 GError            **error);
GimpBuffer    * gimp_pdb_get_buffer             (Gimp               *gimp,
                                                 const gchar        *name,
                                                 GError            **error);
GimpPaintInfo * gimp_pdb_get_paint_info         (Gimp               *gimp,
                                                 const gchar        *name,
                                                 GError            **error);

gboolean        gimp_pdb_item_is_attached       (GimpItem           *item,
                                                 GimpImage          *image,
                                                 GimpPDBItemModify   modify,
                                                 GError            **error);
gboolean        gimp_pdb_item_is_in_tree        (GimpItem           *item,
                                                 GimpImage          *image,
                                                 GimpPDBItemModify   modify,
                                                 GError            **error);
gboolean        gimp_pdb_item_is_in_same_tree   (GimpItem           *item,
                                                 GimpItem           *item2,
                                                 GimpImage          *image,
                                                 GError            **error);
gboolean        gimp_pdb_item_is_not_ancestor   (GimpItem           *item,
                                                 GimpItem           *not_descendant,
                                                 GError            **error);
gboolean        gimp_pdb_item_is_floating       (GimpItem           *item,
                                                 GimpImage          *dest_image,
                                                 GError            **error);
gboolean        gimp_pdb_item_is_modifiable     (GimpItem           *item,
                                                 GimpPDBItemModify   modify,
                                                 GError            **error);
gboolean        gimp_pdb_item_is_group          (GimpItem           *item,
                                                 GError            **error);
gboolean        gimp_pdb_item_is_not_group      (GimpItem           *item,
                                                 GError            **error);

gboolean        gimp_pdb_layer_is_text_layer    (GimpLayer          *layer,
                                                 GimpPDBItemModify   modify,
                                                 GError            **error);

gboolean        gimp_pdb_image_is_base_type     (GimpImage          *image,
                                                 GimpImageBaseType   type,
                                                 GError            **error);
gboolean        gimp_pdb_image_is_not_base_type (GimpImage          *image,
                                                 GimpImageBaseType   type,
                                                 GError            **error);

gboolean        gimp_pdb_image_is_precision     (GimpImage          *image,
                                                 GimpPrecision       precision,
                                                 GError            **error);
gboolean        gimp_pdb_image_is_not_precision (GimpImage          *image,
                                                 GimpPrecision       precision,
                                                 GError            **error);

GimpGuide     * gimp_pdb_image_get_guide        (GimpImage          *image,
                                                 gint                guide_ID,
                                                 GError            **error);
GimpSamplePoint *
                gimp_pdb_image_get_sample_point (GimpImage          *image,
                                                 gint                sample_point_ID,
                                                 GError            **error);

GimpStroke    * gimp_pdb_get_vectors_stroke     (GimpVectors        *vectors,
                                                 gint                stroke_ID,
                                                 GimpPDBItemModify   modify,
                                                 GError            **error);


#endif /* __GIMP_PDB_UTILS_H__ */