2000-08-29 14:27:40 +00:00
|
|
|
/* Lighting Effects - A plug-in for GIMP
|
|
|
|
*
|
2009-01-17 22:28:01 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2000-08-29 14:27:40 +00:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-17 22:28:01 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2000-08-29 14:27:40 +00:00
|
|
|
* (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
|
2018-07-11 23:27:07 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2000-08-29 14:27:40 +00:00
|
|
|
*/
|
|
|
|
|
2000-02-18 13:59:18 +00:00
|
|
|
#ifndef __LIGHTING_PREVIEW_H__
|
|
|
|
#define __LIGHTING_PREVIEW_H__
|
1998-06-11 06:04:59 +00:00
|
|
|
|
2000-12-30 00:23:34 +00:00
|
|
|
#define PREVIEW_WIDTH 200
|
2000-08-29 14:27:40 +00:00
|
|
|
#define PREVIEW_HEIGHT 200
|
1998-06-11 06:04:59 +00:00
|
|
|
|
|
|
|
/* Externally visible variables */
|
|
|
|
|
2000-12-30 00:23:34 +00:00
|
|
|
extern gdouble *xpostab, *ypostab;
|
2004-07-16 19:41:21 +00:00
|
|
|
|
1998-06-11 06:04:59 +00:00
|
|
|
/* Externally visible functions */
|
|
|
|
|
2011-02-20 16:43:36 +01:00
|
|
|
void preview_compute (void);
|
2003-12-14 15:41:37 +00:00
|
|
|
void interactive_preview_callback (GtkWidget *widget);
|
|
|
|
gboolean preview_events (GtkWidget *area,
|
|
|
|
GdkEvent *event);
|
2010-11-02 21:49:54 +01:00
|
|
|
gboolean preview_draw (GtkWidget *area,
|
|
|
|
cairo_t *cr);
|
2003-12-14 15:41:37 +00:00
|
|
|
void update_light (gint xpos,
|
|
|
|
gint ypos);
|
2002-10-16 21:18:11 +00:00
|
|
|
|
2000-02-18 13:59:18 +00:00
|
|
|
#endif /* __LIGHTING_PREVIEW_H__ */
|