gimpbucketfilltool.h 2.3 KB
Newer Older
Elliot Lee's avatar
Elliot Lee committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* 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
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Elliot Lee's avatar
Elliot Lee committed
17
 */
Sven Neumann's avatar
Sven Neumann committed
18

19 20 21 22
#ifndef  __GIMP_BUCKET_FILL_TOOL_H__
#define  __GIMP_BUCKET_FILL_TOOL_H__


23
#include "gimptool.h"
Elliot Lee's avatar
Elliot Lee committed
24

Sven Neumann's avatar
Sven Neumann committed
25

26
#define GIMP_TYPE_BUCKET_FILL_TOOL            (gimp_bucket_fill_tool_get_type ())
27 28
#define GIMP_BUCKET_FILL_TOOL(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_BUCKET_FILL_TOOL, GimpBucketFillTool))
#define GIMP_BUCKET_FILL_TOOL_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_BUCKET_FILL_TOOL, GimpBucketFillToolClass))
29
#define GIMP_IS_BUCKET_FILL_TOOL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_BUCKET_FILL_TOOL))
30
#define GIMP_IS_BUCKET_FILL_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_BUCKET_FILL_TOOL))
31
#define GIMP_BUCKET_FILL_TOOL_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_BUCKET_FILL_TOOL, GimpBucketFillToolClass))
32

33 34
#define GIMP_BUCKET_FILL_TOOL_GET_OPTIONS(t)  (GIMP_BUCKET_FILL_OPTIONS (gimp_tool_get_options (GIMP_TOOL (t))))

35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52

typedef struct _GimpBucketFillTool      GimpBucketFillTool;
typedef struct _GimpBucketFillToolClass GimpBucketFillToolClass;

struct _GimpBucketFillTool
{
  GimpTool  parent_instance;

  gint      target_x;  /*  starting x coord  */
  gint      target_y;  /*  starting y coord  */
};

struct _GimpBucketFillToolClass
{
  GimpToolClass  parent_class;
};


Nate Summers's avatar
Nate Summers committed
53
void    gimp_bucket_fill_tool_register (GimpToolRegisterCallback  callback,
54
                                        gpointer                  data);
55

56
GType   gimp_bucket_fill_tool_get_type (void) G_GNUC_CONST;
Elliot Lee's avatar
Elliot Lee committed
57

Sven Neumann's avatar
Sven Neumann committed
58

59
#endif  /*  __GIMP_BUCKET_FILL_TOOL_H__  */