1 /* Fo
2  * fo-property-line-height.h: 'line-height' property
3  *
4  * Copyright (C) 2001 Sun Microsystems
5  * Copyright (C) 2007-2008 Menteith Consulting Ltd
6  *
7  * See COPYING for the status of this software.
8  */
9 
10 #ifndef __FO_PROPERTY_LINE_HEIGHT_H__
11 #define __FO_PROPERTY_LINE_HEIGHT_H__
12 
13 #include <libfo/fo-utils.h>
14 #include <libfo/property/fo-property.h>
15 
16 G_BEGIN_DECLS
17 
18 /* line-height */
19 /* Inherited: TRUE */
20 /* Shorthand: FALSE */
21 /* normal | <length> | <number> | <percentage> | <space> | inherit */
22 /* Initial value: normal */
23 
24 #define FO_TYPE_PROPERTY_LINE_HEIGHT              (fo_property_line_height_get_type ())
25 #define FO_PROPERTY_LINE_HEIGHT(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), FO_TYPE_PROPERTY_LINE_HEIGHT, FoPropertyLineHeight))
26 #define FO_PROPERTY_LINE_HEIGHT_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), FO_TYPE_PROPERTY_LINE_HEIGHT, FoPropertyLineHeightClass))
27 #define FO_IS_PROPERTY_LINE_HEIGHT(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), FO_TYPE_PROPERTY_LINE_HEIGHT))
28 #define FO_IS_PROPERTY_LINE_HEIGHT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), FO_TYPE_PROPERTY_LINE_HEIGHT))
29 #define FO_PROPERTY_LINE_HEIGHT_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), FO_TYPE_PROPERTY_LINE_HEIGHT, FoPropertyLineHeightClass))
30 
31 
32 typedef struct _FoPropertyLineHeight      FoPropertyLineHeight;
33 typedef struct _FoPropertyLineHeightClass FoPropertyLineHeightClass;
34 
35 GType        fo_property_line_height_get_type    (void) G_GNUC_CONST;
36 FoProperty * fo_property_line_height_new         (void);
37 FoProperty * fo_property_line_height_get_initial (void);
38 FoProperty * fo_property_line_height_resolve     (FoProperty *line_height,
39 						  FoProperty *font_size);
40 
41 G_END_DECLS
42 
43 #endif /* !__FO_PROPERTY_LINE_HEIGHT_H__ */
44