1
/* LIBGIMP - The GIMP Library
2
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
5
* Copyright (C) 2003 Sven Neumann <sven@gimp.org>
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.
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.
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.
23
#ifndef __GIMP_BASE_PRIVATE_H__
24
#define __GIMP_BASE_PRIVATE_H__
27
typedef struct _GimpUnitVTable GimpUnitVTable;
29
struct _GimpUnitVTable
31
gint (* unit_get_number_of_units) (void);
32
gint (* unit_get_number_of_built_in_units) (void);
34
GimpUnit (* unit_new) (gchar *identifier,
41
gboolean (* unit_get_deletion_flag) (GimpUnit unit);
42
void (* unit_set_deletion_flag) (GimpUnit unit,
43
gboolean deletion_flag);
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);
53
void (* _reserved_1) (void);
54
void (* _reserved_2) (void);
55
void (* _reserved_3) (void);
56
void (* _reserved_4) (void);
60
extern GimpUnitVTable _gimp_unit_vtable;
65
void gimp_base_init (GimpUnitVTable *vtable);
69
#endif /* __GIMP_BASE_PRIVATE_H__ */