2003-06-24 03:34:48 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattisbvf
|
|
|
|
*
|
|
|
|
* 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_IMAGE_SNAP_H__
|
|
|
|
#define __GIMP_IMAGE_SNAP_H__
|
|
|
|
|
|
|
|
|
2006-03-29 01:08:36 +08:00
|
|
|
gboolean gimp_image_snap_x (GimpImage *image,
|
2003-06-24 03:34:48 +08:00
|
|
|
gdouble x,
|
2004-02-24 02:23:31 +08:00
|
|
|
gdouble *tx,
|
2004-02-13 21:31:16 +08:00
|
|
|
gdouble epsilon_x,
|
2003-06-24 03:34:48 +08:00
|
|
|
gboolean snap_to_guides,
|
2005-01-04 00:19:10 +08:00
|
|
|
gboolean snap_to_grid,
|
|
|
|
gboolean snap_to_canvas);
|
2006-03-29 01:08:36 +08:00
|
|
|
gboolean gimp_image_snap_y (GimpImage *image,
|
2003-06-24 03:34:48 +08:00
|
|
|
gdouble y,
|
2004-02-24 02:23:31 +08:00
|
|
|
gdouble *ty,
|
2004-02-13 21:31:16 +08:00
|
|
|
gdouble epsilon_y,
|
2003-06-24 03:34:48 +08:00
|
|
|
gboolean snap_to_guides,
|
2005-01-04 00:19:10 +08:00
|
|
|
gboolean snap_to_grid,
|
|
|
|
gboolean snap_to_canvas);
|
2006-03-29 01:08:36 +08:00
|
|
|
gboolean gimp_image_snap_point (GimpImage *image,
|
2003-06-24 03:34:48 +08:00
|
|
|
gdouble x,
|
|
|
|
gdouble y,
|
2004-02-24 02:23:31 +08:00
|
|
|
gdouble *tx,
|
|
|
|
gdouble *ty,
|
2004-02-13 21:31:16 +08:00
|
|
|
gdouble epsilon_x,
|
|
|
|
gdouble epsilon_y,
|
2003-06-24 03:34:48 +08:00
|
|
|
gboolean snap_to_guides,
|
2005-01-04 00:19:10 +08:00
|
|
|
gboolean snap_to_grid,
|
|
|
|
gboolean snap_to_canvas,
|
|
|
|
gboolean snap_to_vectors);
|
2006-03-29 01:08:36 +08:00
|
|
|
gboolean gimp_image_snap_rectangle (GimpImage *image,
|
2003-06-24 03:34:48 +08:00
|
|
|
gdouble x1,
|
|
|
|
gdouble y1,
|
|
|
|
gdouble x2,
|
|
|
|
gdouble y2,
|
2004-02-24 02:23:31 +08:00
|
|
|
gdouble *tx1,
|
|
|
|
gdouble *ty1,
|
2004-02-13 21:31:16 +08:00
|
|
|
gdouble epsilon_x,
|
|
|
|
gdouble epsilon_y,
|
2003-06-24 03:34:48 +08:00
|
|
|
gboolean snap_to_guides,
|
2005-01-04 00:19:10 +08:00
|
|
|
gboolean snap_to_grid,
|
|
|
|
gboolean snap_to_canvas,
|
|
|
|
gboolean snap_to_vectors);
|
2003-06-24 03:34:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __GIMP_IMAGE_SNAP_H__ */
|