mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
863f7e1c44
2000-05-26 Michael Natterer <mitch@gimp.org> Final (1.2) libgimp namespace cleanup part I: * app/gimpbrushpipe.c * app/gimpdrawable.[ch] * app/gimpimage.[ch] * app/gimpparasite.[ch] * app/gimprc.c * app/image_new.c * app/parasite_cmds.c * app/parasitelist.[ch] * app/parasitelistP.h * app/plug_in.c * app/undo.c * app/xcf.c * libgimp/color_display.h * libgimp/gimp.[ch] * libgimp/gimpdrawable.c * libgimp/gimpimage.c * libgimp/gimpparasite.c * libgimp/gimpprotocol.c * libgimp/parasite.[ch] * libgimp/parasiteF.h * libgimp/parasiteP.h * libgimp/parasiteio.[ch] * modules/cdisplay_gamma.c * modules/cdisplay_highcontrast.c * plug-ins/common/csource.c * plug-ins/common/gif.c * plug-ins/common/gpb.c * plug-ins/common/jpeg.c * plug-ins/common/psp.c * plug-ins/common/tiff.c * plug-ins/common/xbm.c * plug-ins/gap/gap_exchange_image.c * plug-ins/gdyntext/gdyntext.c * plug-ins/ifscompose/ifscompose.c * plug-ins/xjt/xjt.c: s/Parasite/GimpParasite/g, s/parasite_*/gimp_parasite_*/g * libgimp/gimpcompat.h: added the old names. * tools/pdbgen/pdb.pl * tools/pdbgen/pdb/parasite.pdb: dito and an ugly perl hack to work around a substitution clash. Perl gurus, feel free to fix it.
72 lines
2 KiB
C
72 lines
2 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
*
|
|
* gimpparasiteio.h
|
|
* Copyright (C) 1999 Tor Lillqvist <tml@iki.fi>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
#ifndef __GIMP_PARASITE_IO_H__
|
|
#define __GIMP_PARASITE_IO_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* Data structures for various standard parasites used by plug-ins and
|
|
* the GIMP core, and functions to build and parse their string
|
|
* representations.
|
|
*/
|
|
|
|
/*
|
|
* Pixmap brush pipes.
|
|
*/
|
|
|
|
#define GIMP_PIXPIPE_MAXDIM 4
|
|
|
|
typedef struct
|
|
{
|
|
gint step;
|
|
gint ncells;
|
|
gint dim;
|
|
gint cols;
|
|
gint rows;
|
|
gint cellwidth;
|
|
gint cellheight;
|
|
gchar *placement;
|
|
gboolean free_placement_string;
|
|
gint rank[GIMP_PIXPIPE_MAXDIM];
|
|
gchar *selection[GIMP_PIXPIPE_MAXDIM];
|
|
gboolean free_selection_string;
|
|
} GimpPixPipeParams;
|
|
|
|
/* Initalize with dummy values */
|
|
void gimp_pixpipe_params_init (GimpPixPipeParams *params);
|
|
|
|
/* Parse a string into a GimpPixPipeParams */
|
|
void gimp_pixpipe_params_parse (gchar *parameters,
|
|
GimpPixPipeParams *params);
|
|
|
|
/* Build a string representation of GimpPixPipeParams */
|
|
gchar * gimp_pixpipe_params_build (GimpPixPipeParams *params);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __GIMP_PARASITE_IO_H__ */
|