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

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation; either version 2 of the License, or
  7.  * (at your option) any later version.
  8.  *
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  */
  18.  
  19. #ifndef __GRADIENT_SELECT_H__
  20. #define __GRADIENT_SELECT_H__
  21.  
  22. #include "gimpcontext.h"
  23.  
  24.  
  25. #define GRADIENT_SAMPLE_SIZE 40
  26.  
  27. typedef struct _GradientSelect GradientSelect;
  28.  
  29. struct _GradientSelect
  30. {
  31.   GtkWidget   *shell;
  32.   GtkWidget   *frame;
  33.   GtkWidget   *preview;
  34.   GtkWidget   *clist;
  35.  
  36.   GimpContext *context;
  37.   gchar       *callback_name;
  38.   gint         sample_size;
  39.  
  40.   gradient_t  *dnd_gradient;
  41.  
  42.   GdkColor     black;
  43.   GdkGC       *gc;
  44. };
  45.  
  46. /*  list of active dialogs    */
  47. extern GSList *gradient_active_dialogs;
  48.  
  49. /*  the main gradient selection dialog  */
  50. extern GradientSelect *gradient_select_dialog;
  51.  
  52. GradientSelect * gradient_select_new        (gchar          *title,
  53.                          gchar          *initial_gradient);
  54.  
  55. void             gradient_select_free       (GradientSelect *gsp);
  56.  
  57. void             gradient_select_rename_all (gradient_t     *gradient);
  58. void             gradient_select_insert_all (gint            pos,
  59.                          gradient_t     *gradient);
  60. void             gradient_select_delete_all (gradient_t     *gradient);
  61. void             gradient_select_free_all   (void);
  62. void             gradient_select_refill_all (void);
  63. void             gradient_select_update_all (gradient_t     *gradient);
  64.  
  65. void             gradients_check_dialogs   (void);
  66.  
  67. /*  the main gradient selection  */
  68. void             gradient_dialog_create    (void);
  69. void             gradient_dialog_free      (void);
  70.  
  71. #endif  /*  __GRADIENT_SELECT_H__  */
  72.