1 /* GIMP - The GNU Image Manipulation Program 2 * Copyright (C) 1995 Spencer Kimball and Peter Mattis 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_SAMPLE_POINTS_H__ 19 #define __GIMP_IMAGE_SAMPLE_POINTS_H__ 20 21 22 /* public sample point adding API 23 */ 24 GimpSamplePoint * gimp_image_add_sample_point_at_pos (GimpImage *image, 25 gint x, 26 gint y, 27 gboolean push_undo); 28 29 /* internal sample point adding API, does not check the sample 30 * point's position and is publicly declared only to be used from 31 * undo 32 */ 33 void gimp_image_add_sample_point (GimpImage *image, 34 GimpSamplePoint *sample_point, 35 gint x, 36 gint y); 37 38 void gimp_image_remove_sample_point (GimpImage *image, 39 GimpSamplePoint *sample_point, 40 gboolean push_undo); 41 void gimp_image_move_sample_point (GimpImage *image, 42 GimpSamplePoint *sample_point, 43 gint x, 44 gint y, 45 gboolean push_undo); 46 void gimp_image_set_sample_point_pick_mode 47 (GimpImage *image, 48 GimpSamplePoint *sample_point, 49 GimpColorPickMode pick_mode, 50 gboolean push_undo); 51 52 GList * gimp_image_get_sample_points (GimpImage *image); 53 GimpSamplePoint * gimp_image_get_sample_point (GimpImage *image, 54 guint32 id); 55 GimpSamplePoint * gimp_image_get_next_sample_point (GimpImage *image, 56 guint32 id, 57 gboolean *sample_point_found); 58 59 60 #endif /* __GIMP_IMAGE_SAMPLE_POINTS_H__ */ 61