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_tools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-06  |  1.7 KB  |  58 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_TOOLS_H
  25. #define _IMAP_TOOLS_H
  26.  
  27. #include "imap_command.h"
  28.  
  29. typedef struct {
  30.    GtkWidget *container;
  31.    GtkWidget *arrow;
  32.    GtkWidget *rectangle;
  33.    GtkWidget *circle;
  34.    GtkWidget *polygon;
  35.    GtkWidget *edit;
  36.    GtkWidget *delete;
  37.  
  38.    CommandFactory_t cmd_delete;
  39.    CommandFactory_t cmd_edit;
  40. } Tools_t;
  41.  
  42. Tools_t *make_tools(GtkWidget *window);
  43. void tools_select_arrow(void);
  44. void tools_select_rectangle(void);
  45. void tools_select_circle(void);
  46. void tools_select_polygon(void);
  47. void tools_set_sensitive(gboolean sensitive);
  48.  
  49. void arrow_on_button_press(GtkWidget *widget, GdkEventButton *event, 
  50.                gpointer data);
  51.  
  52. #define tools_set_delete_command(tools, command) \
  53.     ((tools)->cmd_delete = (command))
  54. #define tools_set_edit_command(tools, command) \
  55.     ((tools)->cmd_edit = (command))
  56.  
  57. #endif /* _IMAP_TOOLS_H */
  58.