1
/* LIBGIMP - The GIMP Library
2
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
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 2 of the License, or (at your option) any later version.
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.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the
18
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
22
/* NOTE: This file is auto-generated by pdbgen.pl */
29
* gimp_image_grid_get_spacing:
30
* @image_ID: The image.
31
* @xspacing: The image's grid horizontal spacing.
32
* @yspacing: The image's grid vertical spacing.
34
* Gets the spacing of an image's grid.
36
* This procedure retrieves the horizontal and vertical spacing of an
37
* image's grid. It takes the image as parameter.
39
* Returns: TRUE on success.
44
gimp_image_grid_get_spacing (gint32 image_ID,
48
GimpParam *return_vals;
50
gboolean success = TRUE;
52
return_vals = gimp_run_procedure ("gimp-image-grid-get-spacing",
54
GIMP_PDB_IMAGE, image_ID,
60
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
64
*xspacing = return_vals[1].data.d_float;
65
*yspacing = return_vals[2].data.d_float;
68
gimp_destroy_params (return_vals, nreturn_vals);
74
* gimp_image_grid_set_spacing:
75
* @image_ID: The image.
76
* @xspacing: The image's grid horizontal spacing.
77
* @yspacing: The image's grid vertical spacing.
79
* Sets the spacing of an image's grid.
81
* This procedure sets the horizontal and vertical spacing of an
84
* Returns: TRUE on success.
89
gimp_image_grid_set_spacing (gint32 image_ID,
93
GimpParam *return_vals;
95
gboolean success = TRUE;
97
return_vals = gimp_run_procedure ("gimp-image-grid-set-spacing",
99
GIMP_PDB_IMAGE, image_ID,
100
GIMP_PDB_FLOAT, xspacing,
101
GIMP_PDB_FLOAT, yspacing,
104
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
106
gimp_destroy_params (return_vals, nreturn_vals);
112
* gimp_image_grid_get_offset:
113
* @image_ID: The image.
114
* @xoffset: The image's grid horizontal offset.
115
* @yoffset: The image's grid vertical offset.
117
* Gets the offset of an image's grid.
119
* This procedure retrieves the horizontal and vertical offset of an
120
* image's grid. It takes the image as parameter.
122
* Returns: TRUE on success.
127
gimp_image_grid_get_offset (gint32 image_ID,
131
GimpParam *return_vals;
133
gboolean success = TRUE;
135
return_vals = gimp_run_procedure ("gimp-image-grid-get-offset",
137
GIMP_PDB_IMAGE, image_ID,
143
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
147
*xoffset = return_vals[1].data.d_float;
148
*yoffset = return_vals[2].data.d_float;
151
gimp_destroy_params (return_vals, nreturn_vals);
157
* gimp_image_grid_set_offset:
158
* @image_ID: The image.
159
* @xoffset: The image's grid horizontal offset.
160
* @yoffset: The image's grid vertical offset.
162
* Sets the offset of an image's grid.
164
* This procedure sets the horizontal and vertical offset of an image's
167
* Returns: TRUE on success.
172
gimp_image_grid_set_offset (gint32 image_ID,
176
GimpParam *return_vals;
178
gboolean success = TRUE;
180
return_vals = gimp_run_procedure ("gimp-image-grid-set-offset",
182
GIMP_PDB_IMAGE, image_ID,
183
GIMP_PDB_FLOAT, xoffset,
184
GIMP_PDB_FLOAT, yoffset,
187
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
189
gimp_destroy_params (return_vals, nreturn_vals);
195
* gimp_image_grid_get_foreground_color:
196
* @image_ID: The image.
197
* @fgcolor: The image's grid foreground color.
199
* Sets the foreground color of an image's grid.
201
* This procedure gets the foreground color of an image's grid.
203
* Returns: TRUE on success.
208
gimp_image_grid_get_foreground_color (gint32 image_ID,
211
GimpParam *return_vals;
213
gboolean success = TRUE;
215
return_vals = gimp_run_procedure ("gimp-image-grid-get-foreground-color",
217
GIMP_PDB_IMAGE, image_ID,
220
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
223
*fgcolor = return_vals[1].data.d_color;
225
gimp_destroy_params (return_vals, nreturn_vals);
231
* gimp_image_grid_set_foreground_color:
232
* @image_ID: The image.
233
* @fgcolor: The new foreground color.
235
* Gets the foreground color of an image's grid.
237
* This procedure sets the foreground color of an image's grid.
239
* Returns: TRUE on success.
244
gimp_image_grid_set_foreground_color (gint32 image_ID,
245
const GimpRGB *fgcolor)
247
GimpParam *return_vals;
249
gboolean success = TRUE;
251
return_vals = gimp_run_procedure ("gimp-image-grid-set-foreground-color",
253
GIMP_PDB_IMAGE, image_ID,
254
GIMP_PDB_COLOR, fgcolor,
257
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
259
gimp_destroy_params (return_vals, nreturn_vals);
265
* gimp_image_grid_get_background_color:
266
* @image_ID: The image.
267
* @bgcolor: The image's grid background color.
269
* Sets the background color of an image's grid.
271
* This procedure gets the background color of an image's grid.
273
* Returns: TRUE on success.
278
gimp_image_grid_get_background_color (gint32 image_ID,
281
GimpParam *return_vals;
283
gboolean success = TRUE;
285
return_vals = gimp_run_procedure ("gimp-image-grid-get-background-color",
287
GIMP_PDB_IMAGE, image_ID,
290
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
293
*bgcolor = return_vals[1].data.d_color;
295
gimp_destroy_params (return_vals, nreturn_vals);
301
* gimp_image_grid_set_background_color:
302
* @image_ID: The image.
303
* @bgcolor: The new background color.
305
* Gets the background color of an image's grid.
307
* This procedure sets the background color of an image's grid.
309
* Returns: TRUE on success.
314
gimp_image_grid_set_background_color (gint32 image_ID,
315
const GimpRGB *bgcolor)
317
GimpParam *return_vals;
319
gboolean success = TRUE;
321
return_vals = gimp_run_procedure ("gimp-image-grid-set-background-color",
323
GIMP_PDB_IMAGE, image_ID,
324
GIMP_PDB_COLOR, bgcolor,
327
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
329
gimp_destroy_params (return_vals, nreturn_vals);
335
* gimp_image_grid_get_style:
336
* @image_ID: The image.
338
* Gets the style of an image's grid.
340
* This procedure retrieves the style of an image's grid.
342
* Returns: The image's grid style.
347
gimp_image_grid_get_style (gint32 image_ID)
349
GimpParam *return_vals;
351
GimpGridStyle style = 0;
353
return_vals = gimp_run_procedure ("gimp-image-grid-get-style",
355
GIMP_PDB_IMAGE, image_ID,
358
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
359
style = return_vals[1].data.d_int32;
361
gimp_destroy_params (return_vals, nreturn_vals);
367
* gimp_image_grid_set_style:
368
* @image_ID: The image.
369
* @style: The image's grid style.
371
* Sets the style unit of an image's grid.
373
* This procedure sets the style of an image's grid. It takes the image
374
* and the new style as parameters.
376
* Returns: TRUE on success.
381
gimp_image_grid_set_style (gint32 image_ID,
384
GimpParam *return_vals;
386
gboolean success = TRUE;
388
return_vals = gimp_run_procedure ("gimp-image-grid-set-style",
390
GIMP_PDB_IMAGE, image_ID,
391
GIMP_PDB_INT32, style,
394
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
396
gimp_destroy_params (return_vals, nreturn_vals);