1999-12-27 12:02:07 +00:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
1998-01-25 10:26:47 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
1999-11-17 21:13:50 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
1998-01-25 10:26:47 +00:00
|
|
|
* License as published by the Free Software Foundation; either
|
1999-12-27 12:02:07 +00:00
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
1999-12-26 07:54:39 +00:00
|
|
|
* Lesser General Public License for more details.
|
1998-01-25 10:26:47 +00:00
|
|
|
*
|
1999-11-17 21:13:50 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
1998-04-13 05:44:11 +00:00
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
1999-12-27 12:02:07 +00:00
|
|
|
*/
|
|
|
|
|
1997-11-24 22:05:25 +00:00
|
|
|
#ifndef __GIMP_H__
|
|
|
|
#define __GIMP_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
2000-01-25 23:06:12 +00:00
|
|
|
|
2000-05-27 01:30:21 +00:00
|
|
|
#include <libgimp/gimpenums.h>
|
2000-05-31 06:15:06 +00:00
|
|
|
#include <libgimp/gimptypes.h>
|
|
|
|
|
2000-05-27 01:30:21 +00:00
|
|
|
#include <libgimp/gimpcolorspace.h>
|
|
|
|
#include <libgimp/gimpfeatures.h>
|
|
|
|
#include <libgimp/gimpenv.h>
|
|
|
|
#include <libgimp/gimplimits.h>
|
|
|
|
#include <libgimp/gimpmath.h>
|
|
|
|
#include <libgimp/gimpparasite.h>
|
2000-05-31 06:15:06 +00:00
|
|
|
#include <libgimp/gimppixelrgn.h>
|
|
|
|
#include <libgimp/gimptile.h>
|
2000-05-27 01:30:21 +00:00
|
|
|
#include <libgimp/gimpunit.h>
|
|
|
|
#include <libgimp/gimputils.h>
|
|
|
|
#include <libgimp/gimpvector.h>
|
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
#include <libgimp/gimpchannel_pdb.h>
|
|
|
|
#include <libgimp/gimpdisplay_pdb.h>
|
|
|
|
#include <libgimp/gimpdrawable_pdb.h>
|
|
|
|
#include <libgimp/gimpgradient_pdb.h>
|
|
|
|
#include <libgimp/gimphelp_pdb.h>
|
|
|
|
#include <libgimp/gimpimage_pdb.h>
|
|
|
|
#include <libgimp/gimplayer_pdb.h>
|
|
|
|
#include <libgimp/gimppalette_pdb.h>
|
|
|
|
#include <libgimp/gimpparasite_pdb.h>
|
|
|
|
#include <libgimp/gimpselection_pdb.h>
|
|
|
|
#include <libgimp/gimpunit_pdb.h>
|
|
|
|
|
2000-05-27 01:30:21 +00:00
|
|
|
#include <libgimp/gimpcompat.h> /* to be removed in 1.3 */
|
1997-11-24 22:05:25 +00:00
|
|
|
|
1999-10-04 19:26:07 +00:00
|
|
|
#ifdef G_OS_WIN32
|
2000-02-23 22:03:37 +00:00
|
|
|
# include <stdlib.h> /* For _-argc and __argv */
|
1999-03-07 12:56:03 +00:00
|
|
|
# ifdef LIBGIMP_COMPILATION
|
|
|
|
# define GIMPVAR __declspec(dllexport)
|
|
|
|
# else /* !LIBGIMP_COMPILATION */
|
|
|
|
# define GIMPVAR extern __declspec(dllimport)
|
|
|
|
# endif /* !LIBGIMP_COMPILATION */
|
1999-10-04 19:26:07 +00:00
|
|
|
#else /* !G_OS_WIN32 */
|
1999-03-07 12:56:03 +00:00
|
|
|
# define GIMPVAR extern
|
|
|
|
#endif
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
1999-03-07 12:56:03 +00:00
|
|
|
GIMPVAR guint gimp_major_version;
|
|
|
|
GIMPVAR guint gimp_minor_version;
|
|
|
|
GIMPVAR guint gimp_micro_version;
|
2000-05-31 06:15:06 +00:00
|
|
|
|
1999-03-07 12:56:03 +00:00
|
|
|
GIMPVAR GIOChannel *_readchannel;
|
1998-07-15 02:28:31 +00:00
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
typedef void (* GimpInitProc) (void);
|
|
|
|
typedef void (* GimpQuitProc) (void);
|
|
|
|
typedef void (* GimpQueryProc) (void);
|
|
|
|
typedef void (* GimpRunProc) (gchar *name,
|
|
|
|
gint nparams,
|
|
|
|
GimpParam *param,
|
|
|
|
gint *nreturn_vals,
|
|
|
|
GimpParam **return_vals);
|
|
|
|
|
|
|
|
|
|
|
|
struct _GimpPlugInInfo
|
1997-11-24 22:05:25 +00:00
|
|
|
{
|
|
|
|
/* called when the gimp application initially starts up */
|
2000-05-31 06:15:06 +00:00
|
|
|
GimpInitProc init_proc;
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* called when the gimp application exits */
|
2000-05-31 06:15:06 +00:00
|
|
|
GimpQuitProc quit_proc;
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* called by the gimp so that the plug-in can inform the
|
|
|
|
* gimp of what it does. (ie. installing a procedure database
|
|
|
|
* procedure).
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
GimpQueryProc query_proc;
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* called to run a procedure the plug-in installed in the
|
|
|
|
* procedure database.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
GimpRunProc run_proc;
|
1997-11-24 22:05:25 +00:00
|
|
|
};
|
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
struct _GimpParamDef
|
1997-11-24 22:05:25 +00:00
|
|
|
{
|
2000-05-31 06:15:06 +00:00
|
|
|
GimpPDBArgType type;
|
|
|
|
gchar *name;
|
|
|
|
gchar *description;
|
1997-11-24 22:05:25 +00:00
|
|
|
};
|
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
struct _GimpParamColor
|
1998-02-26 10:19:58 +00:00
|
|
|
{
|
|
|
|
guint8 red;
|
|
|
|
guint8 green;
|
|
|
|
guint8 blue;
|
|
|
|
};
|
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
struct _GimpParamRegion
|
1998-02-26 10:19:58 +00:00
|
|
|
{
|
|
|
|
gint32 x;
|
|
|
|
gint32 y;
|
|
|
|
gint32 width;
|
|
|
|
gint32 height;
|
|
|
|
};
|
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
union _GimpParamData
|
1998-02-12 18:16:21 +00:00
|
|
|
{
|
2000-05-31 06:15:06 +00:00
|
|
|
gint32 d_int32;
|
|
|
|
gint16 d_int16;
|
|
|
|
gint8 d_int8;
|
|
|
|
gdouble d_float;
|
|
|
|
gchar *d_string;
|
|
|
|
gint32 *d_int32array;
|
|
|
|
gint16 *d_int16array;
|
|
|
|
gint8 *d_int8array;
|
|
|
|
gdouble *d_floatarray;
|
|
|
|
gchar **d_stringarray;
|
|
|
|
GimpParamColor d_color;
|
|
|
|
GimpParamRegion d_region;
|
|
|
|
gint32 d_display;
|
|
|
|
gint32 d_image;
|
|
|
|
gint32 d_layer;
|
|
|
|
gint32 d_channel;
|
|
|
|
gint32 d_drawable;
|
|
|
|
gint32 d_selection;
|
|
|
|
gint32 d_boundary;
|
|
|
|
gint32 d_path;
|
|
|
|
GimpParasite d_parasite;
|
|
|
|
gint32 d_status;
|
1998-02-12 18:16:21 +00:00
|
|
|
};
|
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
struct _GimpParam
|
1997-11-24 22:05:25 +00:00
|
|
|
{
|
2000-05-31 06:15:06 +00:00
|
|
|
GimpPDBArgType type;
|
|
|
|
GimpParamData data;
|
1997-11-24 22:05:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
1999-10-04 19:26:07 +00:00
|
|
|
#ifdef G_OS_WIN32
|
1999-07-03 02:27:32 +00:00
|
|
|
/* Define WinMain() because plug-ins are built as GUI applications. Also
|
1999-03-07 12:56:03 +00:00
|
|
|
* define a main() in case some plug-in still is built as a console
|
|
|
|
* application.
|
|
|
|
*/
|
1999-05-28 21:56:04 +00:00
|
|
|
# ifdef __GNUC__
|
2000-04-10 20:47:04 +00:00
|
|
|
# ifndef _stdcall
|
|
|
|
# define _stdcall __attribute__((stdcall))
|
|
|
|
# endif
|
1999-05-28 21:56:04 +00:00
|
|
|
# endif
|
|
|
|
|
1999-03-07 12:56:03 +00:00
|
|
|
# define MAIN() \
|
1999-07-03 02:27:32 +00:00
|
|
|
static int \
|
Update gcc instructions. Remove warning about gettext being GPL, as the
* README.win32: Update gcc instructions. Remove warning about
gettext being GPL, as the GIMP is GPL, too, of course, and it
thus doesn't matter.
* user_install.bat: Rename the template user gtkrc to gtkrc_user,
to reduce user confusion.
* app/main.c: Small change for gcc on Win32 compilation.
* */makefile.cygwin
* app/module_db.c: With newest gcc-2.95 -fnative-struct on Win32,
no need to have differently named DLLs (including modules) for
(built by) gcc and MSVC.
* app/module_db.c: Use g_strdup_printf() instead of
strlen(), g_malloc() and g_snprintf()
* libgimp/Makefile.am: No need to distribute gimpfeatures.h.win32,
the suitable gimpfeatures.h is built when making the dist.
* libgimp/gimpfeatures.h.win32: Removed.
* libgimp/makefile.cygwin
* libgimp/makefile.msc: Remove gimpfeatures.h.win32.
* libgimp/gimp.h: Win32 startup code changed a bit.
* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Add the winsnap unofficial plug-in.
* plug-ins/common/animationplay.c
* plug-ins/common/gz.c: (Win32) Hack aroung WinMain getting
clashing declarations because these guys include gdkx.h (which
includes windows.h), and gimp.h also declares WinMain on its own.
1999-07-21 19:52:20 +00:00
|
|
|
win32_gimp_main (int argc, char **argv) \
|
1999-07-03 02:27:32 +00:00
|
|
|
{ \
|
2000-05-31 06:15:06 +00:00
|
|
|
extern void set_gimp_PLUG_IN_INFO_PTR(GimpPlugInInfo *); \
|
1999-07-03 02:27:32 +00:00
|
|
|
set_gimp_PLUG_IN_INFO_PTR(&PLUG_IN_INFO); \
|
|
|
|
return gimp_main (argc, argv); \
|
|
|
|
} \
|
|
|
|
\
|
1999-11-26 00:15:16 +00:00
|
|
|
struct HINSTANCE__; \
|
1999-03-07 12:56:03 +00:00
|
|
|
int _stdcall \
|
1999-11-26 00:15:16 +00:00
|
|
|
WinMain (struct HINSTANCE__ *hInstance, \
|
|
|
|
struct HINSTANCE__ *hPrevInstance, \
|
1999-03-07 12:56:03 +00:00
|
|
|
char *lpszCmdLine, \
|
Update gcc instructions. Remove warning about gettext being GPL, as the
* README.win32: Update gcc instructions. Remove warning about
gettext being GPL, as the GIMP is GPL, too, of course, and it
thus doesn't matter.
* user_install.bat: Rename the template user gtkrc to gtkrc_user,
to reduce user confusion.
* app/main.c: Small change for gcc on Win32 compilation.
* */makefile.cygwin
* app/module_db.c: With newest gcc-2.95 -fnative-struct on Win32,
no need to have differently named DLLs (including modules) for
(built by) gcc and MSVC.
* app/module_db.c: Use g_strdup_printf() instead of
strlen(), g_malloc() and g_snprintf()
* libgimp/Makefile.am: No need to distribute gimpfeatures.h.win32,
the suitable gimpfeatures.h is built when making the dist.
* libgimp/gimpfeatures.h.win32: Removed.
* libgimp/makefile.cygwin
* libgimp/makefile.msc: Remove gimpfeatures.h.win32.
* libgimp/gimp.h: Win32 startup code changed a bit.
* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Add the winsnap unofficial plug-in.
* plug-ins/common/animationplay.c
* plug-ins/common/gz.c: (Win32) Hack aroung WinMain getting
clashing declarations because these guys include gdkx.h (which
includes windows.h), and gimp.h also declares WinMain on its own.
1999-07-21 19:52:20 +00:00
|
|
|
int nCmdShow) \
|
1999-03-07 12:56:03 +00:00
|
|
|
{ \
|
1999-07-03 02:27:32 +00:00
|
|
|
return win32_gimp_main (__argc, __argv); \
|
1999-03-07 12:56:03 +00:00
|
|
|
} \
|
|
|
|
\
|
|
|
|
int \
|
|
|
|
main (int argc, char *argv[]) \
|
|
|
|
{ \
|
1999-07-03 02:27:32 +00:00
|
|
|
return win32_gimp_main (argc, argv); \
|
1999-03-07 12:56:03 +00:00
|
|
|
}
|
|
|
|
#else
|
1999-04-24 09:36:39 +00:00
|
|
|
#ifndef __EMX__
|
1999-03-07 12:56:03 +00:00
|
|
|
# define MAIN() \
|
|
|
|
int \
|
|
|
|
main (int argc, char *argv[]) \
|
|
|
|
{ \
|
|
|
|
return gimp_main (argc, argv); \
|
|
|
|
}
|
1999-04-24 09:36:39 +00:00
|
|
|
#else
|
|
|
|
# define MAIN() \
|
|
|
|
int \
|
|
|
|
main (int argc, char *argv[]) \
|
|
|
|
{ \
|
|
|
|
set_gimp_PLUG_IN_INFO(&PLUG_IN_INFO); \
|
|
|
|
return gimp_main (argc, argv); \
|
|
|
|
}
|
|
|
|
#endif
|
1999-03-07 12:56:03 +00:00
|
|
|
#endif
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* The main procedure that should be called with the
|
|
|
|
* 'argc' and 'argv' that are passed to "main".
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
gint gimp_main (gint argc,
|
|
|
|
gchar *argv[]);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Forcefully causes the gimp library to exit and
|
|
|
|
* close down its connection to main gimp application.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void G_GNUC_NORETURN gimp_quit (void);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Specify a range of data to be associated with 'id'.
|
|
|
|
* The data will exist for as long as the main gimp
|
|
|
|
* application is running.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_set_data (gchar *id,
|
|
|
|
gpointer data,
|
|
|
|
guint32 length);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Retrieve the piece of data stored within the main
|
|
|
|
* gimp application specified by 'id'. The data is
|
|
|
|
* stored in the supplied buffer. Make sure enough
|
|
|
|
* space is allocated.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_get_data (gchar *id,
|
|
|
|
gpointer data);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
1998-06-27 00:23:43 +00:00
|
|
|
/* Get the size in bytes of the data stored by a gimp_get_data
|
|
|
|
* id. As size of zero may indicate that there is no such
|
|
|
|
* identifier in the database.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
guint32 gimp_get_data_size (gchar *id);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Initialize the progress bar with "message". If "message"
|
|
|
|
* is NULL, the message displayed in the progress window will
|
|
|
|
* be the name of the plug-in.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_progress_init (gchar *message);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Update the progress bar. If the progress bar has not been
|
|
|
|
* initialized then it will be automatically initialized as if
|
|
|
|
* "gimp_progress_init (NULL)" were called. "percentage" is a
|
|
|
|
* value between 0 and 1.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_progress_update (gdouble percentage);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
1999-05-16 20:22:33 +00:00
|
|
|
/* Returns the default gdisplay (given at plug-in config time).
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
gint32 gimp_default_display (void);
|
1999-05-16 20:22:33 +00:00
|
|
|
|
1997-11-24 22:05:25 +00:00
|
|
|
|
1998-05-28 09:03:57 +00:00
|
|
|
/* Pops up a dialog box with "message". Useful for status and
|
|
|
|
* error reports. If "message" is NULL, do nothing.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_message (const gchar *message);
|
1998-05-28 09:03:57 +00:00
|
|
|
|
|
|
|
|
1997-11-24 22:05:25 +00:00
|
|
|
/* Query the gimp application's procedural database.
|
|
|
|
* The arguments are regular expressions which select
|
|
|
|
* which procedure names will be returned in 'proc_names'.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_query_database (gchar *name_regexp,
|
|
|
|
gchar *blurb_regexp,
|
|
|
|
gchar *help_regexp,
|
|
|
|
gchar *author_regexp,
|
|
|
|
gchar *copyright_regexp,
|
|
|
|
gchar *date_regexp,
|
|
|
|
gchar *proc_type_regexp,
|
|
|
|
gint *nprocs,
|
|
|
|
gchar ***proc_names);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Query the gimp application's procedural database
|
|
|
|
* regarding a particular procedure.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
gboolean gimp_query_procedure (gchar *proc_name,
|
|
|
|
gchar **proc_blurb,
|
|
|
|
gchar **proc_help,
|
|
|
|
gchar **proc_author,
|
|
|
|
gchar **proc_copyright,
|
|
|
|
gchar **proc_date,
|
|
|
|
gint *proc_type,
|
|
|
|
gint *nparams,
|
|
|
|
gint *nreturn_vals,
|
|
|
|
GimpParamDef **params,
|
|
|
|
GimpParamDef **return_vals);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Query the gimp application regarding all open images.
|
|
|
|
* The list of open image id's is returned in 'image_ids'.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
gint32 * gimp_query_images (gint *nimages);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Install a procedure in the procedure database.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_install_procedure (gchar *name,
|
|
|
|
gchar *blurb,
|
|
|
|
gchar *help,
|
|
|
|
gchar *author,
|
|
|
|
gchar *copyright,
|
|
|
|
gchar *date,
|
|
|
|
gchar *menu_path,
|
|
|
|
gchar *image_types,
|
|
|
|
gint type,
|
|
|
|
gint nparams,
|
|
|
|
gint nreturn_vals,
|
|
|
|
GimpParamDef *params,
|
|
|
|
GimpParamDef *return_vals);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Install a temporary procedure in the procedure database.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_install_temp_proc (gchar *name,
|
|
|
|
gchar *blurb,
|
|
|
|
gchar *help,
|
|
|
|
gchar *author,
|
|
|
|
gchar *copyright,
|
|
|
|
gchar *date,
|
|
|
|
gchar *menu_path,
|
|
|
|
gchar *image_types,
|
|
|
|
gint type,
|
|
|
|
gint nparams,
|
|
|
|
gint nreturn_vals,
|
|
|
|
GimpParamDef *params,
|
|
|
|
GimpParamDef *return_vals,
|
|
|
|
GimpRunProc run_proc);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Uninstall a temporary procedure
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_uninstall_temp_proc (gchar *name);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Install a load file format handler in the procedure database.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_register_magic_load_handler (gchar *name,
|
|
|
|
gchar *extensions,
|
|
|
|
gchar *prefixes,
|
|
|
|
gchar *magics);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Install a load file format handler in the procedure database.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_register_load_handler (gchar *name,
|
|
|
|
gchar *extensions,
|
|
|
|
gchar *prefixes);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Install a save file format handler in the procedure database.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_register_save_handler (gchar *name,
|
|
|
|
gchar *extensions,
|
|
|
|
gchar *prefixes);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Run a procedure in the procedure database. The parameters are
|
|
|
|
* specified via the variable length argument list. The return
|
2000-05-31 06:15:06 +00:00
|
|
|
* values are returned in the 'GimpParam*' array.
|
1997-11-24 22:05:25 +00:00
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
GimpParam * gimp_run_procedure (gchar *name,
|
|
|
|
gint *nreturn_vals,
|
|
|
|
...);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Run a procedure in the procedure database. The parameters are
|
2000-05-31 06:15:06 +00:00
|
|
|
* specified as an array of GimpParam. The return
|
|
|
|
* values are returned in the 'GimpParam*' array.
|
1997-11-24 22:05:25 +00:00
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
GimpParam * gimp_run_procedure2 (gchar *name,
|
|
|
|
gint *nreturn_vals,
|
|
|
|
gint nparams,
|
|
|
|
GimpParam *params);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
/* Destroy the an array of parameters. This is useful for
|
|
|
|
* destroying the return values returned by a call to
|
|
|
|
* 'gimp_run_procedure'.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_destroy_params (GimpParam *params,
|
|
|
|
gint nparams);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
/* Destroy the an array of GimpParamDef's. This is useful for
|
1998-11-11 02:20:29 +00:00
|
|
|
* destroying the return values returned by a call to
|
|
|
|
* 'gimp_query_procedure'.
|
|
|
|
*/
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_destroy_paramdefs (GimpParamDef *paramdefs,
|
|
|
|
gint nparams);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
gdouble gimp_gamma (void);
|
|
|
|
gboolean gimp_install_cmap (void);
|
|
|
|
gboolean gimp_use_xshm (void);
|
|
|
|
guchar * gimp_color_cube (void);
|
|
|
|
gint gimp_min_colors (void);
|
|
|
|
void gimp_request_wakeups (void);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
gchar * gimp_get_progname (void);
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
|
2000-02-23 18:07:53 +00:00
|
|
|
/****************************************
|
|
|
|
* Localisation *
|
|
|
|
****************************************/
|
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
void gimp_plugin_domain_add (gchar *domain_name);
|
|
|
|
void gimp_plugin_domain_add_with_path (gchar *domain_name,
|
|
|
|
gchar *domain_path);
|
|
|
|
|
2000-02-23 18:07:53 +00:00
|
|
|
|
1997-11-24 22:05:25 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* __GIMP_H__ */
|