~ubuntu-branches/ubuntu/vivid/gimp/vivid

« back to all changes in this revision

Viewing changes to app/core/gimptemplate.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-08 18:50:03 UTC
  • mto: (1.1.26) (0.5.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: package-import@ubuntu.com-20120508185003-tltkvbaysf8d2426
ImportĀ upstreamĀ versionĀ 2.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * gimptemplate.h
5
5
 * Copyright (C) 2003 Michael Natterer <mitch@gimp.org>
6
6
 *
7
 
 * This program is free software; you can redistribute it and/or modify
 
7
 * This program is free software: you can redistribute it and/or modify
8
8
 * it under the terms of the GNU General Public License as published by
9
 
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * the Free Software Foundation; either version 3 of the License, or
10
10
 * (at your option) any later version.
11
11
 *
12
12
 * This program is distributed in the hope that it will be useful,
15
15
 * GNU General Public License for more details.
16
16
 *
17
17
 * You should have received a copy of the GNU General Public License
18
 
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
19
 */
21
20
 
22
21
#ifndef __GIMP_TEMPLATE_H__
54
53
 
55
54
struct _GimpTemplate
56
55
{
57
 
  GimpViewable       parent_instance;
58
 
 
59
 
  gint               width;
60
 
  gint               height;
61
 
  GimpUnit           unit;
62
 
 
63
 
  gdouble            xresolution;
64
 
  gdouble            yresolution;
65
 
  GimpUnit           resolution_unit;
66
 
 
67
 
  GimpImageBaseType  image_type;
68
 
  GimpFillType       fill_type;
69
 
 
70
 
  gchar             *comment;
71
 
  gchar             *filename;
72
 
 
73
 
  guint64            initial_size;
 
56
  GimpViewable  parent_instance;
74
57
};
75
58
 
76
59
struct _GimpTemplateClass
79
62
};
80
63
 
81
64
 
82
 
GType          gimp_template_get_type        (void) G_GNUC_CONST;
83
 
 
84
 
GimpTemplate * gimp_template_new             (const gchar    *name);
85
 
 
86
 
void           gimp_template_set_from_image  (GimpTemplate   *template,
87
 
                                              GimpImage      *image);
88
 
 
89
 
GimpImage    * gimp_template_create_image    (Gimp           *gimp,
90
 
                                              GimpTemplate   *template,
91
 
                                              GimpContext    *context);
 
65
GType               gimp_template_get_type            (void) G_GNUC_CONST;
 
66
 
 
67
GimpTemplate      * gimp_template_new                 (const gchar  *name);
 
68
 
 
69
void                gimp_template_set_from_image      (GimpTemplate *template,
 
70
                                                       GimpImage    *image);
 
71
 
 
72
gint                gimp_template_get_width           (GimpTemplate *template);
 
73
gint                gimp_template_get_height          (GimpTemplate *template);
 
74
GimpUnit            gimp_template_get_unit            (GimpTemplate *template);
 
75
 
 
76
gdouble             gimp_template_get_resolution_x    (GimpTemplate *template);
 
77
gdouble             gimp_template_get_resolution_y    (GimpTemplate *template);
 
78
GimpUnit            gimp_template_get_resolution_unit (GimpTemplate *template);
 
79
 
 
80
GimpImageBaseType   gimp_template_get_image_type      (GimpTemplate *template);
 
81
GimpFillType        gimp_template_get_fill_type       (GimpTemplate *template);
 
82
 
 
83
const gchar       * gimp_template_get_comment         (GimpTemplate *template);
 
84
 
 
85
guint64             gimp_template_get_initial_size    (GimpTemplate *template);
92
86
 
93
87
 
94
88
#endif /* __GIMP_TEMPLATE__ */