1 /* Fo
2  * fo-property-util.h: Utility functions for properties.
3  *
4  * Copyright (C) 2001-2004 Sun Microsystems
5  * Copyright (C) 2007-2010 Menteith Consulting Ltd
6  *
7  * See COPYING for the status of this software.
8  */
9 
10 #ifndef __FO_PROPERTY_UTIL_H__
11 #define __FO_PROPERTY_UTIL_H__
12 
13 #include <libfo/fo-utils.h>
14 #include <libfo/datatype/fo-datatype.h>
15 #include <libfo/fo-context.h>
16 
17 G_BEGIN_DECLS
18 
19 FoDatatype * fo_property_util_get_color_initial        (void);
20 FoDatatype * fo_property_util_resolve_no_enum          (const gchar *token,
21 							FoContext   *context,
22 							GError     **error);
23 FoDatatype * fo_property_util_resolve_color_enum       (const gchar *token,
24 							FoContext   *context,
25 							GError     **error);
26 FoDatatype * fo_property_util_resolve_color_transparent_enum (const gchar *token,
27 							      FoContext   *context,
28 							      GError     **error);
29 FoDatatype * fo_property_util_resolve_auto_enum        (const gchar *token,
30 							FoContext   *context,
31 							GError     **error);
32 FoDatatype * fo_property_util_resolve_auto_always_enum (const gchar *token,
33 							FoContext   *context,
34 							GError     **error);
35 FoDatatype * fo_property_util_resolve_condity_enum     (const gchar *token,
36 							FoContext   *context,
37 							GError     **error);
38 FoDatatype * fo_property_util_resolve_force_enum       (const gchar *token,
39 							FoContext   *context,
40 							GError     **error);
41 FoDatatype * fo_property_util_resolve_true_false_enum  (const gchar *token,
42 							FoContext   *context,
43 							GError     **error);
44 FoDatatype * fo_property_util_validate_boolean         (FoDatatype *datatype,
45 							FoContext  *context,
46 							GError    **error);
47 FoDatatype * fo_property_util_validate_color           (FoDatatype  *datatype,
48 							FoContext   *context,
49 							GError     **error);
50 FoDatatype * fo_property_util_validate_color_transparent (FoDatatype *datatype,
51 							  FoContext  *context,
52 							  GError    **error);
53 FoDatatype * fo_property_util_resolve_ipdim_percent    (gdouble           percentage,
54 							const FoDatatype *font_size,
55 							const FoFo       *fo_node,
56 							const FoContext  *context,
57 							GError          **error);
58 FoDatatype * fo_property_util_resolve_width_enum       (const gchar *token,
59 							FoContext   *context,
60 							GError     **error);
61 FoDatatype * fo_property_util_validate_width           (FoDatatype *datatype,
62 							FoContext  *context,
63 							GError    **error);
64 FoDatatype * fo_property_util_get_width_initial        (void);
65 
66 FoDatatype * fo_property_util_resolve_style_enum       (const gchar *token,
67 							FoContext   *context,
68 							GError     **error);
69 FoDatatype * fo_property_util_validate_style           (FoDatatype *datatype,
70 							FoContext  *context,
71 							GError    **error);
72 FoDatatype * fo_property_util_resolve_wsc_enum         (const gchar *token,
73 							FoContext   *context,
74 							GError     **error);
75 FoDatatype * fo_property_util_validate_wsc             (FoDatatype *datatype,
76 							FoContext  *context,
77 							GError    **error);
78 FoDatatype * fo_property_util_get_style_initial        (void);
79 
80 G_END_DECLS
81 
82 #endif /* !__FO_PROPERTY_UTIL_H__ */
83