2006-12-09 13:33:38 -08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
1997-11-24 14:05:25 -08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
|
*
|
2006-07-31 04:42:51 -07:00
|
|
|
* gimpregionselecttool.h
|
|
|
|
|
*
|
2009-01-17 14:28:01 -08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1997-11-24 14:05:25 -08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-17 14:28:01 -08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1997-11-24 14:05:25 -08:00
|
|
|
* (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
|
2018-07-11 14:47:19 -07:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
1997-11-24 14:05:25 -08:00
|
|
|
*/
|
2000-12-29 07:22:01 -08:00
|
|
|
|
2006-07-31 04:42:51 -07:00
|
|
|
#ifndef __GIMP_REGION_SELECT_TOOL_H__
|
|
|
|
|
#define __GIMP_REGION_SELECT_TOOL_H__
|
1997-11-24 14:05:25 -08:00
|
|
|
|
|
|
|
|
|
2001-03-09 09:39:18 -08:00
|
|
|
#include "gimpselectiontool.h"
|
2001-01-28 18:45:02 -08:00
|
|
|
|
2001-03-09 09:39:18 -08:00
|
|
|
|
2006-07-31 04:42:51 -07:00
|
|
|
#define GIMP_TYPE_REGION_SELECT_TOOL (gimp_region_select_tool_get_type ())
|
|
|
|
|
#define GIMP_REGION_SELECT_TOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_REGION_SELECT_TOOL, GimpRegionSelectTool))
|
|
|
|
|
#define GIMP_REGION_SELECT_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_REGION_SELECT_TOOL, GimpRegionSelectToolClass))
|
|
|
|
|
#define GIMP_IS_REGION_SELECT_TOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_REGION_SELECT_TOOL))
|
|
|
|
|
#define GIMP_IS_REGION_SELECT_TOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_REGION_SELECT_TOOL))
|
|
|
|
|
#define GIMP_REGION_SELECT_TOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_REGION_SELECT_TOOL, GimpRegionSelectToolClass))
|
2001-03-09 09:39:18 -08:00
|
|
|
|
2008-03-09 08:05:54 -07:00
|
|
|
#define GIMP_REGION_SELECT_TOOL_GET_OPTIONS(t) (GIMP_REGION_SELECT_OPTIONS (gimp_tool_get_options (GIMP_TOOL (t))))
|
|
|
|
|
|
2001-03-09 09:39:18 -08:00
|
|
|
|
2006-07-31 04:42:51 -07:00
|
|
|
typedef struct _GimpRegionSelectTool GimpRegionSelectTool;
|
|
|
|
|
typedef struct _GimpRegionSelectToolClass GimpRegionSelectToolClass;
|
2001-03-09 09:39:18 -08:00
|
|
|
|
2006-07-31 04:42:51 -07:00
|
|
|
struct _GimpRegionSelectTool
|
2001-03-09 09:39:18 -08:00
|
|
|
{
|
|
|
|
|
GimpSelectionTool parent_instance;
|
|
|
|
|
|
2006-07-31 04:42:51 -07:00
|
|
|
gint x, y;
|
|
|
|
|
gdouble saved_threshold;
|
2002-06-26 15:16:59 -07:00
|
|
|
|
2013-04-08 16:38:24 -07:00
|
|
|
GeglBuffer *region_mask;
|
2012-03-19 07:04:20 -07:00
|
|
|
GimpBoundSeg *segs;
|
2010-09-24 11:58:22 -07:00
|
|
|
gint n_segs;
|
2001-03-09 09:39:18 -08:00
|
|
|
};
|
|
|
|
|
|
2006-07-31 04:42:51 -07:00
|
|
|
struct _GimpRegionSelectToolClass
|
2001-03-09 09:39:18 -08:00
|
|
|
{
|
|
|
|
|
GimpSelectionToolClass parent_class;
|
|
|
|
|
|
2006-07-31 04:42:51 -07:00
|
|
|
const gchar * undo_desc;
|
|
|
|
|
|
2013-04-08 16:38:24 -07:00
|
|
|
GeglBuffer * (* get_mask) (GimpRegionSelectTool *region_tool,
|
|
|
|
|
GimpDisplay *display);
|
2006-07-31 04:42:51 -07:00
|
|
|
};
|
2001-03-09 09:39:18 -08:00
|
|
|
|
2001-01-28 18:45:02 -08:00
|
|
|
|
2006-07-31 04:42:51 -07:00
|
|
|
GType gimp_region_select_tool_get_type (void) G_GNUC_CONST;
|
2000-12-30 20:07:42 -08:00
|
|
|
|
2000-12-29 07:22:01 -08:00
|
|
|
|
2006-07-31 04:42:51 -07:00
|
|
|
#endif /* __GIMP_REGION_SELECT_TOOL_H__ */
|