rbgimp.h 2.51 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/* GIMP-Ruby -- Allows GIMP plugins to be written in Ruby.
 * Copyright (C) 2006  Scott Lembcke
 * 
 * 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 2
 * 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, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor,Boston, MA
 * 02110-1301, USA.
 */
 
Scott Lembcke's avatar
Scott Lembcke committed
20
/* modules */
Kevin Cozens's avatar
Kevin Cozens committed
21
extern VALUE mGimp;
Scott Lembcke's avatar
Scott Lembcke committed
22 23


Scott Lembcke's avatar
Scott Lembcke committed
24
/* classes */
Kevin Cozens's avatar
Kevin Cozens committed
25
extern VALUE cGimpRGB;
Scott Lembcke's avatar
Scott Lembcke committed
26 27
/* extern VALUE cGimpHSV;
extern VALUE cGimpCMYK; */
Scott Lembcke's avatar
Scott Lembcke committed
28

Kevin Cozens's avatar
Kevin Cozens committed
29

Scott Lembcke's avatar
Scott Lembcke committed
30
/* structures (definitions.c) */
Kevin Cozens's avatar
Kevin Cozens committed
31 32 33
extern VALUE sGimpParamDef;
extern VALUE sGimpParam;
extern VALUE sGimpPlugInInfo;
Scott Lembcke's avatar
Scott Lembcke committed
34
extern VALUE sGimpParasite;
Kevin Cozens's avatar
Kevin Cozens committed
35

Scott Lembcke's avatar
Scott Lembcke committed
36 37 38 39 40 41 42 43 44 45 46
extern ID id_type;
extern ID id_name;
extern ID id_dscr;
extern ID id_data;
extern ID id_init_proc;
extern ID id_quit_proc;
extern ID id_query_proc;
extern ID id_run_proc;
extern ID id_call;
extern ID id_flags;

Kevin Cozens's avatar
Kevin Cozens committed
47

Scott Lembcke's avatar
Scott Lembcke committed
48
/* Type conversion functions (conversion.c) */
49 50
VALUE       GimpParam2rb   (const GimpParam *param,
                            int              index);
Kevin Cozens's avatar
Kevin Cozens committed
51 52 53 54 55 56 57 58 59 60 61 62 63
VALUE       GimpParams2rb  (const GimpParam *params,
                            int              count);
GimpParam   rb2GimpParam   (VALUE            rbparam);
GimpParam  *rb2GimpParams  (VALUE            rbparams,
                            gint            *count);

VALUE         GimpParamDef2rb    (GimpParamDef  paramdef);
VALUE         GimpParamDefs2rb   (GimpParamDef *paramdefs,
                                  int           count);
GimpParamDef  rb2GimpParamDef    (VALUE         param);
GimpParamDef  *rb2GimpParamDefs  (VALUE         rbparamdefs,
                                  int          *count);

64 65 66
VALUE    GimpRGB2rb     (const GimpRGB *color);
GimpRGB *rb2GimpRGBPtr  (VALUE          color);
GimpRGB  rb2GimpRGB     (VALUE          color);
Scott Lembcke's avatar
Scott Lembcke committed
67

68 69 70
VALUE        GimpParasite2rb (GimpParasite leech);
GimpParasite rb2GimpParasite (VALUE        leech);

Kevin Cozens's avatar
Kevin Cozens committed
71

Scott Lembcke's avatar
Scott Lembcke committed
72
/* Init functions */
Scott Lembcke's avatar
Scott Lembcke committed
73
void Init_definitions(void);
Kevin Cozens's avatar
Kevin Cozens committed
74 75 76 77 78 79

void Init_gimpconstants(void);
void Init_gimpmain(void);
void Init_gimpproceduraldb(void);

void Init_gimpcolorrgb(void);
Scott Lembcke's avatar
Scott Lembcke committed
80
/*void Init_gimpcolorspace(void);*/
81

82
void Init_rubyfudialog(void);