2006-12-09 21:33:38 +00:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
1997-11-24 22:05:25 +00:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-17 22:28:01 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1997-11-24 22:05:25 +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
|
1997-11-24 22:05:25 +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/>.
|
1997-11-24 22:05:25 +00:00
|
|
|
*/
|
2000-12-29 15:22:01 +00:00
|
|
|
|
2025-07-13 03:15:46 +02:00
|
|
|
#pragma once
|
1997-11-24 22:05:25 +00:00
|
|
|
|
|
|
|
|
2016-09-19 23:53:40 +02:00
|
|
|
GimpObject * gimp_edit_cut (GimpImage *image,
|
2020-05-26 16:15:15 +02:00
|
|
|
GList *drawables,
|
2016-05-19 23:51:44 +02:00
|
|
|
GimpContext *context,
|
|
|
|
GError **error);
|
2016-09-19 23:53:40 +02:00
|
|
|
GimpObject * gimp_edit_copy (GimpImage *image,
|
2020-05-06 15:46:51 +02:00
|
|
|
GList *drawables,
|
2016-05-19 23:51:44 +02:00
|
|
|
GimpContext *context,
|
2024-08-09 20:35:58 +02:00
|
|
|
gboolean copy_for_cut,
|
2016-05-19 23:51:44 +02:00
|
|
|
GError **error);
|
|
|
|
GimpBuffer * gimp_edit_copy_visible (GimpImage *image,
|
|
|
|
GimpContext *context,
|
|
|
|
GError **error);
|
2016-09-19 17:30:41 +02:00
|
|
|
|
app, libgimp, pdb, plug-ins: allow pasting multiple full layers.
When a selection exists, we are copying then pasting the selection
contents. In particular, with multi-layer selection, it means pasting a
merged result of the selected layers (like a sample merged but limited
to selected layers).
Yet when no selection exists, with a single layer selected, a cut in
particular would remove the layer fully, then a paste would copy it
elsewhere (in the same image or even on a different image). This was
still working, but not with multiple layers. This is now fixed and we
can now copy/cut then paste several layers (without merge), which is
sometimes a very practical way to move layers (sometimes simpler than
drag'n drop, especially between images).
As a consequence, the PDB function gimp_edit_paste() now also returns an
array of layers (not a single layer).
2021-04-24 22:45:09 +02:00
|
|
|
GList * gimp_edit_paste (GimpImage *image,
|
2022-11-09 17:01:44 +01:00
|
|
|
GList *drawables,
|
2016-09-19 23:53:40 +02:00
|
|
|
GimpObject *paste,
|
|
|
|
GimpPasteType paste_type,
|
2022-11-12 22:17:00 +01:00
|
|
|
GimpContext *context,
|
|
|
|
gboolean merged,
|
2016-05-19 23:51:44 +02:00
|
|
|
gint viewport_x,
|
|
|
|
gint viewport_y,
|
|
|
|
gint viewport_width,
|
|
|
|
gint viewport_height);
|
2017-05-01 19:10:52 +02:00
|
|
|
GimpImage * gimp_edit_paste_as_new_image (Gimp *gimp,
|
2023-01-24 12:47:02 +01:00
|
|
|
GimpObject *paste,
|
|
|
|
GimpContext *context);
|
2005-09-02 22:50:06 +00:00
|
|
|
|
2016-05-19 23:51:44 +02:00
|
|
|
const gchar * gimp_edit_named_cut (GimpImage *image,
|
|
|
|
const gchar *name,
|
2020-05-26 16:15:15 +02:00
|
|
|
GList *drawables,
|
2016-05-19 23:51:44 +02:00
|
|
|
GimpContext *context,
|
|
|
|
GError **error);
|
|
|
|
const gchar * gimp_edit_named_copy (GimpImage *image,
|
|
|
|
const gchar *name,
|
2020-05-26 16:15:15 +02:00
|
|
|
GList *drawables,
|
2016-05-19 23:51:44 +02:00
|
|
|
GimpContext *context,
|
|
|
|
GError **error);
|
|
|
|
const gchar * gimp_edit_named_copy_visible (GimpImage *image,
|
|
|
|
const gchar *name,
|
|
|
|
GimpContext *context,
|
|
|
|
GError **error);
|