mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 20:41:43 +00:00
297b53a466
2004-10-01 Sven Neumann <sven@gimp.org> * app/display/gimpdisplayshell-callbacks.c: no need to include gimpdisplayshell-render.h here. * app/display/gimpdisplayshell-draw.c * app/display/gimpdisplayshell-render.[ch] * app/display/gimpdisplayshell.[ch]: added an API to highlight a rectangle (specified in image coordinates). Actually it doesn't highlight but dims the area outside the rectangle. * app/tools/gimpcroptool.c: use the new functionality to show the area to be cropped. Fixes bug #93360.
51 lines
1.7 KiB
C
51 lines
1.7 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 __GIMP_DISPLAY_SHELL_RENDER_H__
|
|
#define __GIMP_DISPLAY_SHELL_RENDER_H__
|
|
|
|
|
|
#define GIMP_DISPLAY_SHELL_RENDER_BUF_WIDTH 256
|
|
#define GIMP_DISPLAY_SHELL_RENDER_BUF_HEIGHT 256
|
|
|
|
|
|
void render_init (Gimp *gimp);
|
|
void render_exit (Gimp *gimp);
|
|
|
|
void gimp_display_shell_render (GimpDisplayShell *shell,
|
|
gint x,
|
|
gint y,
|
|
gint w,
|
|
gint h,
|
|
GdkRectangle *highlight);
|
|
|
|
/*
|
|
* Extern variables
|
|
*/
|
|
extern guchar *render_check_buf;
|
|
extern guchar *render_empty_buf;
|
|
extern guchar *render_white_buf;
|
|
extern guchar *render_temp_buf;
|
|
|
|
extern guchar *render_blend_dark_check;
|
|
extern guchar *render_blend_light_check;
|
|
extern guchar *render_blend_white;
|
|
|
|
|
|
#endif /* __GIMP_DISPLAY_SHELL_RENDER_H__ */
|