mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
0c2d88e992
2004-08-22 Sven Neumann <sven@gimp.org> * app/tools/Makefile.am * app/tools/tools-utils.[ch]: added gimp_tool_motion_constrain(), * app/paint/gimppaintcore.[ch]: removed gimp_paint_core_constrain(). * app/tools/gimppainttool.c: changed accordingly. * app/tools/gimpblendtool.[ch]: use gimp_tool_motion_constrain() instead of duplicating that functionality. * app/tools/gimpmeasuretool.c: use gimp_tool_motion_constrain() instead of implementing completely different constraints.
30 lines
1.1 KiB
C
30 lines
1.1 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* 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 __TOOLS_UTILS_H__
|
|
#define __TOOLS_UTILS_H__
|
|
|
|
|
|
void gimp_tool_motion_constrain (gdouble start_x,
|
|
gdouble start_y,
|
|
gdouble *end_x,
|
|
gdouble *end_y);
|
|
|
|
|
|
#endif /* __TOOLS_UTILS_H__ */
|