mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 04:51:44 +00:00
45334e637e
2003-05-12 Michael Natterer <mitch@gimp.org> Added support for transforming linked layers, channels and vectors. Fixes bug #86277. * app/core/gimpdrawable-transform.[ch] (gimp_drawable_transform_tiles_flip): added "gdouble axis" and calculate the resulting drawable offset. (gimp_drawable_transform_flip): calculate the axis and pass it to the function above. (gimp_drawable_transform_[tiles_]affine): reordered parameters. * app/core/gimpitem.[ch]: added virtual functions GimpItem::flip() and GimpItem::transform(). * app/core/gimpchannel.c * app/core/gimplayer.c * app/vectors/gimpvectors.c: implement flip() and transform(). Note that all functions always transform the whole item, regardless of a present selection. * app/core/Makefile.am * app/core/gimpitem-linked.[ch]: new files containing utility functions which translate, flip and transform all linked items. * app/tools/gimpfliptool.c * app/tools/gimptransformtool.c * tools/pdbgen/pdb/layer.pdb: use the new gimp_item_linked_*() functions to translate, flip and transform all linked items. * tools/pdbgen/pdb/transform_tools.pdb: follow gimp_drawable_transform_affine() API change. * app/pdb/layer_cmds.c * app/pdb/transform_tools_cmds.c: regenerated.
40 lines
1.9 KiB
C
40 lines
1.9 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 __GIMP_ITEM_LINKED_H__
|
|
#define __GIMP_ITEM_LINKED_H__
|
|
|
|
|
|
void gimp_item_linked_translate (GimpItem *item,
|
|
gint offset_x,
|
|
gint offset_y,
|
|
gboolean push_undo);
|
|
void gimp_item_linked_flip (GimpItem *item,
|
|
GimpOrientationType flip_type,
|
|
gdouble axis);
|
|
void gimp_item_linked_transform (GimpItem *item,
|
|
GimpMatrix3 matrix,
|
|
GimpTransformDirection direction,
|
|
GimpInterpolationType interpolation_type,
|
|
gboolean clip_result,
|
|
GimpProgressFunc progress_callback,
|
|
gpointer progress_data);
|
|
|
|
|
|
#endif /* __GIMP_ITEM_LINKED_H__ */
|