GIMP Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#define GIMPVAR #define gimp_get_data #define gimp_get_data_size #define gimp_set_data #define gimp_query_procedure void (*GimpInitProc) (void); void (*GimpQuitProc) (void); void (*GimpQueryProc) (void); void (*GimpRunProc) (gchar *name, gint nparams, GimpParam *param, gint *nreturn_vals, GimpParam **return_vals); struct GimpPlugInInfo; struct GimpParamDef; struct GimpParamColor; struct GimpParamRegion; union GimpParamData; struct GimpParam; #define MAIN () gint gimp_main (gint argc, gchar *argv[]); gint32 gimp_default_display (void); 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); 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); void gimp_uninstall_temp_proc (gchar *name); GimpParam* gimp_run_procedure (gchar *name, gint *nreturn_vals, ...); GimpParam* gimp_run_procedure2 (gchar *name, gint *nreturn_vals, gint nparams, GimpParam *params); void gimp_destroy_params (GimpParam *params, gint nparams); void gimp_destroy_paramdefs (GimpParamDef *paramdefs, gint nparams); gdouble gimp_gamma (void); gboolean gimp_install_cmap (void); gboolean gimp_use_xshm (void); guchar* gimp_color_cube (void); gint gimp_min_colors (void); gchar* gimp_get_progname (void); void set_gimp_PLUG_IN_INFO_PTR (GimpPlugInInfo*); |
Main functions needed for building a GIMP plug-in. This header includes all other GIMP Library headers.
void (*GimpRunProc) (gchar *name, gint nparams, GimpParam *param, gint *nreturn_vals, GimpParam **return_vals); |
struct GimpPlugInInfo { /* called when the gimp application initially starts up */ GimpInitProc init_proc; /* called when the gimp application exits */ GimpQuitProc quit_proc; /* called by the gimp so that the plug-in can inform the * gimp of what it does. (ie. installing a procedure database * procedure). */ GimpQueryProc query_proc; /* called to run a procedure the plug-in installed in the * procedure database. */ GimpRunProc run_proc; }; |
union GimpParamData { 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_layer_mask; gint32 d_channel; gint32 d_drawable; gint32 d_selection; gint32 d_boundary; gint32 d_path; gint32 d_unit; GimpParasite d_parasite; gint32 d_tattoo; GimpPDBStatusType d_status; }; |
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); |
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); |
GimpParam* gimp_run_procedure2 (gchar *name, gint *nreturn_vals, gint nparams, GimpParam *params); |