2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2001-04-29 04:14:32 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2001-04-29 04:14:32 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2001-04-29 04:14:32 +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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2001-04-29 04:14:32 +08:00
|
|
|
*/
|
|
|
|
|
2003-02-09 05:12:03 +08:00
|
|
|
#ifndef __GIMP_TRANSFORM_OPTIONS_H__
|
|
|
|
#define __GIMP_TRANSFORM_OPTIONS_H_
|
2001-04-29 04:14:32 +08:00
|
|
|
|
2001-11-20 02:23:43 +08:00
|
|
|
|
2003-06-30 04:40:45 +08:00
|
|
|
#include "core/gimptooloptions.h"
|
2001-04-29 04:14:32 +08:00
|
|
|
|
2001-11-20 02:23:43 +08:00
|
|
|
|
2003-02-05 22:39:40 +08:00
|
|
|
#define GIMP_TYPE_TRANSFORM_OPTIONS (gimp_transform_options_get_type ())
|
|
|
|
#define GIMP_TRANSFORM_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_TRANSFORM_OPTIONS, GimpTransformOptions))
|
|
|
|
#define GIMP_TRANSFORM_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_TRANSFORM_OPTIONS, GimpTransformOptionsClass))
|
|
|
|
#define GIMP_IS_TRANSFORM_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_TRANSFORM_OPTIONS))
|
|
|
|
#define GIMP_IS_TRANSFORM_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_TRANSFORM_OPTIONS))
|
|
|
|
#define GIMP_TRANSFORM_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_TRANSFORM_OPTIONS, GimpTransformOptionsClass))
|
2001-04-29 04:14:32 +08:00
|
|
|
|
2003-02-05 22:39:40 +08:00
|
|
|
|
|
|
|
typedef struct _GimpTransformOptions GimpTransformOptions;
|
|
|
|
typedef struct _GimpToolOptionsClass GimpTransformOptionsClass;
|
|
|
|
|
|
|
|
struct _GimpTransformOptions
|
2001-04-29 04:14:32 +08:00
|
|
|
{
|
2004-07-03 05:56:30 +08:00
|
|
|
GimpToolOptions parent_instance;
|
|
|
|
|
|
|
|
GimpTransformType type;
|
|
|
|
GimpTransformDirection direction;
|
|
|
|
GimpInterpolationType interpolation;
|
|
|
|
gint recursion_level;
|
2011-07-28 04:23:43 +08:00
|
|
|
GimpTransformResize clip;
|
2011-07-28 05:15:02 +08:00
|
|
|
gboolean show_preview;
|
2008-03-06 19:54:44 +08:00
|
|
|
gdouble preview_opacity;
|
2011-07-25 00:01:21 +08:00
|
|
|
GimpGuidesType grid_type;
|
2004-07-03 05:56:30 +08:00
|
|
|
gint grid_size;
|
2006-05-19 18:56:34 +08:00
|
|
|
gboolean constrain;
|
2011-08-06 06:00:35 +08:00
|
|
|
gboolean alternate;
|
2001-04-29 04:14:32 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2011-03-28 03:49:34 +08:00
|
|
|
GType gimp_transform_options_get_type (void) G_GNUC_CONST;
|
2001-04-29 04:14:32 +08:00
|
|
|
|
2011-03-28 03:49:34 +08:00
|
|
|
GtkWidget * gimp_transform_options_gui (GimpToolOptions *tool_options);
|
|
|
|
|
|
|
|
gboolean gimp_transform_options_show_preview (GimpTransformOptions *options);
|
2001-04-29 04:14:32 +08:00
|
|
|
|
|
|
|
|
2003-02-09 05:12:03 +08:00
|
|
|
#endif /* __GIMP_TRANSFORM_OPTIONS_H__ */
|