[AdgDimStyle] Reordered methods
[adg.git] / adg / adg-dim-style.h
blob50af6769e8899421eabf8cd4de75c5a11757ecb8
1 /* ADG - Automatic Drawing Generation
2 * Copyright (C) 2007,2008,2009 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 #ifndef __ADG_DIM_STYLE_H__
22 #define __ADG_DIM_STYLE_H__
24 #include <adg/adg-style.h>
25 #include <adg/adg-dress.h>
26 #include <adg/adg-marker.h>
27 #include <adg/adg-pair.h>
30 G_BEGIN_DECLS
32 #define ADG_TYPE_DIM_STYLE (adg_dim_style_get_type())
33 #define ADG_DIM_STYLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ADG_TYPE_DIM_STYLE, AdgDimStyle))
34 #define ADG_DIM_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ADG_TYPE_DIM_STYLE, AdgDimStyleClass))
35 #define ADG_IS_DIM_STYLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ADG_TYPE_DIM_STYLE))
36 #define ADG_IS_DIM_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ADG_TYPE_DIM_STYLE))
37 #define ADG_DIM_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ADG_TYPE_DIM_STYLE, AdgDimStyleClass))
40 typedef struct _AdgDimStyle AdgDimStyle;
41 typedef struct _AdgDimStyleClass AdgDimStyleClass;
43 struct _AdgDimStyle {
44 /*< private >*/
45 AdgStyle parent;
46 gpointer data;
49 struct _AdgDimStyleClass {
50 /*< private >*/
51 AdgStyleClass parent_class;
55 GType adg_dim_style_get_type (void) G_GNUC_CONST;
56 AdgStyle * adg_dim_style_new (void);
58 AdgMarker * adg_dim_style_marker1_new (AdgDimStyle *dim_style);
59 AdgMarker * adg_dim_style_marker2_new (AdgDimStyle *dim_style);
60 void adg_dim_style_use_marker1 (AdgDimStyle *dim_style,
61 AdgMarker *marker);
62 void adg_dim_style_use_marker2 (AdgDimStyle *dim_style,
63 AdgMarker *marker);
64 void adg_dim_style_set_color_dress (AdgDimStyle *dim_style,
65 AdgDress dress);
66 AdgDress adg_dim_style_get_color_dress (AdgDimStyle *dim_style);
67 void adg_dim_style_set_value_dress (AdgDimStyle *dim_style,
68 AdgDress dress);
69 AdgDress adg_dim_style_get_value_dress (AdgDimStyle *dim_style);
70 void adg_dim_style_set_min_dress (AdgDimStyle *dim_style,
71 AdgDress dress);
72 AdgDress adg_dim_style_get_min_dress (AdgDimStyle *dim_style);
73 void adg_dim_style_set_max_dress (AdgDimStyle *dim_style,
74 AdgDress dress);
75 AdgDress adg_dim_style_get_max_dress (AdgDimStyle *dim_style);
76 void adg_dim_style_set_line_dress (AdgDimStyle *dim_style,
77 AdgDress dress);
78 AdgDress adg_dim_style_get_line_dress (AdgDimStyle *dim_style);
79 void adg_dim_style_set_from_offset (AdgDimStyle *dim_style,
80 gdouble offset);
81 gdouble adg_dim_style_get_from_offset (AdgDimStyle *dim_style);
82 void adg_dim_style_set_to_offset (AdgDimStyle *dim_style,
83 gdouble offset);
84 gdouble adg_dim_style_get_to_offset (AdgDimStyle *dim_style);
85 void adg_dim_style_set_beyond (AdgDimStyle *dim_style,
86 gdouble length);
87 gdouble adg_dim_style_get_beyond (AdgDimStyle *dim_style);
88 void adg_dim_style_set_baseline_spacing
89 (AdgDimStyle *dim_style,
90 gdouble spacing);
91 gdouble adg_dim_style_get_baseline_spacing
92 (AdgDimStyle *dim_style);
93 void adg_dim_style_set_limits_spacing(AdgDimStyle *dim_style,
94 gdouble spacing);
95 gdouble adg_dim_style_get_limits_spacing(AdgDimStyle *dim_style);
96 void adg_dim_style_set_quote_shift (AdgDimStyle *dim_style,
97 const AdgPair *shift);
98 const AdgPair * adg_dim_style_get_quote_shift (AdgDimStyle *dim_style);
99 void adg_dim_style_set_limits_shift (AdgDimStyle *dim_style,
100 const AdgPair *shift);
101 const AdgPair * adg_dim_style_get_limits_shift (AdgDimStyle *dim_style);
102 void adg_dim_style_set_number_format (AdgDimStyle *dim_style,
103 const gchar *format);
104 const gchar * adg_dim_style_get_number_format (AdgDimStyle *dim_style);
105 void adg_dim_style_set_number_tag (AdgDimStyle *dim_style,
106 const gchar *tag);
107 const gchar * adg_dim_style_get_number_tag (AdgDimStyle *dim_style);
109 G_END_DECLS
112 #endif /* __ADG_DIM_STYLE_H__ */