1
/* LIBGIMP - The GIMP Library
2
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
5
* Contains all kinds of miscellaneous routines factored out from different
6
* plug-ins. They stay here until their API has crystalized a bit and we can
7
* put them into the file where they belong (Maurits Rijk
8
* <lpeek.mrijk@consunet.nl> if you want to blame someone for this mess)
10
* This library is free software; you can redistribute it and/or
11
* modify it under the terms of the GNU Lesser General Public
12
* License as published by the Free Software Foundation; either
13
* version 2 of the License, or (at your option) any later version.
15
* This library is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
* Lesser General Public License for more details.
20
* You should have received a copy of the GNU Lesser General Public
21
* License along with this library; if not, write to the
22
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23
* Boston, MA 02111-1307, USA.
26
#ifndef __GIMP_REGION_ITERATOR_H__
27
#define __GIMP_REGION_ITERATOR_H__
31
/* For information look into the C source or the html documentation */
33
typedef struct _GimpRgnIterator GimpRgnIterator;
35
typedef void (* GimpRgnFunc1) (const guchar *src,
38
typedef void (* GimpRgnFunc2) (const guchar *src,
42
typedef void (* GimpRgnFuncSrc) (gint x,
47
typedef void (* GimpRgnFuncDest) (gint x,
52
typedef void (* GimpRgnFuncSrcDest) (gint x,
59
GimpRgnIterator * gimp_rgn_iterator_new (GimpDrawable *drawable,
61
void gimp_rgn_iterator_free (GimpRgnIterator *iter);
62
void gimp_rgn_iterator_src (GimpRgnIterator *iter,
65
void gimp_rgn_iterator_dest (GimpRgnIterator *iter,
68
void gimp_rgn_iterator_src_dest (GimpRgnIterator *iter,
69
GimpRgnFuncSrcDest func,
73
void gimp_rgn_iterate1 (GimpDrawable *drawable,
78
void gimp_rgn_iterate2 (GimpDrawable *drawable,
85
#endif /* __GIMP_REGION_ITERATOR_H__ */