home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / app / parasitelist.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-12-17  |  2.1 KB  |  56 lines

  1. /* parasitelist.h: Copyright 1998 Jay Cox <jaycox@earthlink.net>
  2.  *
  3.  * This program is free software; you can redistribute it and/or modify
  4.  * it under the terms of the GNU General Public License as published by
  5.  * the Free Software Foundation; either version 2 of the License, or
  6.  * (at your option) any later version.
  7.  *
  8.  * This program is distributed in the hope that it will be useful,
  9.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.  * GNU General Public License for more details.
  12.  *
  13.  * You should have received a copy of the GNU General Public License
  14.  * along with this program; if not, write to the Free Software
  15.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16.  */
  17.  
  18. #ifndef __PARASITE_LIST_H__
  19. #define __PARASITE_LIST_H__
  20.  
  21.  
  22. #include "libgimp/gimpparasite.h"
  23.  
  24.  
  25. #define GIMP_TYPE_PARASITE_LIST    (parasite_list_get_type ())
  26. #define GIMP_PARASITE_LIST(obj)    (GTK_CHECK_CAST ((obj), GIMP_TYPE_PARASITE_LIST, GimpParasiteList))
  27. #define GIMP_IS_PARASITE_LIST(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_PARASITE_LIST))
  28.  
  29. /* Signals:
  30.    add
  31.    remove
  32. */
  33.  
  34. GtkType        parasite_list_get_type (void);
  35.  
  36. /* function declarations */
  37.  
  38. ParasiteList * parasite_list_new               (void);
  39. ParasiteList * parasite_list_copy              (const ParasiteList *list);
  40. void           parasite_list_add               (ParasiteList       *list,
  41.                         GimpParasite       *parasite);
  42. void           parasite_list_remove            (ParasiteList       *list,
  43.                         const gchar        *name);
  44. gint           parasite_list_length            (ParasiteList       *list);
  45. gint           parasite_list_persistent_length (ParasiteList       *list);
  46. void           parasite_list_foreach           (ParasiteList       *list,
  47.                         GHFunc              function,
  48.                         gpointer            user_data);
  49. GimpParasite * parasite_list_find              (ParasiteList       *list,
  50.                         const gchar        *name);
  51.  
  52. void           parasite_shift_parent           (GimpParasite       *parasite);
  53.  
  54.  
  55. #endif  /*  __PARASITE_LIST_H__  */
  56.