1
/* GIMP - The GNU Image Manipulation Program
2
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
* gimpregionselecttool.h
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
#ifndef __GIMP_REGION_SELECT_TOOL_H__
22
#define __GIMP_REGION_SELECT_TOOL_H__
25
#include "gimpselectiontool.h"
28
#define GIMP_TYPE_REGION_SELECT_TOOL (gimp_region_select_tool_get_type ())
29
#define GIMP_REGION_SELECT_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_REGION_SELECT_TOOL, GimpRegionSelectTool))
30
#define GIMP_REGION_SELECT_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_REGION_SELECT_TOOL, GimpRegionSelectToolClass))
31
#define GIMP_IS_REGION_SELECT_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_REGION_SELECT_TOOL))
32
#define GIMP_IS_REGION_SELECT_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_REGION_SELECT_TOOL))
33
#define GIMP_REGION_SELECT_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_REGION_SELECT_TOOL, GimpRegionSelectToolClass))
36
typedef struct _GimpRegionSelectTool GimpRegionSelectTool;
37
typedef struct _GimpRegionSelectToolClass GimpRegionSelectToolClass;
39
struct _GimpRegionSelectTool
41
GimpSelectionTool parent_instance;
44
gdouble saved_threshold;
46
GimpChannel *region_mask;
51
struct _GimpRegionSelectToolClass
53
GimpSelectionToolClass parent_class;
55
const gchar * undo_desc;
57
GimpChannel * (* get_mask) (GimpRegionSelectTool *region_tool,
58
GimpDisplay *display);
62
GType gimp_region_select_tool_get_type (void) G_GNUC_CONST;
65
#endif /* __GIMP_REGION_SELECT_TOOL_H__ */