1997-11-25 06:05:25 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
1998-04-13 13:44:11 +08:00
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
1997-11-25 06:05:25 +08:00
|
|
|
*/
|
2000-12-29 23:22:01 +08:00
|
|
|
|
include the new "paint-funcs/paint-funcs-types.h".
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.
2001-11-29 01:51:06 +08:00
|
|
|
#ifndef __GIMP_IMAGE_MASK_H__
|
|
|
|
#define __GIMP_IMAGE_MASK_H__
|
1997-11-25 06:05:25 +08:00
|
|
|
|
|
|
|
|
2001-11-29 06:42:19 +08:00
|
|
|
gboolean gimp_image_mask_boundary (GimpImage *gimage,
|
|
|
|
BoundSeg **segs_in,
|
|
|
|
BoundSeg **segs_out,
|
|
|
|
gint *num_segs_in,
|
|
|
|
gint *num_segs_out);
|
|
|
|
|
|
|
|
gboolean gimp_image_mask_bounds (GimpImage *gimage,
|
|
|
|
gint *x1,
|
|
|
|
gint *y1,
|
|
|
|
gint *x2,
|
|
|
|
gint *y2);
|
|
|
|
|
|
|
|
void gimp_image_mask_invalidate (GimpImage *gimage);
|
|
|
|
|
|
|
|
gint gimp_image_mask_value (GimpImage *gimage,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
|
|
|
|
|
|
|
gboolean gimp_image_mask_is_empty (GimpImage *gimage);
|
|
|
|
|
|
|
|
TileManager * gimp_image_mask_extract (GimpImage *gimage,
|
|
|
|
GimpDrawable *drawable,
|
|
|
|
gboolean cut_gimage,
|
|
|
|
gboolean keep_indexed,
|
|
|
|
gboolean add_alpha);
|
|
|
|
|
|
|
|
GimpLayer * gimp_image_mask_float (GimpImage *gimage,
|
|
|
|
GimpDrawable *drawable,
|
|
|
|
gint off_x,
|
|
|
|
gint off_y);
|
|
|
|
|
2003-02-14 22:14:29 +08:00
|
|
|
void gimp_image_mask_push_undo (GimpImage *gimage,
|
|
|
|
const gchar *undo_desc);
|
2001-11-29 06:42:19 +08:00
|
|
|
|
|
|
|
void gimp_image_mask_feather (GimpImage *gimage,
|
|
|
|
gdouble feather_radius_x,
|
|
|
|
gdouble feather_radius_y);
|
2002-08-20 18:22:23 +08:00
|
|
|
void gimp_image_mask_sharpen (GimpImage *gimage);
|
|
|
|
|
2003-02-14 22:14:29 +08:00
|
|
|
void gimp_image_mask_clear (GimpImage *gimage,
|
|
|
|
const gchar *undo_name);
|
2002-08-20 18:22:23 +08:00
|
|
|
void gimp_image_mask_all (GimpImage *gimage);
|
|
|
|
void gimp_image_mask_invert (GimpImage *gimage);
|
2001-11-29 06:42:19 +08:00
|
|
|
|
|
|
|
void gimp_image_mask_border (GimpImage *gimage,
|
|
|
|
gint border_radius_x,
|
|
|
|
gint border_radius_y);
|
|
|
|
|
|
|
|
void gimp_image_mask_grow (GimpImage *gimage,
|
|
|
|
gint grow_pixels_x,
|
|
|
|
gint grow_pixels_y);
|
|
|
|
|
|
|
|
void gimp_image_mask_shrink (GimpImage *gimage,
|
|
|
|
gint shrink_pixels_x,
|
|
|
|
gint shrink_pixels_y,
|
|
|
|
gboolean edge_lock);
|
|
|
|
|
2002-08-20 18:22:23 +08:00
|
|
|
void gimp_image_mask_translate (GimpImage *gimage,
|
|
|
|
gint off_x,
|
|
|
|
gint off_y);
|
|
|
|
|
|
|
|
void gimp_image_mask_load (GimpImage *gimage,
|
|
|
|
GimpChannel *channel);
|
2001-11-29 06:42:19 +08:00
|
|
|
void gimp_image_mask_layer_alpha (GimpImage *gimage,
|
|
|
|
GimpLayer *layer);
|
|
|
|
void gimp_image_mask_layer_mask (GimpImage *gimage,
|
|
|
|
GimpLayer *layer);
|
|
|
|
|
|
|
|
GimpChannel * gimp_image_mask_save (GimpImage *gimage);
|
|
|
|
|
|
|
|
gboolean gimp_image_mask_stroke (GimpImage *gimage,
|
|
|
|
GimpDrawable *drawable,
|
|
|
|
GimpContext *context);
|
1997-11-25 06:05:25 +08:00
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
|
include the new "paint-funcs/paint-funcs-types.h".
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.
2001-11-29 01:51:06 +08:00
|
|
|
#endif /* __GIMP_IMAGE_MASK_H__ */
|