File: fo-space.h

package info (click to toggle)
xmlroff 0.6.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 36,456 kB
  • sloc: ansic: 178,247; xml: 109,155; sh: 8,973; makefile: 1,331; perl: 30
file content (60 lines) | stat: -rw-r--r-- 2,212 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* Fo
 * fo-space.h: Space datatype
 *
 * Copyright (C) 2001 Sun Microsystems
 * Copyright (C) 2007 Menteith Consulting Ltd
 *
 * See COPYING for the status of this software.
 */

#ifndef __FO_SPACE_H__
#define __FO_SPACE_H__

#include <libfo/fo-utils.h>

G_BEGIN_DECLS

#define FO_TYPE_SPACE              (fo_space_get_type ())
#define FO_SPACE(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), FO_TYPE_SPACE, FoSpace))
#define FO_SPACE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), FO_TYPE_SPACE, FoSpaceClass))
#define FO_IS_SPACE(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), FO_TYPE_SPACE))
#define FO_IS_SPACE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), FO_TYPE_SPACE))
#define FO_SPACE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), FO_TYPE_SPACE, FoSpaceClass))


typedef struct _FoSpace      FoSpace;
typedef struct _FoSpaceClass FoSpaceClass;

GType        fo_space_get_type        (void) G_GNUC_CONST;
FoDatatype * fo_space_new             (void);
FoDatatype * fo_space_new_from_length (FoDatatype *length);

void         fo_space_set_minimum     (FoDatatype *datatype,
				       gfloat      new_minimum);
gfloat       fo_space_get_minimum     (FoDatatype *datatype);
void         fo_space_set_optimum     (FoDatatype *datatype,
				       gfloat      new_optimum);
gfloat       fo_space_get_optimum     (FoDatatype *datatype);
void         fo_space_set_maximum     (FoDatatype *datatype,
				       gfloat      new_maximum);
gfloat       fo_space_get_maximum     (FoDatatype *datatype);
void         fo_space_set_precedence  (FoDatatype *datatype,
				       gint        new_precedence);
gint         fo_space_get_precedence  (FoDatatype *datatype);
void         fo_space_set_condity     (FoDatatype *datatype,
				       gboolean    new_condity);
gboolean     fo_space_get_condity     (FoDatatype *datatype);

FoDatatype * fo_space_get_space_0pt   (void);

FoDatatype* fo_space_resolve (FoDatatype *shortform,
			      FoDatatype *minimum,
			      FoDatatype *optimum,
			      FoDatatype *maximum,
			      FoDatatype *precedence,
			      FoDatatype *condity,
			      gfloat hundred_percent,
			      GError **error);
G_END_DECLS

#endif /* !__FO_SPACE_H__ */