gimp-edit.h 3.83 KB
Newer Older
1
/* GIMP - The GNU Image Manipulation Program
Elliot Lee's avatar
Elliot Lee committed
2 3
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
4
 * This program is free software: you can redistribute it and/or modify
Elliot Lee's avatar
Elliot Lee committed
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
Elliot Lee's avatar
Elliot Lee committed
7 8 9 10 11 12 13 14
 * (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
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
Elliot Lee's avatar
Elliot Lee committed
16
 */
17

18 19
#ifndef __GIMP_EDIT_H__
#define __GIMP_EDIT_H__
Elliot Lee's avatar
Elliot Lee committed
20 21


22
GimpObject  * gimp_edit_cut                (GimpImage       *image,
23 24 25
                                            GimpDrawable    *drawable,
                                            GimpContext     *context,
                                            GError         **error);
26
GimpObject  * gimp_edit_copy               (GimpImage       *image,
27 28 29 30 31 32
                                            GimpDrawable    *drawable,
                                            GimpContext     *context,
                                            GError         **error);
GimpBuffer  * gimp_edit_copy_visible       (GimpImage       *image,
                                            GimpContext     *context,
                                            GError         **error);
33

34 35
GimpLayer   * gimp_edit_paste              (GimpImage       *image,
                                            GimpDrawable    *drawable,
36 37
                                            GimpObject      *paste,
                                            GimpPasteType    paste_type,
38 39 40 41
                                            gint             viewport_x,
                                            gint             viewport_y,
                                            gint             viewport_width,
                                            gint             viewport_height);
42 43
GimpImage   * gimp_edit_paste_as_new_image (Gimp            *gimp,
                                            GimpObject      *paste);
44

45 46 47 48 49 50 51 52 53 54 55 56 57 58
const gchar * gimp_edit_named_cut          (GimpImage       *image,
                                            const gchar     *name,
                                            GimpDrawable    *drawable,
                                            GimpContext     *context,
                                            GError         **error);
const gchar * gimp_edit_named_copy         (GimpImage       *image,
                                            const gchar     *name,
                                            GimpDrawable    *drawable,
                                            GimpContext     *context,
                                            GError         **error);
const gchar * gimp_edit_named_copy_visible (GimpImage       *image,
                                            const gchar     *name,
                                            GimpContext     *context,
                                            GError         **error);
59

60 61 62 63 64 65 66
void          gimp_edit_clear              (GimpImage       *image,
                                            GimpDrawable    *drawable,
                                            GimpContext     *context);
void          gimp_edit_fill               (GimpImage       *image,
                                            GimpDrawable    *drawable,
                                            GimpFillOptions *options,
                                            const gchar     *undo_desc);
67

68 69
gboolean      gimp_edit_fade               (GimpImage       *image,
                                            GimpContext     *context);
70

71

72
#endif  /*  __GIMP_EDIT_H__  */