mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
f70fc7d307
1999-04-02 Michael Natterer <mitschel@cs.tu-berlin.de> * app/gimage_mask.[ch]: made function headers ansi compliant. * app/file_new_dialog.c * app/preferences_dialog.c: minor GUI and signal handling changes. Added a WM hint pixmap to the prefs dialog but commented it out because it looked ugly. If someone has a nice pixmap, please try it and tell me ;) * app/color_picker.c * app/crop.c * app/info_window.c * app/perspective_tool.c * app/rotate_tool.c * app/scale_tool.c * app/info_dialog.[ch]: the info_dialog allows scales, spinbuttons and sizeentries now. Made some dialogs use these widgets and added unit support. Sprinkled some g_snprintf's, removed #include's, ansi issues, ... * app/session.c: don't call a NULL callback. * libgimp/gimpsizeentry.[ch]: new function gimp_size_entry_add_field() which allows a more flexible GUI layout. More intelligent signal handling.
93 lines
3.2 KiB
C
93 lines
3.2 KiB
C
/* 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
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
#ifndef __GIMAGE_MASK_H__
|
|
#define __GIMAGE_MASK_H__
|
|
|
|
#include "boundary.h"
|
|
#include "gimage.h"
|
|
|
|
/* mask functions */
|
|
int gimage_mask_boundary (GImage *gimage,
|
|
BoundSeg **segs_in,
|
|
BoundSeg **segs_out,
|
|
int *num_segs_in,
|
|
int *num_segs_out);
|
|
|
|
int gimage_mask_bounds (GImage *gimage,
|
|
int *x1,
|
|
int *y1,
|
|
int *x2,
|
|
int *y2);
|
|
|
|
void gimage_mask_invalidate (GImage *gimage);
|
|
|
|
int gimage_mask_value (GImage *gimage,
|
|
int x,
|
|
int y);
|
|
|
|
int gimage_mask_is_empty (GImage *gimage);
|
|
|
|
void gimage_mask_translate (GImage *gimage,
|
|
int off_x,
|
|
int off_y);
|
|
|
|
TileManager * gimage_mask_extract (GImage *gimage,
|
|
GimpDrawable *drawable,
|
|
int cut_gimage,
|
|
int keep_indexed);
|
|
|
|
Layer * gimage_mask_float (GImage *gimage,
|
|
GimpDrawable *drawable,
|
|
int off_x,
|
|
int off_y);
|
|
|
|
void gimage_mask_clear (GImage *gimage);
|
|
void gimage_mask_undo (GImage *gimage);
|
|
void gimage_mask_invert (GImage *gimage);
|
|
void gimage_mask_sharpen (GImage *gimage);
|
|
void gimage_mask_all (GImage *gimage);
|
|
void gimage_mask_none (GImage *gimage);
|
|
|
|
void gimage_mask_feather (GImage *gimage,
|
|
double feather_radius);
|
|
|
|
void gimage_mask_border (GImage *gimage,
|
|
int border_radius);
|
|
|
|
void gimage_mask_grow (GImage *gimage,
|
|
int grow_pixels);
|
|
|
|
void gimage_mask_shrink (GImage *gimage,
|
|
int shrink_pixels);
|
|
|
|
void gimage_mask_layer_alpha (GImage *gimage,
|
|
Layer *layer);
|
|
|
|
void gimage_mask_layer_mask (GImage *gimage,
|
|
Layer *layer);
|
|
|
|
void gimage_mask_load (GImage *gimage,
|
|
Channel *channel);
|
|
|
|
Channel * gimage_mask_save (GImage *gimage);
|
|
|
|
int gimage_mask_stroke (GImage *gimage,
|
|
GimpDrawable *drawable);
|
|
|
|
#endif /* __GIMAGE_MASK_H__ */
|