2010-07-09 09:34:44 +02:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
|
|
|
* gimpitem_pdb.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
|
2018-07-11 23:27:07 +02:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2010-07-09 09:34:44 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* NOTE: This file is auto-generated by pdbgen.pl */
|
|
|
|
|
2011-04-28 19:59:52 +02:00
|
|
|
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
|
|
|
|
#error "Only <libgimp/gimp.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2010-07-09 09:34:44 +02:00
|
|
|
#ifndef __GIMP_ITEM_PDB_H__
|
|
|
|
#define __GIMP_ITEM_PDB_H__
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
|
|
|
2021-04-23 17:01:19 +02:00
|
|
|
gboolean gimp_item_id_is_valid (gint item_id);
|
|
|
|
gboolean gimp_item_id_is_drawable (gint item_id);
|
|
|
|
gboolean gimp_item_id_is_layer (gint item_id);
|
|
|
|
gboolean gimp_item_id_is_text_layer (gint item_id);
|
app, libgimp, pdb, plug-ins: new GimpGroupLayer class in libgimp.
Also:
- renaming gimp_layer_group_new() to gimp_group_layer_new() in order to keep the
same name as in core code (i.e. GimpGroupLayer, not GimpLayerGroup).
- renaming gimp_image_merge_layer_group() to gimp_group_layer_merge()
- new functions: gimp_procedure_add_group_layer_argument(),
gimp_procedure_add_group_layer_aux_argument() and
gimp_procedure_add_group_layer_return_value().
This can be tested, e.g. in Python with these calls:
```py
i = Gimp.get_images()[0]
g = Gimp.GroupLayer.new(i, "hello")
i.insert_layer(g, None, 1)
g2 = Gimp.GroupLayer.new(i, "world")
i.insert_layer(g2, g, 1)
g.merge()
```
This was work started long ago, stored in an old stash which I finally
finish now! :-)
2024-07-06 17:24:11 +02:00
|
|
|
gboolean gimp_item_id_is_group_layer (gint item_id);
|
2021-04-23 17:01:19 +02:00
|
|
|
gboolean gimp_item_id_is_channel (gint item_id);
|
|
|
|
gboolean gimp_item_id_is_layer_mask (gint item_id);
|
2024-07-08 23:39:51 +00:00
|
|
|
gboolean gimp_item_id_is_path (gint item_id);
|
2021-04-23 17:01:19 +02:00
|
|
|
gboolean gimp_item_id_is_selection (gint item_id);
|
|
|
|
GimpImage* gimp_item_get_image (GimpItem *item);
|
|
|
|
gboolean gimp_item_delete (GimpItem *item);
|
|
|
|
gboolean gimp_item_is_group (GimpItem *item);
|
|
|
|
GimpItem* gimp_item_get_parent (GimpItem *item);
|
2024-10-21 23:57:10 +02:00
|
|
|
GimpItem** gimp_item_get_children (GimpItem *item);
|
2021-04-23 17:01:19 +02:00
|
|
|
gboolean gimp_item_get_expanded (GimpItem *item);
|
|
|
|
gboolean gimp_item_set_expanded (GimpItem *item,
|
|
|
|
gboolean expanded);
|
|
|
|
gchar* gimp_item_get_name (GimpItem *item);
|
|
|
|
gboolean gimp_item_set_name (GimpItem *item,
|
|
|
|
const gchar *name);
|
|
|
|
gboolean gimp_item_get_visible (GimpItem *item);
|
|
|
|
gboolean gimp_item_set_visible (GimpItem *item,
|
|
|
|
gboolean visible);
|
|
|
|
gboolean gimp_item_get_lock_content (GimpItem *item);
|
|
|
|
gboolean gimp_item_set_lock_content (GimpItem *item,
|
|
|
|
gboolean lock_content);
|
|
|
|
gboolean gimp_item_get_lock_position (GimpItem *item);
|
|
|
|
gboolean gimp_item_set_lock_position (GimpItem *item,
|
|
|
|
gboolean lock_position);
|
|
|
|
gboolean gimp_item_get_lock_visibility (GimpItem *item);
|
|
|
|
gboolean gimp_item_set_lock_visibility (GimpItem *item,
|
|
|
|
gboolean lock_visibility);
|
|
|
|
GimpColorTag gimp_item_get_color_tag (GimpItem *item);
|
|
|
|
gboolean gimp_item_set_color_tag (GimpItem *item,
|
|
|
|
GimpColorTag color_tag);
|
|
|
|
guint gimp_item_get_tattoo (GimpItem *item);
|
|
|
|
gboolean gimp_item_set_tattoo (GimpItem *item,
|
|
|
|
guint tattoo);
|
|
|
|
gboolean gimp_item_attach_parasite (GimpItem *item,
|
|
|
|
const GimpParasite *parasite);
|
|
|
|
gboolean gimp_item_detach_parasite (GimpItem *item,
|
|
|
|
const gchar *name);
|
|
|
|
GimpParasite* gimp_item_get_parasite (GimpItem *item,
|
|
|
|
const gchar *name);
|
2021-12-01 22:35:25 +01:00
|
|
|
gchar** gimp_item_get_parasite_list (GimpItem *item);
|
2019-08-12 18:00:44 +02:00
|
|
|
|
2010-07-09 09:34:44 +02:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GIMP_ITEM_PDB_H__ */
|