home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / libgimp / gimpparasiteio.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-06  |  2.2 KB  |  76 lines

  1. /* LIBGIMP - The GIMP Library 
  2.  * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
  3.  *
  4.  * gimpparasiteio.h
  5.  * Copyright (C) 1999 Tor Lillqvist <tml@iki.fi>
  6.  *
  7.  * This library is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU Lesser General Public
  9.  * License as published by the Free Software Foundation; either
  10.  * version 2 of the License, or (at your option) any later version.
  11.  *
  12.  * This library is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  * Lesser General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU Lesser General Public
  18.  * License along with this library; if not, write to the
  19.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  * Boston, MA 02111-1307, USA.
  21.  */
  22.  
  23. #ifndef __GIMP_PARASITE_IO_H__
  24. #define __GIMP_PARASITE_IO_H__
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif /* __cplusplus */
  29.  
  30. /* For information look into the C source or the html documentation */
  31.  
  32.  
  33. /*  Data structures for various standard parasites used by plug-ins and
  34.  *  the GIMP core, and functions to build and parse their string
  35.  *  representations.
  36.  */
  37.  
  38. /*
  39.  *  Pixmap brush pipes.
  40.  */
  41.  
  42. #define GIMP_PIXPIPE_MAXDIM 4
  43.  
  44. typedef struct
  45. {
  46.   gint      step;
  47.   gint      ncells;
  48.   gint      dim;
  49.   gint      cols;
  50.   gint      rows;
  51.   gint      cellwidth;
  52.   gint      cellheight;
  53.   gchar    *placement;
  54.   gboolean  free_placement_string;
  55.   gint      rank[GIMP_PIXPIPE_MAXDIM];
  56.   gchar    *selection[GIMP_PIXPIPE_MAXDIM];
  57.   gboolean  free_selection_string;
  58. } GimpPixPipeParams;
  59.  
  60. /* Initalize with dummy values */
  61. void    gimp_pixpipe_params_init  (GimpPixPipeParams *params);
  62.  
  63. /* Parse a string into a GimpPixPipeParams */
  64. void    gimp_pixpipe_params_parse (gchar             *parameters,
  65.                    GimpPixPipeParams *params);
  66.  
  67. /* Build a string representation of GimpPixPipeParams */
  68. gchar * gimp_pixpipe_params_build (GimpPixPipeParams *params);
  69.  
  70.  
  71. #ifdef __cplusplus
  72. }
  73. #endif /* __cplusplus */
  74.  
  75. #endif /* __GIMP_PARASITE_IO_H__ */
  76.