home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / plug-ins / rcm / rcm_gdk.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-05  |  2.6 KB  |  72 lines

  1. /*
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * This is a plug-in for the GIMP.
  5.  *
  6.  * Colormap-Rotation plug-in. Exchanges two color ranges.
  7.  *
  8.  * Copyright (C) 1999 Sven Anders (anderss@fmi.uni-passau.de)
  9.  *                    Based on code from Pavel Grinfeld (pavel@ml.com)
  10.  *
  11.  *
  12.  * This program is free software; you can redistribute it and/or modify
  13.  * it under the terms of the GNU General Public License as published by
  14.  * the Free Software Foundation; either version 2 of the License, or
  15.  * (at your option) any later version.
  16.  *
  17.  * This program is distributed in the hope that it will be useful,
  18.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20.  * GNU General Public License for more details.
  21.  *
  22.  * You should have received a copy of the GNU General Public License
  23.  * along with this program; if not, write to the Free Software
  24.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  25.  */
  26.  
  27. /*-----------------------------------------------------------------------------------
  28.  * Change log:
  29.  * 
  30.  * Version 2.0, 04 April 1999.
  31.  *  Nearly complete rewrite, made plug-in stable.
  32.  *  (Works with GIMP 1.1 and GTK+ 1.2)
  33.  *
  34.  * Version 1.0, 27 March 1997.
  35.  *  Initial (unstable) release by Pavel Grinfeld
  36.  *
  37.  *-----------------------------------------------------------------------------------*/
  38.  
  39. /*-----------------------------------------------------------------------------------*/
  40. /* Global defines */
  41. /*-----------------------------------------------------------------------------------*/
  42.  
  43. #define RADIUS  60
  44. #define MARGIN  4
  45. #define SUM     (2*RADIUS + 2*MARGIN)
  46. #define CENTER  (SUM/2)
  47.  
  48. #define GRAY_RADIUS  60
  49. #define GRAY_MARGIN  3
  50. #define GRAY_SUM     (2*GRAY_RADIUS + 2*GRAY_MARGIN)
  51. #define GRAY_CENTER  (GRAY_SUM/2)
  52.  
  53. #define LITTLE_RADIUS 3
  54. #define EACH_OR_BOTH  0.3
  55.  
  56.  
  57. /*-----------------------------------------------------------------------------------*/
  58. /* Global variables */
  59. /*-----------------------------------------------------------------------------------*/
  60.  
  61. extern GdkGC *xor_gc;
  62.  
  63. /*-----------------------------------------------------------------------------------*/
  64.  
  65. void rcm_draw_little_circle(GdkWindow *window, GdkGC *color, float hue, float satur);
  66.  
  67. void rcm_draw_large_circle(GdkWindow *window, GdkGC *color, float gray_sat);
  68.  
  69. void rcm_draw_arrows(GdkWindow *window, GdkGC *color, RcmAngle *angle);
  70.  
  71. /*-----------------------------------------------------------------------------------*/
  72.