2003-12-05 15:55:15 +00:00
|
|
|
/* LIBGIMP - The GIMP Library
|
2000-02-26 03:41:06 +00:00
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
2000-05-26 22:28:40 +00:00
|
|
|
* gimpparasiteio.h
|
1999-09-02 00:01:41 +00:00
|
|
|
* Copyright (C) 1999 Tor Lillqvist <tml@iki.fi>
|
|
|
|
*
|
2009-01-17 22:28:01 +00:00
|
|
|
* This library is free software: you can redistribute it and/or
|
1999-11-17 21:13:50 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
1999-09-02 00:01:41 +00:00
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-17 22:28:01 +00:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
1999-09-02 00:01:41 +00:00
|
|
|
*
|
|
|
|
* 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 07:54:39 +00:00
|
|
|
* Lesser General Public License for more details.
|
1999-09-02 00:01:41 +00:00
|
|
|
*
|
1999-11-17 21:13:50 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-17 22:28:01 +00:00
|
|
|
* License along with this library. If not, see
|
2018-07-11 23:27:07 +02:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
1999-09-02 00:01:41 +00:00
|
|
|
*/
|
2000-05-30 23:38:46 +00:00
|
|
|
|
2000-05-26 22:28:40 +00:00
|
|
|
#ifndef __GIMP_PARASITE_IO_H__
|
|
|
|
#define __GIMP_PARASITE_IO_H__
|
2000-02-26 03:41:06 +00:00
|
|
|
|
2001-11-22 23:46:13 +00:00
|
|
|
G_BEGIN_DECLS
|
1999-09-02 00:01:41 +00:00
|
|
|
|
2000-05-30 23:38:46 +00:00
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
|
|
|
2000-05-26 22:28:40 +00: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 00:01:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2000-05-26 22:28:40 +00:00
|
|
|
* Pixmap brush pipes.
|
1999-09-02 00:01:41 +00:00
|
|
|
*/
|
|
|
|
|
2000-05-26 22:28:40 +00:00
|
|
|
#define GIMP_PIXPIPE_MAXDIM 4
|
1999-09-02 00:01:41 +00:00
|
|
|
|
2010-06-29 19:13:40 +02:00
|
|
|
typedef struct _GimpPixPipeParams GimpPixPipeParams;
|
|
|
|
|
2019-07-24 02:09:49 +02:00
|
|
|
/**
|
|
|
|
* GimpPixPipeParams:
|
2019-07-24 02:22:47 +02:00
|
|
|
* @step: Step
|
|
|
|
* @ncells: Number of cells
|
|
|
|
* @dim: Dimension
|
|
|
|
* @cols: Columns
|
|
|
|
* @rows: Rows
|
|
|
|
* @cellwidth: Cell width
|
|
|
|
* @cellheight: Cell height
|
|
|
|
* @placement: Placement
|
|
|
|
* @rank: Rank
|
|
|
|
* @selection: Selection
|
2019-07-24 02:09:49 +02:00
|
|
|
*
|
|
|
|
* PLease somebody help documenting this.
|
|
|
|
**/
|
2010-06-29 19:13:40 +02:00
|
|
|
struct _GimpPixPipeParams
|
2000-05-26 22:28:40 +00:00
|
|
|
{
|
2019-07-24 02:22:47 +02:00
|
|
|
gint step;
|
|
|
|
gint ncells;
|
|
|
|
gint dim;
|
|
|
|
gint cols;
|
|
|
|
gint rows;
|
|
|
|
gint cellwidth;
|
|
|
|
gint cellheight;
|
|
|
|
gchar *placement;
|
|
|
|
gint rank[GIMP_PIXPIPE_MAXDIM];
|
|
|
|
gchar *selection[GIMP_PIXPIPE_MAXDIM];
|
2010-06-29 19:13:40 +02:00
|
|
|
};
|
1999-09-02 00:01:41 +00:00
|
|
|
|
2013-01-27 17:52:38 +02:00
|
|
|
/* Initialize with dummy values */
|
2000-05-26 22:28:40 +00:00
|
|
|
void gimp_pixpipe_params_init (GimpPixPipeParams *params);
|
1999-09-02 00:01:41 +00:00
|
|
|
|
2000-05-26 22:28:40 +00:00
|
|
|
/* Parse a string into a GimpPixPipeParams */
|
2004-11-23 14:28:43 +00:00
|
|
|
void gimp_pixpipe_params_parse (const gchar *parameters,
|
2006-04-12 10:53:28 +00:00
|
|
|
GimpPixPipeParams *params);
|
1999-09-02 00:01:41 +00:00
|
|
|
|
2000-05-26 22:28:40 +00:00
|
|
|
/* Build a string representation of GimpPixPipeParams */
|
2006-07-05 13:55:11 +00:00
|
|
|
gchar * gimp_pixpipe_params_build (GimpPixPipeParams *params) G_GNUC_MALLOC;
|
1999-09-02 00:01:41 +00:00
|
|
|
|
2018-07-14 07:15:26 -04:00
|
|
|
/* Free the internal values. It does not free the struct itself. */
|
2018-06-27 18:31:38 +02:00
|
|
|
void gimp_pixpipe_params_free (GimpPixPipeParams *params);
|
1999-09-02 00:01:41 +00:00
|
|
|
|
2001-11-22 23:46:13 +00:00
|
|
|
G_END_DECLS
|
1999-09-02 00:01:41 +00:00
|
|
|
|
2000-05-26 22:28:40 +00:00
|
|
|
#endif /* __GIMP_PARASITE_IO_H__ */
|