189
struct HINSTANCE__; \
191
WinMain (struct HINSTANCE__ *hInstance, \
192
struct HINSTANCE__ *hPrevInstance, \
196
return gimp_main (&PLUG_IN_INFO, __argc, __argv); \
200
main (int argc, char *argv[]) \
202
return gimp_main (&PLUG_IN_INFO, argc, argv); \
181
struct HINSTANCE__; \
184
WinMain (struct HINSTANCE__ *hInstance, \
185
struct HINSTANCE__ *hPrevInstance, \
190
WinMain (struct HINSTANCE__ *hInstance, \
191
struct HINSTANCE__ *hPrevInstance, \
195
return gimp_main (&PLUG_IN_INFO, __argc, __argv); \
199
main (int argc, char *argv[]) \
201
return gimp_main (&PLUG_IN_INFO, argc, argv); \
207
main (int argc, char *argv[]) \
209
return gimp_main (&PLUG_IN_INFO, argc, argv); \
206
main (int argc, char *argv[]) \
208
return gimp_main (&PLUG_IN_INFO, argc, argv); \
214
213
/* The main procedure that must be called with the PLUG_IN_INFO structure
215
214
* and the 'argc' and 'argv' that are passed to "main".
217
gint gimp_main (const GimpPlugInInfo *info,
216
gint gimp_main (const GimpPlugInInfo *info,
221
220
/* Forcefully causes the gimp library to exit and
222
221
* close down its connection to main gimp application.
224
void gimp_quit (void) G_GNUC_NORETURN;
223
void gimp_quit (void) G_GNUC_NORETURN;
227
226
/* Install a procedure in the procedure database.
229
void gimp_install_procedure (const gchar *name,
233
const gchar *copyright,
235
const gchar *menu_label,
236
const gchar *image_types,
237
GimpPDBProcType type,
240
const GimpParamDef *params,
241
const GimpParamDef *return_vals);
228
void gimp_install_procedure (const gchar *name,
232
const gchar *copyright,
234
const gchar *menu_label,
235
const gchar *image_types,
236
GimpPDBProcType type,
239
const GimpParamDef *params,
240
const GimpParamDef *return_vals);
243
242
/* Install a temporary procedure in the procedure database.
245
void gimp_install_temp_proc (const gchar *name,
249
const gchar *copyright,
251
const gchar *menu_label,
252
const gchar *image_types,
253
GimpPDBProcType type,
256
const GimpParamDef *params,
257
const GimpParamDef *return_vals,
258
GimpRunProc run_proc);
244
void gimp_install_temp_proc (const gchar *name,
248
const gchar *copyright,
250
const gchar *menu_label,
251
const gchar *image_types,
252
GimpPDBProcType type,
255
const GimpParamDef *params,
256
const GimpParamDef *return_vals,
257
GimpRunProc run_proc);
260
259
/* Uninstall a temporary procedure
262
void gimp_uninstall_temp_proc (const gchar *name);
261
void gimp_uninstall_temp_proc (const gchar *name);
264
263
/* Notify the main GIMP application that the extension is ready to run
266
void gimp_extension_ack (void);
265
void gimp_extension_ack (void);
268
267
/* Enable asynchronous processing of temp_procs
270
void gimp_extension_enable (void);
269
void gimp_extension_enable (void);
272
271
/* Process one temp_proc and return
274
void gimp_extension_process (guint timeout);
273
void gimp_extension_process (guint timeout);
276
275
/* Run a procedure in the procedure database. The parameters are
277
276
* specified via the variable length argument list. The return
278
277
* values are returned in the 'GimpParam*' array.
280
GimpParam * gimp_run_procedure (const gchar *name,
279
GimpParam * gimp_run_procedure (const gchar *name,
284
283
/* Run a procedure in the procedure database. The parameters are
285
284
* specified as an array of GimpParam. The return
286
285
* values are returned in the 'GimpParam*' array.
288
GimpParam * gimp_run_procedure2 (const gchar *name,
291
const GimpParam *params);
287
GimpParam * gimp_run_procedure2 (const gchar *name,
290
const GimpParam *params);
293
292
/* Destroy the an array of parameters. This is useful for
294
293
* destroying the return values returned by a call to
295
294
* 'gimp_run_procedure'.
297
void gimp_destroy_params (GimpParam *params,
296
void gimp_destroy_params (GimpParam *params,
300
299
/* Destroy the an array of GimpParamDef's. This is useful for
301
300
* destroying the return values returned by a call to
302
301
* 'gimp_query_procedure'.
304
void gimp_destroy_paramdefs (GimpParamDef *paramdefs,
303
void gimp_destroy_paramdefs (GimpParamDef *paramdefs,
308
307
/* Return various constants given by the GIMP core at plug-in config time.
310
guint gimp_tile_width (void) G_GNUC_CONST;
311
guint gimp_tile_height (void) G_GNUC_CONST;
312
gint gimp_shm_ID (void) G_GNUC_CONST;
313
guchar * gimp_shm_addr (void) G_GNUC_CONST;
314
gdouble gimp_gamma (void) G_GNUC_CONST;
315
gboolean gimp_install_cmap (void) G_GNUC_CONST;
316
gint gimp_min_colors (void) G_GNUC_CONST;
317
gboolean gimp_show_tool_tips (void) G_GNUC_CONST;
318
gboolean gimp_show_help_button (void) G_GNUC_CONST;
319
GimpCheckSize gimp_check_size (void) G_GNUC_CONST;
320
GimpCheckType gimp_check_type (void) G_GNUC_CONST;
321
gint32 gimp_default_display (void) G_GNUC_CONST;
322
const gchar * gimp_wm_class (void) G_GNUC_CONST;
323
const gchar * gimp_display_name (void) G_GNUC_CONST;
324
gint gimp_monitor_number (void) G_GNUC_CONST;
326
const gchar * gimp_get_progname (void) G_GNUC_CONST;
329
void gimp_attach_new_parasite (const gchar *name,
309
guint gimp_tile_width (void) G_GNUC_CONST;
310
guint gimp_tile_height (void) G_GNUC_CONST;
311
gint gimp_shm_ID (void) G_GNUC_CONST;
312
guchar * gimp_shm_addr (void) G_GNUC_CONST;
313
gdouble gimp_gamma (void) G_GNUC_CONST;
314
gboolean gimp_install_cmap (void) G_GNUC_CONST;
315
gint gimp_min_colors (void) G_GNUC_CONST;
316
gboolean gimp_show_tool_tips (void) G_GNUC_CONST;
317
gboolean gimp_show_help_button (void) G_GNUC_CONST;
318
GimpCheckSize gimp_check_size (void) G_GNUC_CONST;
319
GimpCheckType gimp_check_type (void) G_GNUC_CONST;
320
gint32 gimp_default_display (void) G_GNUC_CONST;
321
const gchar * gimp_wm_class (void) G_GNUC_CONST;
322
const gchar * gimp_display_name (void) G_GNUC_CONST;
323
gint gimp_monitor_number (void) G_GNUC_CONST;
325
const gchar * gimp_get_progname (void) G_GNUC_CONST;
327
gboolean gimp_attach_new_parasite (const gchar *name,