~ubuntu-branches/ubuntu/hoary/gimp/hoary

« back to all changes in this revision

Viewing changes to libgimp/gimpregioniterator.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-04-04 14:51:23 UTC
  • Revision ID: james.westby@ubuntu.com-20050404145123-9py049eeelfymur8
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* LIBGIMP - The GIMP Library
 
2
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
 
3
 *
 
4
 * gimpregioniterator.h
 
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)
 
9
 *
 
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.
 
14
 *
 
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.
 
19
 *
 
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.
 
24
 */
 
25
 
 
26
#ifndef __GIMP_REGION_ITERATOR_H__
 
27
#define __GIMP_REGION_ITERATOR_H__
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
/* For information look into the C source or the html documentation */
 
32
 
 
33
typedef struct _GimpRgnIterator  GimpRgnIterator;
 
34
 
 
35
typedef void   (* GimpRgnFunc1)       (const guchar *src,
 
36
                                       gint          bpp,
 
37
                                       gpointer      data);
 
38
typedef void   (* GimpRgnFunc2)       (const guchar *src,
 
39
                                       guchar       *dest,
 
40
                                       gint          bpp,
 
41
                                       gpointer      data);
 
42
typedef void   (* GimpRgnFuncSrc)     (gint          x,
 
43
                                       gint          y,
 
44
                                       const guchar *src,
 
45
                                       gint          bpp,
 
46
                                       gpointer      data);
 
47
typedef void   (* GimpRgnFuncDest)    (gint          x,
 
48
                                       gint          y,
 
49
                                       guchar       *dest,
 
50
                                       gint          bpp,
 
51
                                       gpointer      data);
 
52
typedef void   (* GimpRgnFuncSrcDest) (gint          x,
 
53
                                       gint          y,
 
54
                                       const guchar *src,
 
55
                                       guchar       *dest,
 
56
                                       gint          bpp,
 
57
                                       gpointer      data);
 
58
 
 
59
GimpRgnIterator * gimp_rgn_iterator_new      (GimpDrawable      *drawable,
 
60
                                              GimpRunMode        unused);
 
61
void              gimp_rgn_iterator_free     (GimpRgnIterator   *iter);
 
62
void              gimp_rgn_iterator_src      (GimpRgnIterator   *iter,
 
63
                                              GimpRgnFuncSrc     func,
 
64
                                              gpointer           data);
 
65
void              gimp_rgn_iterator_dest     (GimpRgnIterator   *iter,
 
66
                                              GimpRgnFuncDest    func,
 
67
                                              gpointer           data);
 
68
void              gimp_rgn_iterator_src_dest (GimpRgnIterator   *iter,
 
69
                                              GimpRgnFuncSrcDest func,
 
70
                                              gpointer           data);
 
71
 
 
72
 
 
73
void              gimp_rgn_iterate1          (GimpDrawable      *drawable,
 
74
                                              GimpRunMode        unused,
 
75
                                              GimpRgnFunc1       func,
 
76
                                              gpointer           data);
 
77
 
 
78
void              gimp_rgn_iterate2          (GimpDrawable      *drawable,
 
79
                                              GimpRunMode        unused,
 
80
                                              GimpRgnFunc2       func,
 
81
                                              gpointer           data);
 
82
 
 
83
G_END_DECLS
 
84
 
 
85
#endif /* __GIMP_REGION_ITERATOR_H__ */