From 3c57dd931145d43f2b0aef96c4d178135956bf91 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 05:13:10 +0200 Subject: Adding upstream version 2.10.36. Signed-off-by: Daniel Baumann --- libgimp/gimplayer.h | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 libgimp/gimplayer.h (limited to 'libgimp/gimplayer.h') diff --git a/libgimp/gimplayer.h b/libgimp/gimplayer.h new file mode 100644 index 0000000..f1d006c --- /dev/null +++ b/libgimp/gimplayer.h @@ -0,0 +1,63 @@ +/* LIBGIMP - The GIMP Library + * Copyright (C) 1995-2000 Peter Mattis and Spencer Kimball + * + * gimplayer.h + * + * This library is free software: you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see + * . + */ + +#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __GIMP_LAYER_H__ +#define __GIMP_LAYER_H__ + +G_BEGIN_DECLS + +/* For information look into the C source or the html documentation */ + + +gint32 gimp_layer_new (gint32 image_ID, + const gchar *name, + gint width, + gint height, + GimpImageType type, + gdouble opacity, + GimpLayerMode mode); +gint32 gimp_layer_copy (gint32 layer_ID); + +gint32 gimp_layer_new_from_pixbuf (gint32 image_ID, + const gchar *name, + GdkPixbuf *pixbuf, + gdouble opacity, + GimpLayerMode mode, + gdouble progress_start, + gdouble progress_end); +gint32 gimp_layer_new_from_surface (gint32 image_ID, + const gchar *name, + cairo_surface_t *surface, + gdouble progress_start, + gdouble progress_end); + +GIMP_DEPRECATED_FOR(gimp_layer_get_lock_alpha) +gboolean gimp_layer_get_preserve_trans (gint32 layer_ID); +GIMP_DEPRECATED_FOR(gimp_layer_set_lock_alpha) +gboolean gimp_layer_set_preserve_trans (gint32 layer_ID, + gboolean preserve_trans); + +G_END_DECLS + +#endif /* __GIMP_LAYER_H__ */ -- cgit v1.2.3