2003-12-05 23:55:15 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
2000-02-26 11:41:06 +08:00
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
2000-05-27 06:28:40 +08:00
|
|
|
* gimpparasiteio.h
|
1999-09-02 08:01:41 +08:00
|
|
|
* Copyright (C) 1999 Tor Lillqvist <tml@iki.fi>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
1999-11-18 05:13:50 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
1999-09-02 08:01:41 +08:00
|
|
|
* 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
|
1999-12-26 15:54:39 +08:00
|
|
|
* Lesser General Public License for more details.
|
1999-09-02 08:01:41 +08:00
|
|
|
*
|
1999-11-18 05:13:50 +08:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
1999-09-02 08:01:41 +08: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.
|
|
|
|
*/
|
2000-05-31 07:38:46 +08:00
|
|
|
|
2000-05-27 06:28:40 +08:00
|
|
|
#ifndef __GIMP_PARASITE_IO_H__
|
|
|
|
#define __GIMP_PARASITE_IO_H__
|
2000-02-26 11:41:06 +08:00
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_BEGIN_DECLS
|
1999-09-02 08:01:41 +08:00
|
|
|
|
2000-05-31 07:38:46 +08:00
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
|
|
|
2000-05-27 06:28:40 +08:00
|
|
|
/* Data structures for various standard parasites used by plug-ins and
|
|
|
|
* the GIMP core, and functions to build and parse their string
|
|
|
|
* representations.
|
1999-09-02 08:01:41 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2000-05-27 06:28:40 +08:00
|
|
|
* Pixmap brush pipes.
|
1999-09-02 08:01:41 +08:00
|
|
|
*/
|
|
|
|
|
2000-05-27 06:28:40 +08:00
|
|
|
#define GIMP_PIXPIPE_MAXDIM 4
|
1999-09-02 08:01:41 +08:00
|
|
|
|
2000-05-27 06:28:40 +08:00
|
|
|
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;
|
1999-09-02 08:01:41 +08:00
|
|
|
|
|
|
|
/* Initalize with dummy values */
|
2000-05-27 06:28:40 +08:00
|
|
|
void gimp_pixpipe_params_init (GimpPixPipeParams *params);
|
1999-09-02 08:01:41 +08:00
|
|
|
|
2000-05-27 06:28:40 +08:00
|
|
|
/* Parse a string into a GimpPixPipeParams */
|
2004-11-23 22:28:43 +08:00
|
|
|
void gimp_pixpipe_params_parse (const gchar *parameters,
|
2006-04-12 18:53:28 +08:00
|
|
|
GimpPixPipeParams *params);
|
1999-09-02 08:01:41 +08:00
|
|
|
|
2000-05-27 06:28:40 +08:00
|
|
|
/* Build a string representation of GimpPixPipeParams */
|
2006-07-05 21:55:11 +08:00
|
|
|
gchar * gimp_pixpipe_params_build (GimpPixPipeParams *params) G_GNUC_MALLOC;
|
1999-09-02 08:01:41 +08:00
|
|
|
|
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_END_DECLS
|
1999-09-02 08:01:41 +08:00
|
|
|
|
2000-05-27 06:28:40 +08:00
|
|
|
#endif /* __GIMP_PARASITE_IO_H__ */
|