1 /* ADG - Automatic Drawing Generation
2 * Copyright (C) 2007-2008, 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 Library 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 * Library 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., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 #ifndef __ADG_DIM_STYLE_H__
22 #define __ADG_DIM_STYLE_H__
24 #include <adg/adg-style.h>
25 #include <adg/adg-font-style.h>
26 #include <adg/adg-line-style.h>
27 #include <adg/adg-arrow-style.h>
28 #include <adg/adg-pair.h>
29 #include <adg/adg-enums.h>
35 #define ADG_TYPE_DIM_STYLE (adg_dim_style_get_type ())
36 #define ADG_DIM_STYLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ADG_TYPE_DIM_STYLE, AdgDimStyle))
37 #define ADG_DIM_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ADG_TYPE_DIM_STYLE, AdgDimStyleClass))
38 #define ADG_IS_DIM_STYLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ADG_TYPE_DIM_STYLE))
39 #define ADG_IS_DIM_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ADG_TYPE_DIM_STYLE))
40 #define ADG_DIM_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ADG_TYPE_DIM_STYLE, AdgDimStyleClass))
42 typedef struct _AdgDimStyle AdgDimStyle
;
43 typedef struct _AdgDimStyleClass AdgDimStyleClass
;
44 typedef struct _AdgDimStylePrivate AdgDimStylePrivate
;
51 AdgDimStylePrivate
*priv
;
54 struct _AdgDimStyleClass
56 AdgStyleClass parent_class
;
60 GType
adg_dim_style_get_type (void) G_GNUC_CONST
;
61 AdgStyle
* adg_dim_style_new (void);
62 AdgStyle
* adg_dim_style_from_id (AdgDimStyleId id
);
64 AdgStyle
* adg_dim_style_get_quote_style (AdgDimStyle
*dim_style
);
65 void adg_dim_style_set_quote_style (AdgDimStyle
*dim_style
,
67 AdgStyle
* adg_dim_style_get_tolerance_style
68 (AdgDimStyle
*dim_style
);
69 void adg_dim_style_set_tolerance_style
70 (AdgDimStyle
*dim_style
,
72 AdgStyle
* adg_dim_style_get_note_style (AdgDimStyle
*dim_style
);
73 void adg_dim_style_set_note_style (AdgDimStyle
*dim_style
,
75 AdgStyle
* adg_dim_style_get_line_style (AdgDimStyle
*dim_style
);
76 void adg_dim_style_set_line_style (AdgDimStyle
*dim_style
,
78 AdgStyle
* adg_dim_style_get_arrow_style (AdgDimStyle
*dim_style
);
79 void adg_dim_style_set_arrow_style (AdgDimStyle
*dim_style
,
80 AdgArrowStyle
*style
);
81 gdouble
adg_dim_style_get_from_offset (AdgDimStyle
*dim_style
);
82 void adg_dim_style_set_from_offset (AdgDimStyle
*dim_style
,
84 gdouble
adg_dim_style_get_to_offset (AdgDimStyle
*dim_style
);
85 void adg_dim_style_set_to_offset (AdgDimStyle
*dim_style
,
87 gdouble adg_dim_style_get_baseline_spacing
88 (AdgDimStyle
*dim_style
);
89 void adg_dim_style_set_baseline_spacing
90 (AdgDimStyle
*dim_style
,
92 gdouble adg_dim_style_get_tolerance_spacing
93 (AdgDimStyle
*dim_style
);
94 void adg_dim_style_set_tolerance_spacing
95 (AdgDimStyle
*dim_style
,
97 const AdgPair
* adg_dim_style_get_quote_shift (AdgDimStyle
*dim_style
);
98 void adg_dim_style_set_quote_shift (AdgDimStyle
*dim_style
,
99 const AdgPair
*shift
);
100 const AdgPair
* adg_dim_style_get_tolerance_shift
101 (AdgDimStyle
*dim_style
);
102 void adg_dim_style_set_tolerance_shift
103 (AdgDimStyle
*dim_style
,
104 const AdgPair
*shift
);
105 const AdgPair
* adg_dim_style_get_note_shift (AdgDimStyle
*dim_style
);
106 void adg_dim_style_set_note_shift (AdgDimStyle
*dim_style
,
107 const AdgPair
*shift
);
108 const gchar
* adg_dim_style_get_number_format (AdgDimStyle
*dim_style
);
109 void adg_dim_style_set_number_format (AdgDimStyle
*dim_style
,
110 const gchar
*format
);
111 const gchar
* adg_dim_style_get_number_tag (AdgDimStyle
*dim_style
);
112 void adg_dim_style_set_number_tag (AdgDimStyle
*dim_style
,
119 #endif /* __ADG_DIM_STYLE_H__ */