]> git.sur5r.net Git - glabels/blob - glabels2/src/str-util.h
0253392b5e0152dbb8646bce6f0ff9c6f3a8b6c9
[glabels] / glabels2 / src / str-util.h
1 /*
2  *  str-util.h
3  *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
7  *  gLabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  gLabels 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
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef __STR_UTIL_H__
22 #define __STR_UTIL_H__
23
24 #include <glib.h>
25 #include <pango/pango.h>
26
27 G_BEGIN_DECLS
28
29 gchar              *gl_str_util_fraction_to_string    (gdouble            x);
30
31 const gchar        *gl_str_util_align_to_string       (PangoAlignment     align);
32 PangoAlignment      gl_str_util_string_to_align       (const gchar       *string);
33
34 const gchar        *gl_str_util_weight_to_string      (PangoWeight        weight);
35 PangoWeight         gl_str_util_string_to_weight      (const gchar       *string);
36
37 G_END_DECLS
38
39 #endif /* __STR_UTIL_H__ */
40
41
42
43 /*
44  * Local Variables:       -- emacs
45  * mode: C                -- emacs
46  * c-basic-offset: 8      -- emacs
47  * tab-width: 8           -- emacs
48  * indent-tabs-mode: nil  -- emacs
49  * End:                   -- emacs
50  */