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

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  3.  *
  4.  * brush_generated module Copyright 1998 Jay Cox <jaycox@earthlink.net>
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * (at your option) any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19.  */
  20.  
  21. #ifndef __GIMP_BRUSH_GENERATED_H__
  22. #define __GIMP_BRUSH_GENERATED_H__
  23.  
  24. #include "gimpbrush.h"
  25.  
  26.  
  27. #define GIMP_TYPE_BRUSH_GENERATED    (gimp_brush_generated_get_type ())
  28. #define GIMP_BRUSH_GENERATED(obj)    (GTK_CHECK_CAST ((obj), GIMP_TYPE_BRUSH_GENERATED, GimpBrushGenerated))
  29. #define GIMP_IS_BRUSH_GENERATED(obj) (GTK_CHECK_TYPE ((obj), GIMP_TYPE_BRUSH_GENERATED))
  30.  
  31. typedef struct _GimpBrushGenerated      GimpBrushGenerated;
  32. typedef struct _GimpBrushGeneratedClass GimpBrushGeneratedClass;
  33.  
  34. struct _GimpBrushGenerated
  35. {
  36.   GimpBrush gbrush;
  37.  
  38.   gfloat    radius;
  39.   gfloat    hardness;     /* 0.0 - 1.0  */
  40.   gfloat    angle;        /* in degrees */
  41.   gfloat    aspect_ratio; /* y/x        */
  42.  
  43.   gint      freeze;
  44.  
  45.   /*GSpline *profile_curve */ /* Some lazy day...  */
  46. };
  47.  
  48. struct _GimpBrushGeneratedClass
  49. {
  50.   GimpBrushClass parent_class;
  51. };
  52.  
  53.  
  54. GtkType     gimp_brush_generated_get_type (void);
  55.  
  56. GimpBrush * gimp_brush_generated_new      (gfloat       radius,
  57.                        gfloat       hardness,
  58.                        gfloat       angle,
  59.                        gfloat       aspect_ratio);
  60. GimpBrush * gimp_brush_generated_load     (const gchar *file_name);
  61.  
  62. void    gimp_brush_generated_save             (GimpBrushGenerated *brush,
  63.                            const gchar        *file_name);
  64. void    gimp_brush_generated_delete           (GimpBrushGenerated *brush);
  65.  
  66. void    gimp_brush_generated_freeze           (GimpBrushGenerated *brush);
  67. void    gimp_brush_generated_thaw             (GimpBrushGenerated *brush);
  68.  
  69. gfloat  gimp_brush_generated_set_radius       (GimpBrushGenerated *brush,
  70.                            gfloat              radius);
  71. gfloat  gimp_brush_generated_set_hardness     (GimpBrushGenerated *brush,
  72.                            gfloat              hardness);
  73. gfloat  gimp_brush_generated_set_angle        (GimpBrushGenerated *brush,
  74.                            gfloat              angle);
  75. gfloat  gimp_brush_generated_set_aspect_ratio (GimpBrushGenerated *brush,
  76.                            gfloat              ratio);
  77.  
  78. gfloat  gimp_brush_generated_get_radius       (const GimpBrushGenerated *brush);
  79. gfloat  gimp_brush_generated_get_hardness     (const GimpBrushGenerated *brush);
  80. gfloat  gimp_brush_generated_get_angle        (const GimpBrushGenerated *brush);
  81. gfloat  gimp_brush_generated_get_aspect_ratio (const GimpBrushGenerated *brush);
  82.  
  83.  
  84. #endif  /*  __GIMP_BRUSH_GENERATED_H__  */
  85.