mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
f9f4411f53
2000-02-18 Michael Natterer <mitch@gimp.org> * libgimp/Makefile.am * libgimp/gimppixmap.[ch]: simple widget which creates a pixmap from XPM data without the need to worry about it's parent's "realized" state and other stuff. * libgimp/gimpcolorbutton.c: removed a gtk-doc comment from an internal function. * libgimp/gimpwidgets.[ch]: new function gimp_pixmap_button_new(). * app/gimpui.h * libgimp/gimpui.h: include gimppixmap.h. * app/gradient.c * app/nav_window.c * app/palette.c * libgimp/gimpfileselection.[ch] * libgimp/gimppatheditor.c * libgimp/gimpquerybox.c * plug-ins/FractalExplorer/FractalExplorer.c: use GimpPixmaps. * plug-ins/Lighting/* * plug-ins/MapObject/*: some more cleanups: reduced # of includes, made private functions static, use GimpPixmaps. * plug-ins/libgck/Makefile.am * plug-ins/libgck/NEWS * plug-ins/libgck/README * plug-ins/libgck/TODO * plug-ins/libgck/docs/html/gck.html * plug-ins/libgck/docs/html/gck_application_window.html * plug-ins/libgck/docs/html/gck_dialog_window.html * plug-ins/libgck/docs/html/gckmath.html * plug-ins/libgck/docs/html/gckui.html * plug-ins/libgck/docs/html/gckvector.html: removed because they documented files which don't exist any more.
30 lines
608 B
C
30 lines
608 B
C
#ifndef __LIGHTING_PREVIEW_H__
|
|
#define __LIGHTING_PREVIEW_H__
|
|
|
|
#define PREVIEW_WIDTH 300
|
|
#define PREVIEW_HEIGHT 300
|
|
|
|
typedef struct
|
|
{
|
|
gint x,y,w,h;
|
|
GdkImage *image;
|
|
} BackBuffer;
|
|
|
|
/* Externally visible variables */
|
|
/* ============================ */
|
|
|
|
extern gint lightx,lighty;
|
|
extern BackBuffer backbuf;
|
|
extern gdouble *xpostab,*ypostab;
|
|
|
|
/* Externally visible functions */
|
|
/* ============================ */
|
|
|
|
void draw_preview_image (gint recompute);
|
|
gint check_light_hit (gint xpos,
|
|
gint ypos);
|
|
void update_light (gint xpos,
|
|
gint ypos);
|
|
|
|
#endif /* __LIGHTING_PREVIEW_H__ */
|