2006-12-09 21:33:38 +00:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2004-02-13 14:04:41 +00:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
1999-08-22 11:45:31 +00:00
|
|
|
*
|
2009-01-17 22:28:01 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1999-08-22 11:45:31 +00:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-17 22:28:01 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1999-08-22 11:45:31 +00: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 23:27:07 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
1999-08-22 11:45:31 +00:00
|
|
|
*/
|
2000-12-13 18:53:35 +00:00
|
|
|
|
2025-07-13 03:15:46 +02:00
|
|
|
#pragma once
|
1998-06-28 10:39:58 +00:00
|
|
|
|
|
|
|
|
2010-02-05 16:14:04 +01:00
|
|
|
/* public guide adding API
|
|
|
|
*/
|
2006-03-28 17:08:36 +00:00
|
|
|
GimpGuide * gimp_image_add_hguide (GimpImage *image,
|
2003-03-28 13:52:01 +00:00
|
|
|
gint position,
|
|
|
|
gboolean push_undo);
|
2006-03-28 17:08:36 +00:00
|
|
|
GimpGuide * gimp_image_add_vguide (GimpImage *image,
|
2003-03-28 13:52:01 +00:00
|
|
|
gint position,
|
|
|
|
gboolean push_undo);
|
|
|
|
|
2010-02-05 16:14:04 +01:00
|
|
|
/* internal guide adding API, does not check the guide's position and
|
2018-03-24 16:49:01 -04:00
|
|
|
* is publicly declared only to be used from undo
|
2010-02-05 16:14:04 +01:00
|
|
|
*/
|
2006-03-28 17:08:36 +00:00
|
|
|
void gimp_image_add_guide (GimpImage *image,
|
2003-03-28 13:52:01 +00:00
|
|
|
GimpGuide *guide,
|
|
|
|
gint position);
|
2010-02-05 16:14:04 +01:00
|
|
|
|
2006-03-28 17:08:36 +00:00
|
|
|
void gimp_image_remove_guide (GimpImage *image,
|
2003-03-28 13:52:01 +00:00
|
|
|
GimpGuide *guide,
|
|
|
|
gboolean push_undo);
|
2006-03-28 17:08:36 +00:00
|
|
|
void gimp_image_move_guide (GimpImage *image,
|
2003-03-28 13:52:01 +00:00
|
|
|
GimpGuide *guide,
|
|
|
|
gint position,
|
|
|
|
gboolean push_undo);
|
2001-05-15 19:10:57 +00:00
|
|
|
|
2007-12-25 17:09:04 +00:00
|
|
|
GList * gimp_image_get_guides (GimpImage *image);
|
2006-03-28 17:08:36 +00:00
|
|
|
GimpGuide * gimp_image_get_guide (GimpImage *image,
|
2006-03-13 19:13:08 +00:00
|
|
|
guint32 id);
|
2006-03-28 17:08:36 +00:00
|
|
|
GimpGuide * gimp_image_get_next_guide (GimpImage *image,
|
2006-03-13 19:13:08 +00:00
|
|
|
guint32 id,
|
|
|
|
gboolean *guide_found);
|