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

  1. /* The GIMP -- an image manipulation program
  2.  * Copyright (C) 1995-1999 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 __IMAGE_NEW_H__
  20. #define __IMAGE_NEW_H__
  21.  
  22. #include "gimpimage.h"
  23. #include "gimpdrawable.h"
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. typedef struct
  30. {
  31.   GimpImageBaseType  type;
  32.   gchar             *name;
  33. } GimpImageBaseTypeName;
  34.  
  35. typedef struct
  36. {
  37.   GimpFillType  type;
  38.   gchar        *name;
  39. } GimpFillTypeName;
  40.  
  41. typedef struct
  42. {
  43.   gint               width;
  44.   gint               height;
  45.   GimpUnit           unit;
  46.  
  47.   gdouble            xresolution;
  48.   gdouble            yresolution;
  49.   GimpUnit           res_unit;
  50.   
  51.   GimpImageBaseType  type;
  52.   GimpFillType       fill_type;
  53. } GimpImageNewValues;
  54.  
  55. GList * image_new_get_fill_type_names       (void);
  56. GList * image_new_get_image_base_type_names (void);
  57.  
  58. void image_new_create_window        (const GimpImageNewValues *values, 
  59.                      const GimpImage          *image);
  60. void image_new_set_default_values   (const GimpImageNewValues *values);
  61.  
  62. GimpImageNewValues * image_new_values_new  (const GimpImageNewValues *src_vals);
  63. void                 image_new_values_free (GimpImageNewValues       *values);
  64.  
  65. void      image_new_create_image    (const GimpImageNewValues *values);
  66.  
  67. gdouble   image_new_calculate_size  (GimpImageNewValues       *values);
  68. gchar   * image_new_get_size_string (gdouble                   size);
  69.  
  70. void      image_new_reset_current_cut_buffer (void);
  71.  
  72. #ifdef __cplusplus
  73. }
  74. #endif
  75.  
  76. #endif /* __IMAGE_NEW__ */
  77.