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>
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* 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
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
1999-09-02 08:01:41 +08: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 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
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
1999-09-02 08:01:41 +08:00
|
|
|
*/
|
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
|
|
|
|
2010-06-30 01:13:40 +08:00
|
|
|
typedef struct _GimpPixPipeParams GimpPixPipeParams;
|
|
|
|
|
2019-07-24 08:09:49 +08:00
|
|
|
/**
|
|
|
|
* GimpPixPipeParams:
|
2019-07-24 08:22:47 +08: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 08:09:49 +08:00
|
|
|
*
|
|
|
|
* PLease somebody help documenting this.
|
|
|
|
**/
|
2010-06-30 01:13:40 +08:00
|
|
|
struct _GimpPixPipeParams
|
2000-05-27 06:28:40 +08:00
|
|
|
{
|
2019-07-24 08:22:47 +08: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-30 01:13:40 +08:00
|
|
|
};
|
1999-09-02 08:01:41 +08:00
|
|
|
|
2013-01-27 23:52:38 +08:00
|
|
|
/* Initialize 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
|
|
|
|
2018-07-14 19:15:26 +08:00
|
|
|
/* Free the internal values. It does not free the struct itself. */
|
2018-06-28 00:31:38 +08:00
|
|
|
void gimp_pixpipe_params_free (GimpPixPipeParams *params);
|
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__ */
|