mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00

This means that all functions which were returning or taking as parameter an image id (as gint32) are now taking a GimpImage object instead. The PDB is still passing around an id only over the wire. But we create an object for plug-ins to work on. This is quite a huge API break, but is probably the best bet for the future quality. It will make nicer API instrospection (and nicer API in binding), will fix the issues with pspec on GimpImageID in Python bindings (which makes the current Python API unusable as soon as we need to work on images, which is most of our plug-ins!), etc. Also it will allow to use signals on images, which will be a great asset when we will finally have bi-directionnal communications (i.e. plug-ins would be able to connect to image changes, destructions, and whatnot).
198 lines
16 KiB
C
198 lines
16 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
|
|
*
|
|
* gimpimage_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
|
|
* <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/* NOTE: This file is auto-generated by pdbgen.pl */
|
|
|
|
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
|
|
#error "Only <libgimp/gimp.h> can be included directly."
|
|
#endif
|
|
|
|
#ifndef __GIMP_IMAGE_PDB_H__
|
|
#define __GIMP_IMAGE_PDB_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
gboolean gimp_image_is_valid (GimpImage *image);
|
|
gint* gimp_image_list (gint *num_images);
|
|
GimpImage* gimp_image_new (gint width,
|
|
gint height,
|
|
GimpImageBaseType type);
|
|
GimpImage* gimp_image_new_with_precision (gint width,
|
|
gint height,
|
|
GimpImageBaseType type,
|
|
GimpPrecision precision);
|
|
GimpImage* gimp_image_duplicate (GimpImage *image);
|
|
gboolean gimp_image_delete (GimpImage *image);
|
|
GimpImageBaseType gimp_image_base_type (GimpImage *image);
|
|
GimpPrecision gimp_image_get_precision (GimpImage *image);
|
|
GimpLayerMode gimp_image_get_default_new_layer_mode (GimpImage *image);
|
|
gint gimp_image_width (GimpImage *image);
|
|
gint gimp_image_height (GimpImage *image);
|
|
gint* gimp_image_get_layers (GimpImage *image,
|
|
gint *num_layers);
|
|
gint* gimp_image_get_channels (GimpImage *image,
|
|
gint *num_channels);
|
|
gint* gimp_image_get_vectors (GimpImage *image,
|
|
gint *num_vectors);
|
|
gint32 gimp_image_get_active_drawable (GimpImage *image);
|
|
gboolean gimp_image_unset_active_channel (GimpImage *image);
|
|
gint32 gimp_image_get_floating_sel (GimpImage *image);
|
|
gint32 gimp_image_floating_sel_attached_to (GimpImage *image);
|
|
gboolean gimp_image_pick_color (GimpImage *image,
|
|
gint32 drawable_ID,
|
|
gdouble x,
|
|
gdouble y,
|
|
gboolean sample_merged,
|
|
gboolean sample_average,
|
|
gdouble average_radius,
|
|
GimpRGB *color);
|
|
gint32 gimp_image_pick_correlate_layer (GimpImage *image,
|
|
gint x,
|
|
gint y);
|
|
gboolean gimp_image_insert_layer (GimpImage *image,
|
|
gint32 layer_ID,
|
|
gint32 parent_ID,
|
|
gint position);
|
|
gboolean gimp_image_remove_layer (GimpImage *image,
|
|
gint32 layer_ID);
|
|
gboolean gimp_image_freeze_layers (GimpImage *image);
|
|
gboolean gimp_image_thaw_layers (GimpImage *image);
|
|
gboolean gimp_image_insert_channel (GimpImage *image,
|
|
gint32 channel_ID,
|
|
gint32 parent_ID,
|
|
gint position);
|
|
gboolean gimp_image_remove_channel (GimpImage *image,
|
|
gint32 channel_ID);
|
|
gboolean gimp_image_freeze_channels (GimpImage *image);
|
|
gboolean gimp_image_thaw_channels (GimpImage *image);
|
|
gboolean gimp_image_insert_vectors (GimpImage *image,
|
|
gint32 vectors_ID,
|
|
gint32 parent_ID,
|
|
gint position);
|
|
gboolean gimp_image_remove_vectors (GimpImage *image,
|
|
gint32 vectors_ID);
|
|
gboolean gimp_image_freeze_vectors (GimpImage *image);
|
|
gboolean gimp_image_thaw_vectors (GimpImage *image);
|
|
gint gimp_image_get_item_position (GimpImage *image,
|
|
gint32 item_ID);
|
|
gboolean gimp_image_raise_item (GimpImage *image,
|
|
gint32 item_ID);
|
|
gboolean gimp_image_lower_item (GimpImage *image,
|
|
gint32 item_ID);
|
|
gboolean gimp_image_raise_item_to_top (GimpImage *image,
|
|
gint32 item_ID);
|
|
gboolean gimp_image_lower_item_to_bottom (GimpImage *image,
|
|
gint32 item_ID);
|
|
gboolean gimp_image_reorder_item (GimpImage *image,
|
|
gint32 item_ID,
|
|
gint32 parent_ID,
|
|
gint position);
|
|
gint32 gimp_image_flatten (GimpImage *image);
|
|
gint32 gimp_image_merge_visible_layers (GimpImage *image,
|
|
GimpMergeType merge_type);
|
|
gint32 gimp_image_merge_down (GimpImage *image,
|
|
gint32 merge_layer_ID,
|
|
GimpMergeType merge_type);
|
|
G_GNUC_INTERNAL guint8* _gimp_image_get_colormap (GimpImage *image,
|
|
gint *num_bytes);
|
|
G_GNUC_INTERNAL gboolean _gimp_image_set_colormap (GimpImage *image,
|
|
gint num_bytes,
|
|
const guint8 *colormap);
|
|
G_GNUC_INTERNAL gchar* _gimp_image_get_metadata (GimpImage *image);
|
|
G_GNUC_INTERNAL gboolean _gimp_image_set_metadata (GimpImage *image,
|
|
const gchar *metadata_string);
|
|
gboolean gimp_image_clean_all (GimpImage *image);
|
|
gboolean gimp_image_is_dirty (GimpImage *image);
|
|
G_GNUC_INTERNAL gboolean _gimp_image_thumbnail (GimpImage *image,
|
|
gint width,
|
|
gint height,
|
|
gint *actual_width,
|
|
gint *actual_height,
|
|
gint *bpp,
|
|
gint *thumbnail_data_count,
|
|
guint8 **thumbnail_data);
|
|
gint32 gimp_image_get_active_layer (GimpImage *image);
|
|
gboolean gimp_image_set_active_layer (GimpImage *image,
|
|
gint32 active_layer_ID);
|
|
gint32 gimp_image_get_active_channel (GimpImage *image);
|
|
gboolean gimp_image_set_active_channel (GimpImage *image,
|
|
gint32 active_channel_ID);
|
|
gint32 gimp_image_get_active_vectors (GimpImage *image);
|
|
gboolean gimp_image_set_active_vectors (GimpImage *image,
|
|
gint32 active_vectors_ID);
|
|
gint32 gimp_image_get_selection (GimpImage *image);
|
|
gboolean gimp_image_get_component_active (GimpImage *image,
|
|
GimpChannelType component);
|
|
gboolean gimp_image_set_component_active (GimpImage *image,
|
|
GimpChannelType component,
|
|
gboolean active);
|
|
gboolean gimp_image_get_component_visible (GimpImage *image,
|
|
GimpChannelType component);
|
|
gboolean gimp_image_set_component_visible (GimpImage *image,
|
|
GimpChannelType component,
|
|
gboolean visible);
|
|
gchar* gimp_image_get_filename (GimpImage *image);
|
|
gboolean gimp_image_set_filename (GimpImage *image,
|
|
const gchar *filename);
|
|
gchar* gimp_image_get_uri (GimpImage *image);
|
|
gchar* gimp_image_get_xcf_uri (GimpImage *image);
|
|
gchar* gimp_image_get_imported_uri (GimpImage *image);
|
|
gchar* gimp_image_get_exported_uri (GimpImage *image);
|
|
gchar* gimp_image_get_name (GimpImage *image);
|
|
gboolean gimp_image_get_resolution (GimpImage *image,
|
|
gdouble *xresolution,
|
|
gdouble *yresolution);
|
|
gboolean gimp_image_set_resolution (GimpImage *image,
|
|
gdouble xresolution,
|
|
gdouble yresolution);
|
|
GimpUnit gimp_image_get_unit (GimpImage *image);
|
|
gboolean gimp_image_set_unit (GimpImage *image,
|
|
GimpUnit unit);
|
|
guint gimp_image_get_tattoo_state (GimpImage *image);
|
|
gboolean gimp_image_set_tattoo_state (GimpImage *image,
|
|
guint tattoo_state);
|
|
gint32 gimp_image_get_layer_by_tattoo (GimpImage *image,
|
|
guint tattoo);
|
|
gint32 gimp_image_get_channel_by_tattoo (GimpImage *image,
|
|
guint tattoo);
|
|
gint32 gimp_image_get_vectors_by_tattoo (GimpImage *image,
|
|
guint tattoo);
|
|
gint32 gimp_image_get_layer_by_name (GimpImage *image,
|
|
const gchar *name);
|
|
gint32 gimp_image_get_channel_by_name (GimpImage *image,
|
|
const gchar *name);
|
|
gint32 gimp_image_get_vectors_by_name (GimpImage *image,
|
|
const gchar *name);
|
|
gboolean gimp_image_attach_parasite (GimpImage *image,
|
|
const GimpParasite *parasite);
|
|
gboolean gimp_image_detach_parasite (GimpImage *image,
|
|
const gchar *name);
|
|
GimpParasite* gimp_image_get_parasite (GimpImage *image,
|
|
const gchar *name);
|
|
gchar** gimp_image_get_parasite_list (GimpImage *image,
|
|
gint *num_parasites);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GIMP_IMAGE_PDB_H__ */
|