[CPML] Removed dependency on alloca
[adg.git] / adg / adg-dim-style.h
blob0ceccac73981d5d402bd9216b70ce178310cf8af
1 /* ADG - Automatic Drawing Generation
2 * Copyright (C) 2007,2008,2009,2010 Nicola Fontana <ntd at entidi.it>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
21 #if !defined(__ADG_H__)
22 #error "Only <adg/adg.h> can be included directly."
23 #endif
26 #ifndef __ADG_DIM_STYLE_H__
27 #define __ADG_DIM_STYLE_H__
29 #include <adg/adg-style.h>
30 #include <adg/adg-dress.h>
31 #include <adg/adg-marker.h>
32 #include <adg/adg-pair.h>
35 G_BEGIN_DECLS
37 #define ADG_TYPE_DIM_STYLE (adg_dim_style_get_type())
38 #define ADG_DIM_STYLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ADG_TYPE_DIM_STYLE, AdgDimStyle))
39 #define ADG_DIM_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ADG_TYPE_DIM_STYLE, AdgDimStyleClass))
40 #define ADG_IS_DIM_STYLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ADG_TYPE_DIM_STYLE))
41 #define ADG_IS_DIM_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ADG_TYPE_DIM_STYLE))
42 #define ADG_DIM_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ADG_TYPE_DIM_STYLE, AdgDimStyleClass))
45 typedef struct _AdgDimStyle AdgDimStyle;
46 typedef struct _AdgDimStyleClass AdgDimStyleClass;
48 struct _AdgDimStyle {
49 /*< private >*/
50 AdgStyle parent;
51 gpointer data;
54 struct _AdgDimStyleClass {
55 /*< private >*/
56 AdgStyleClass parent_class;
60 GType adg_dim_style_get_type (void) G_GNUC_CONST;
61 AdgStyle * adg_dim_style_new (void);
63 AdgMarker * adg_dim_style_marker1_new (AdgDimStyle *dim_style);
64 AdgMarker * adg_dim_style_marker2_new (AdgDimStyle *dim_style);
65 void adg_dim_style_use_marker1 (AdgDimStyle *dim_style,
66 AdgMarker *marker);
67 void adg_dim_style_use_marker2 (AdgDimStyle *dim_style,
68 AdgMarker *marker);
69 void adg_dim_style_set_color_dress (AdgDimStyle *dim_style,
70 AdgDress dress);
71 AdgDress adg_dim_style_get_color_dress (AdgDimStyle *dim_style);
72 void adg_dim_style_set_value_dress (AdgDimStyle *dim_style,
73 AdgDress dress);
74 AdgDress adg_dim_style_get_value_dress (AdgDimStyle *dim_style);
75 void adg_dim_style_set_min_dress (AdgDimStyle *dim_style,
76 AdgDress dress);
77 AdgDress adg_dim_style_get_min_dress (AdgDimStyle *dim_style);
78 void adg_dim_style_set_max_dress (AdgDimStyle *dim_style,
79 AdgDress dress);
80 AdgDress adg_dim_style_get_max_dress (AdgDimStyle *dim_style);
81 void adg_dim_style_set_line_dress (AdgDimStyle *dim_style,
82 AdgDress dress);
83 AdgDress adg_dim_style_get_line_dress (AdgDimStyle *dim_style);
84 void adg_dim_style_set_from_offset (AdgDimStyle *dim_style,
85 gdouble offset);
86 gdouble adg_dim_style_get_from_offset (AdgDimStyle *dim_style);
87 void adg_dim_style_set_to_offset (AdgDimStyle *dim_style,
88 gdouble offset);
89 gdouble adg_dim_style_get_to_offset (AdgDimStyle *dim_style);
90 void adg_dim_style_set_beyond (AdgDimStyle *dim_style,
91 gdouble length);
92 gdouble adg_dim_style_get_beyond (AdgDimStyle *dim_style);
93 void adg_dim_style_set_baseline_spacing
94 (AdgDimStyle *dim_style,
95 gdouble spacing);
96 gdouble adg_dim_style_get_baseline_spacing
97 (AdgDimStyle *dim_style);
98 void adg_dim_style_set_limits_spacing(AdgDimStyle *dim_style,
99 gdouble spacing);
100 gdouble adg_dim_style_get_limits_spacing(AdgDimStyle *dim_style);
101 void adg_dim_style_set_quote_shift (AdgDimStyle *dim_style,
102 const AdgPair *shift);
103 const AdgPair * adg_dim_style_get_quote_shift (AdgDimStyle *dim_style);
104 void adg_dim_style_set_limits_shift (AdgDimStyle *dim_style,
105 const AdgPair *shift);
106 const AdgPair * adg_dim_style_get_limits_shift (AdgDimStyle *dim_style);
107 void adg_dim_style_set_number_format (AdgDimStyle *dim_style,
108 const gchar *format);
109 const gchar * adg_dim_style_get_number_format (AdgDimStyle *dim_style);
110 void adg_dim_style_set_number_tag (AdgDimStyle *dim_style,
111 const gchar *tag);
112 const gchar * adg_dim_style_get_number_tag (AdgDimStyle *dim_style);
114 G_END_DECLS
117 #endif /* __ADG_DIM_STYLE_H__ */