1999-09-07 08:03:20 +08:00
|
|
|
/*
|
2007-06-06 16:44:52 +08:00
|
|
|
* This is a plug-in for GIMP.
|
1999-09-07 08:03:20 +08:00
|
|
|
*
|
|
|
|
* Generates clickable image maps.
|
|
|
|
*
|
2003-01-03 04:35:33 +08:00
|
|
|
* Copyright (C) 1998-2003 Maurits Rijk lpeek.mrijk@consunet.nl
|
1999-09-07 08:03:20 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1999-09-07 08:03:20 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1999-09-07 08:03:20 +08: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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1999-09-07 08:03:20 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _IMAP_PREVIEW_H
|
|
|
|
#define _IMAP_PREVIEW_H
|
|
|
|
|
2003-01-03 04:35:33 +08:00
|
|
|
#include <libgimp/gimp.h>
|
|
|
|
|
1999-09-07 08:03:20 +08:00
|
|
|
typedef struct {
|
2003-01-03 04:35:33 +08:00
|
|
|
GimpDrawable *drawable;
|
1999-09-07 08:03:20 +08:00
|
|
|
GtkWidget *window;
|
|
|
|
GtkWidget *preview;
|
|
|
|
GtkWidget *hruler;
|
|
|
|
GtkWidget *vruler;
|
|
|
|
gint width;
|
|
|
|
gint height;
|
2004-08-03 19:35:59 +08:00
|
|
|
gint widget_width;
|
|
|
|
gint widget_height;
|
2003-01-03 04:35:33 +08:00
|
|
|
GimpPixelRgn src_rgn;
|
1999-10-25 04:57:17 +08:00
|
|
|
|
|
|
|
GdkCursorType cursor;
|
1999-09-07 08:03:20 +08:00
|
|
|
} Preview_t;
|
|
|
|
|
2000-08-23 18:23:19 +08:00
|
|
|
Preview_t *make_preview(GimpDrawable *drawable);
|
1999-09-07 08:03:20 +08:00
|
|
|
void preview_redraw(Preview_t *preview);
|
|
|
|
|
2003-01-03 04:35:33 +08:00
|
|
|
void add_preview_motion_event(Preview_t *preview, GCallback func);
|
|
|
|
void add_enter_notify_event(Preview_t *preview, GCallback func);
|
|
|
|
void add_leave_notify_event(Preview_t *preview, GCallback func);
|
|
|
|
void add_preview_button_press_event(Preview_t *preview, GCallback func);
|
1999-09-07 08:03:20 +08:00
|
|
|
|
|
|
|
gint preview_get_width(GtkWidget *preview);
|
|
|
|
gint preview_get_height(GtkWidget *preview);
|
|
|
|
|
|
|
|
void preview_zoom(Preview_t *preview, gint zoom_factor);
|
2006-01-17 20:43:50 +08:00
|
|
|
GdkCursorType preview_set_cursor(Preview_t *preview,
|
1999-10-25 04:57:17 +08:00
|
|
|
GdkCursorType cursor_type);
|
1999-09-07 08:03:20 +08:00
|
|
|
|
|
|
|
#endif /* _IMAP_PREVIEW_H */
|