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

« back to all changes in this revision

Viewing changes to libgimpbase/gimpbase-private.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
 * gimpbase-private.h
 
5
 * Copyright (C) 2003 Sven Neumann <sven@gimp.org>
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Lesser General Public
 
9
 * License as published by the Free Software Foundation; either
 
10
 * version 2 of the License, or (at your option) any later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * Lesser General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public
 
18
 * License along with this library; if not, write to the
 
19
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
20
 * Boston, MA 02111-1307, USA.
 
21
 */
 
22
 
 
23
#ifndef __GIMP_BASE_PRIVATE_H__
 
24
#define __GIMP_BASE_PRIVATE_H__
 
25
 
 
26
 
 
27
typedef struct _GimpUnitVTable GimpUnitVTable;
 
28
 
 
29
struct _GimpUnitVTable
 
30
{
 
31
  gint          (* unit_get_number_of_units)          (void);
 
32
  gint          (* unit_get_number_of_built_in_units) (void);
 
33
 
 
34
  GimpUnit      (* unit_new)                          (gchar    *identifier,
 
35
                                                       gdouble   factor,
 
36
                                                       gint      digits,
 
37
                                                       gchar    *symbol,
 
38
                                                       gchar    *abbreviation,
 
39
                                                       gchar    *singular,
 
40
                                                       gchar    *plural);
 
41
  gboolean      (* unit_get_deletion_flag)            (GimpUnit  unit);
 
42
  void          (* unit_set_deletion_flag)            (GimpUnit  unit,
 
43
                                                       gboolean  deletion_flag);
 
44
 
 
45
  gdouble       (* unit_get_factor)                   (GimpUnit  unit);
 
46
  gint          (* unit_get_digits)                   (GimpUnit  unit);
 
47
  const gchar * (* unit_get_identifier)               (GimpUnit  unit);
 
48
  const gchar * (* unit_get_symbol)                   (GimpUnit  unit);
 
49
  const gchar * (* unit_get_abbreviation)             (GimpUnit  unit);
 
50
  const gchar * (* unit_get_singular)                 (GimpUnit  unit);
 
51
  const gchar * (* unit_get_plural)                   (GimpUnit  unit);
 
52
 
 
53
  void          (* _reserved_1)                       (void);
 
54
  void          (* _reserved_2)                       (void);
 
55
  void          (* _reserved_3)                       (void);
 
56
  void          (* _reserved_4)                       (void);
 
57
};
 
58
 
 
59
 
 
60
extern GimpUnitVTable _gimp_unit_vtable;
 
61
 
 
62
 
 
63
G_BEGIN_DECLS
 
64
 
 
65
void  gimp_base_init (GimpUnitVTable *vtable);
 
66
 
 
67
G_END_DECLS
 
68
 
 
69
#endif /* __GIMP_BASE_PRIVATE_H__ */