~ubuntu-branches/ubuntu/hoary/gimp/hoary

« back to all changes in this revision

Viewing changes to libgimpbase/gimpbasetypes.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-04-04 14:51:23 UTC
  • Revision ID: james.westby@ubuntu.com-20050404145123-9py049eeelfymur8
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* LIBGIMP - The GIMP Library
 
2
 * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Lesser General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library 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 GNU
 
12
 * Library General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with this library; if not, write to the
 
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
 
18
 */
 
19
 
 
20
#ifndef __GIMP_BASE_TYPES_H__
 
21
#define __GIMP_BASE_TYPES_H__
 
22
 
 
23
 
 
24
#include <libgimpcolor/gimpcolortypes.h>
 
25
#include <libgimpmath/gimpmathtypes.h>
 
26
 
 
27
#include <libgimpbase/gimpbaseenums.h>
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
/* For information look into the C source or the html documentation */
 
32
 
 
33
 
 
34
typedef struct _GimpParasite     GimpParasite;
 
35
typedef struct _GimpDatafileData GimpDatafileData;
 
36
typedef struct _GimpEnumDesc     GimpEnumDesc;
 
37
typedef struct _GimpFlagsDesc    GimpFlagsDesc;
 
38
 
 
39
 
 
40
typedef void (* GimpDatafileLoaderFunc) (const GimpDatafileData *file_data,
 
41
                                         gpointer                user_data);
 
42
 
 
43
 
 
44
struct _GimpEnumDesc
 
45
{
 
46
  gint   value;
 
47
  gchar *value_desc;
 
48
  gchar *value_help;
 
49
};
 
50
 
 
51
struct _GimpFlagsDesc
 
52
{
 
53
  guint  value;
 
54
  gchar *value_desc;
 
55
  gchar *value_help;
 
56
};
 
57
 
 
58
 
 
59
void                  gimp_type_set_translation_domain  (GType                type,
 
60
                                                         const gchar         *domain);
 
61
const gchar         * gimp_type_get_translation_domain  (GType                type);
 
62
 
 
63
void                  gimp_enum_set_value_descriptions  (GType                enum_type,
 
64
                                                         const GimpEnumDesc  *descriptions);
 
65
const GimpEnumDesc  * gimp_enum_get_value_descriptions  (GType                enum_type);
 
66
 
 
67
void                  gimp_flags_set_value_descriptions (GType                flags_type,
 
68
                                                         const GimpFlagsDesc *descriptions);
 
69
const GimpFlagsDesc * gimp_flags_get_value_descriptions (GType                flags_type);
 
70
 
 
71
 
 
72
G_END_DECLS
 
73
 
 
74
#endif  /* __GIMP_BASE_TYPES_H__ */