mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 12:02:32 +00:00
6cf34005af
2001-11-28 Michael Natterer <mitch@gimp.org> * app/base/base-types.h: include the new "paint-funcs/paint-funcs-types.h". * app/paint-funcs/Makefile.am * app/paint-funcs/paint-funcs-types.h: new file. Includes "base/base-types.h". * app/paint-funcs/paint-funcs.[ch]: removed the enums here, include "paint-funcs-types.h". * app/widgets/widgets-types.h: include "display/display-types.h" * app/display/display-types.h: include "widgets/widgets-types.h". * app/tools/tools-types.h: include "display/display-types.h" * app/gui/gui-types.h: include "tools/tools-types.h". The order of namespaces/dependencies should be (but is not): (base, paint-funcs) -> (core, file, xcf, pdb) -> (widgets, display) -> tools -> gui * app/path.c: include "tools/tools-types.h". * app/core/Makefile.am * app/core/gimpimage-guides.[ch] * app/core/gimpimage-merge.[ch] * app/core/gimpimage-resize.[ch] * app/core/gimpimage-scale.[ch]: new files. * app/core/gimpimage.[ch]: removed the stuff which is in the new files. Reordered all functions in both the .h and .c files, commented the groups of functions. * app/core/gimpcontainer.c: create the handler_id using a counter, not the address of a pointer, because the address *may* be the same twice, added debugging output. * app/core/gimpviewable.[ch]: added primitive support for getting a preview GdkPixbuf. * app/nav_window.c * app/undo.c * app/undo_history.c * app/core/gimpimage-duplicate.c * app/core/gimpimage-mask.[ch] * app/display/gimpdisplay.c * app/display/gimpdisplayshell-callbacks.c * app/display/gimpdisplayshell-dnd.c * app/display/gimpdisplayshell-render.c * app/display/gimpdisplayshell-scale.c * app/display/gimpdisplayshell-scroll.c * app/gui/image-commands.c * app/gui/info-window.c * app/gui/layers-commands.c * app/gui/palette-import-dialog.c * app/tools/gimpbycolorselecttool.c * app/tools/gimpeditselectiontool.c * app/tools/gimpmeasuretool.c * app/tools/gimpmovetool.c * app/widgets/gimpcontainerview-utils.c * app/xcf/xcf-load.c: changed accordingly, some cleanup. * tools/pdbgen/pdb/guides.pdb * tools/pdbgen/pdb/image.pdb: changed accordingly, reordered functions. * app/plug_in.c: set the labels of the "Repeat" and "Re-Show" menu items to the name of the last plug-in (Fixes #50986). * app/display/gimpdisplayshell.[ch]: set the labels of "Undo" and "Redo" to the resp. undo names. Much simplified the WM icon stuff by removing most code and using gimp_viewable_get_new_preview_pixbuf(). * app/widgets/gimpbrushfactoryview.c: forgot to assign the GQuark returned by gimp_container_add_handler(). * app/pdb/guides_cmds.c * app/pdb/image_cmds.c * libgimp/gimpimage_pdb.[ch]: regenerated.
160 lines
8.8 KiB
C
160 lines
8.8 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-2000 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 2 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, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
/* NOTE: This file is autogenerated by pdbgen.pl */
|
|
|
|
#ifndef __GIMP_IMAGE_PDB_H__
|
|
#define __GIMP_IMAGE_PDB_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
gint* gimp_image_list (gint *num_images);
|
|
gint32 gimp_image_new (gint width,
|
|
gint height,
|
|
GimpImageBaseType type);
|
|
gboolean gimp_image_delete (gint32 image_ID);
|
|
GimpImageBaseType gimp_image_base_type (gint32 image_ID);
|
|
gboolean gimp_image_resize (gint32 image_ID,
|
|
gint new_width,
|
|
gint new_height,
|
|
gint offx,
|
|
gint offy);
|
|
gboolean gimp_image_scale (gint32 image_ID,
|
|
gint new_width,
|
|
gint new_height);
|
|
gboolean gimp_image_crop (gint32 image_ID,
|
|
gint new_width,
|
|
gint new_height,
|
|
gint offx,
|
|
gint offy);
|
|
gboolean gimp_image_free_shadow (gint32 image_ID);
|
|
gint* gimp_image_get_layers (gint32 image_ID,
|
|
gint *num_layers);
|
|
gint* gimp_image_get_channels (gint32 image_ID,
|
|
gint *num_channels);
|
|
gint32 gimp_image_active_drawable (gint32 image_ID);
|
|
gboolean gimp_image_unset_active_channel (gint32 image_ID);
|
|
gint32 gimp_image_pick_correlate_layer (gint32 image_ID,
|
|
gint x,
|
|
gint y);
|
|
gboolean gimp_image_raise_layer (gint32 image_ID,
|
|
gint32 layer_ID);
|
|
gboolean gimp_image_lower_layer (gint32 image_ID,
|
|
gint32 layer_ID);
|
|
gboolean gimp_image_raise_layer_to_top (gint32 image_ID,
|
|
gint32 layer_ID);
|
|
gboolean gimp_image_lower_layer_to_bottom (gint32 image_ID,
|
|
gint32 layer_ID);
|
|
gint32 gimp_image_merge_visible_layers (gint32 image_ID,
|
|
GimpMergeType merge_type);
|
|
gint32 gimp_image_merge_down (gint32 image_ID,
|
|
gint32 merge_layer_ID,
|
|
GimpMergeType merge_type);
|
|
gint32 gimp_image_flatten (gint32 image_ID);
|
|
gboolean gimp_image_add_layer (gint32 image_ID,
|
|
gint32 layer_ID,
|
|
gint position);
|
|
gboolean gimp_image_remove_layer (gint32 image_ID,
|
|
gint32 layer_ID);
|
|
gboolean gimp_image_add_layer_mask (gint32 image_ID,
|
|
gint32 layer_ID,
|
|
gint32 mask_ID);
|
|
gboolean gimp_image_remove_layer_mask (gint32 image_ID,
|
|
gint32 layer_ID,
|
|
GimpMaskApplyMode mode);
|
|
gboolean gimp_image_raise_channel (gint32 image_ID,
|
|
gint32 channel_ID);
|
|
gboolean gimp_image_lower_channel (gint32 image_ID,
|
|
gint32 layer_ID);
|
|
gboolean gimp_image_add_channel (gint32 image_ID,
|
|
gint32 channel_ID,
|
|
gint position);
|
|
gboolean gimp_image_remove_channel (gint32 image_ID,
|
|
gint32 channel_ID);
|
|
guint8* _gimp_image_get_cmap (gint32 image_ID,
|
|
gint *num_bytes);
|
|
gboolean _gimp_image_set_cmap (gint32 image_ID,
|
|
gint num_bytes,
|
|
guint8 *cmap);
|
|
gboolean gimp_image_undo_is_enabled (gint32 image_ID);
|
|
gboolean gimp_image_undo_enable (gint32 image_ID);
|
|
gboolean gimp_image_undo_disable (gint32 image_ID);
|
|
gboolean gimp_image_undo_freeze (gint32 image_ID);
|
|
gboolean gimp_image_undo_thaw (gint32 image_ID);
|
|
gboolean gimp_image_clean_all (gint32 image_ID);
|
|
gint32 gimp_image_floating_selection (gint32 image_ID);
|
|
gint32 gimp_image_floating_sel_attached_to (gint32 image_ID);
|
|
gboolean _gimp_image_thumbnail (gint32 image_ID,
|
|
gint width,
|
|
gint height,
|
|
gint *ret_width,
|
|
gint *ret_height,
|
|
gint *bpp,
|
|
gint *thumbnail_data_count,
|
|
guint8 **thumbnail_data);
|
|
gboolean gimp_image_set_tattoo_state (gint32 image_ID,
|
|
gint tattoo);
|
|
gint gimp_image_get_tattoo_state (gint32 image_ID);
|
|
gint32 gimp_image_duplicate (gint32 image_ID);
|
|
gint gimp_image_width (gint32 image_ID);
|
|
gint gimp_image_height (gint32 image_ID);
|
|
gint32 gimp_image_get_active_layer (gint32 image_ID);
|
|
gboolean gimp_image_set_active_layer (gint32 image_ID,
|
|
gint32 active_layer_ID);
|
|
gint32 gimp_image_get_active_channel (gint32 image_ID);
|
|
gboolean gimp_image_set_active_channel (gint32 image_ID,
|
|
gint32 active_channel_ID);
|
|
gint32 gimp_image_get_selection (gint32 image_ID);
|
|
gboolean gimp_image_get_component_active (gint32 image_ID,
|
|
GimpChannelType component);
|
|
gboolean gimp_image_set_component_active (gint32 image_ID,
|
|
GimpChannelType component,
|
|
gboolean active);
|
|
gboolean gimp_image_get_component_visible (gint32 image_ID,
|
|
GimpChannelType component);
|
|
gboolean gimp_image_set_component_visible (gint32 image_ID,
|
|
GimpChannelType component,
|
|
gboolean visible);
|
|
gchar* gimp_image_get_filename (gint32 image_ID);
|
|
gboolean gimp_image_set_filename (gint32 image_ID,
|
|
gchar *filename);
|
|
gboolean gimp_image_get_resolution (gint32 image_ID,
|
|
gdouble *xresolution,
|
|
gdouble *yresolution);
|
|
gboolean gimp_image_set_resolution (gint32 image_ID,
|
|
gdouble xresolution,
|
|
gdouble yresolution);
|
|
GimpUnit gimp_image_get_unit (gint32 image_ID);
|
|
gboolean gimp_image_set_unit (gint32 image_ID,
|
|
GimpUnit unit);
|
|
gint32 gimp_image_get_layer_by_tattoo (gint32 image_ID,
|
|
gint tattoo);
|
|
gint32 gimp_image_get_channel_by_tattoo (gint32 image_ID,
|
|
gint tattoo);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GIMP_IMAGE_PDB_H__ */
|