gimpheal.h 2.06 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* The GIMP -- an image manipulation program
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef __GIMP_HEAL_H__
#define __GIMP_HEAL_H__

22

23
24
#include "gimpbrushcore.h"

25

26
27
28
29
30
31
32
#define GIMP_TYPE_HEAL            (gimp_heal_get_type ())
#define GIMP_HEAL(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_HEAL, GimpHeal))
#define GIMP_HEAL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_HEAL, GimpHealClass))
#define GIMP_IS_HEAL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_HEAL))
#define GIMP_IS_HEAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_HEAL))
#define GIMP_HEAL_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_HEAL, GimpHealClass))

33

34
35
36
37
38
typedef struct _GimpHeal      GimpHeal;
typedef struct _GimpHealClass GimpHealClass;

struct _GimpHeal
{
39
  GimpBrushCore  parent_instance;
40

41
  gboolean       set_source;
42

43
44
45
  GimpDrawable  *src_drawable;
  gdouble        src_x;
  gdouble        src_y;
46

47
48
  gdouble        orig_src_x;
  gdouble        orig_src_y;
49

50
51
52
  gdouble        offset_x;
  gdouble        offset_y;
  gboolean       first_stroke;
53
54
55
56
};

struct _GimpHealClass
{
57
  GimpBrushCoreClass  parent_class;
58
59
60
61
62
63
64
65
66
67
};


void    gimp_heal_register (Gimp                      *gimp,
                            GimpPaintRegisterCallback  callback);

GType   gimp_heal_get_type (void) G_GNUC_CONST;


#endif  /*  __GIMP_HEAL_H__  */