home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / imagemap / imap_preview.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-24  |  1.9 KB  |  61 lines

  1. /*
  2.  * This is a plug-in for the GIMP.
  3.  *
  4.  * Generates clickable image maps.
  5.  *
  6.  * Copyright (C) 1998-1999 Maurits Rijk  lpeek.mrijk@consunet.nl
  7.  *
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 2 of the License, or
  11.  * (at your option) any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program; if not, write to the Free Software
  20.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21.  *
  22.  */
  23.  
  24. #ifndef _IMAP_PREVIEW_H
  25. #define _IMAP_PREVIEW_H
  26.  
  27. #include "libgimp/gimp.h"
  28. #include "gtk/gtk.h"
  29.  
  30. typedef struct {
  31.    GimpDrawable     *drawable;
  32.    GtkWidget    *window;
  33.    GtkWidget     *frame;
  34.    GtkWidget    *preview;
  35.    GtkWidget    *hruler;
  36.    GtkWidget    *vruler;
  37.    gint        width;
  38.    gint        height;
  39.    gint        exp_id;
  40.    GimpPixelRgn     src_rgn;
  41.  
  42.    GdkCursorType cursor;
  43. } Preview_t;
  44.  
  45. Preview_t *make_preview(GimpDrawable *drawable);
  46. void preview_redraw(Preview_t *preview);
  47.  
  48. void add_preview_motion_event(Preview_t *preview, GtkSignalFunc func);
  49. void add_enter_notify_event(Preview_t *preview, GtkSignalFunc func);
  50. void add_leave_notify_event(Preview_t *preview, GtkSignalFunc func);
  51. void add_preview_button_press_event(Preview_t *preview, GtkSignalFunc func);
  52.  
  53. gint preview_get_width(GtkWidget *preview);
  54. gint preview_get_height(GtkWidget *preview);
  55.  
  56. void preview_zoom(Preview_t *preview, gint zoom_factor);
  57. GdkCursorType preview_set_cursor(Preview_t *preview, 
  58.                  GdkCursorType cursor_type);
  59.  
  60. #endif /* _IMAP_PREVIEW_H */
  61.