app: s/sprintf/g_snprintf/ in xcf_save_image()
[gimp.git] / libgimp / gimplayer.h
blobf620685a9a2fb1679fdd6189965cd14a255855f0
1 /* LIBGIMP - The GIMP Library
2 * Copyright (C) 1995-2000 Peter Mattis and Spencer Kimball
4 * gimplayer.h
6 * This library is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see
18 * <https://www.gnu.org/licenses/>.
21 #if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
22 #error "Only <libgimp/gimp.h> can be included directly."
23 #endif
25 #ifndef __GIMP_LAYER_H__
26 #define __GIMP_LAYER_H__
28 G_BEGIN_DECLS
30 /* For information look into the C source or the html documentation */
33 gint32 gimp_layer_new (gint32 image_ID,
34 const gchar *name,
35 gint width,
36 gint height,
37 GimpImageType type,
38 gdouble opacity,
39 GimpLayerMode mode);
40 gint32 gimp_layer_copy (gint32 layer_ID);
42 gint32 gimp_layer_new_from_pixbuf (gint32 image_ID,
43 const gchar *name,
44 GdkPixbuf *pixbuf,
45 gdouble opacity,
46 GimpLayerMode mode,
47 gdouble progress_start,
48 gdouble progress_end);
49 gint32 gimp_layer_new_from_surface (gint32 image_ID,
50 const gchar *name,
51 cairo_surface_t *surface,
52 gdouble progress_start,
53 gdouble progress_end);
56 G_END_DECLS
58 #endif /* __GIMP_LAYER_H__ */