1 /* GIMP - The GNU Image Manipulation Program 2 * Copyright (C) 1995 Spencer Kimball and Peter Mattisbvf 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <https://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef __GIMP_IMAGE_SNAP_H__ 19 #define __GIMP_IMAGE_SNAP_H__ 20 21 22 gboolean gimp_image_snap_x (GimpImage *image, 23 gdouble x, 24 gdouble *tx, 25 gdouble epsilon_x, 26 gboolean snap_to_guides, 27 gboolean snap_to_grid, 28 gboolean snap_to_canvas); 29 gboolean gimp_image_snap_y (GimpImage *image, 30 gdouble y, 31 gdouble *ty, 32 gdouble epsilon_y, 33 gboolean snap_to_guides, 34 gboolean snap_to_grid, 35 gboolean snap_to_canvas); 36 gboolean gimp_image_snap_point (GimpImage *image, 37 gdouble x, 38 gdouble y, 39 gdouble *tx, 40 gdouble *ty, 41 gdouble epsilon_x, 42 gdouble epsilon_y, 43 gboolean snap_to_guides, 44 gboolean snap_to_grid, 45 gboolean snap_to_canvas, 46 gboolean snap_to_vectors, 47 gboolean show_all); 48 gboolean gimp_image_snap_rectangle (GimpImage *image, 49 gdouble x1, 50 gdouble y1, 51 gdouble x2, 52 gdouble y2, 53 gdouble *tx1, 54 gdouble *ty1, 55 gdouble epsilon_x, 56 gdouble epsilon_y, 57 gboolean snap_to_guides, 58 gboolean snap_to_grid, 59 gboolean snap_to_canvas, 60 gboolean snap_to_vectors); 61 62 63 #endif /* __GIMP_IMAGE_SNAP_H__ */ 64