[AdgDim] Removed "note" property
[adg.git] / adg / adg-dim.h
blobe0145eb02ea7f7decf392fab05f43a7584b2db41
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_H__
22 #define __ADG_DIM_H__
24 #include <adg/adg-entity.h>
25 #include <adg/adg-pair.h>
26 #include <adg/adg-enums.h>
29 G_BEGIN_DECLS
31 #define ADG_TYPE_DIM (adg_dim_get_type())
32 #define ADG_DIM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ADG_TYPE_DIM, AdgDim))
33 #define ADG_DIM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ADG_TYPE_DIM, AdgDimClass))
34 #define ADG_IS_DIM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ADG_TYPE_DIM))
35 #define ADG_IS_DIM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ADG_TYPE_DIM))
36 #define ADG_DIM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ADG_TYPE_DIM, AdgDimClass))
38 typedef struct _AdgDim AdgDim;
39 typedef struct _AdgDimClass AdgDimClass;
41 struct _AdgDim {
42 /*< private >*/
43 AdgEntity parent;
44 gpointer data;
47 struct _AdgDimClass {
48 /*< private >*/
49 AdgEntityClass parent_class;
50 /*< public >*/
51 /* Virtual Table */
52 gchar * (*default_value) (AdgDim *dim);
53 void (*quote_layout) (AdgDim *dim,
54 cairo_t *cr);
58 GType adg_dim_get_type (void) G_GNUC_CONST;
59 AdgDress adg_dim_get_dress (AdgDim *dim);
60 void adg_dim_set_dress (AdgDim *dim,
61 AdgDress dress);
62 const AdgPair * adg_dim_get_org (AdgDim *dim);
63 void adg_dim_set_org (AdgDim *dim,
64 const AdgPair *org);
65 void adg_dim_set_org_explicit (AdgDim *dim,
66 gdouble org_x,
67 gdouble org_y);
68 gdouble adg_dim_get_angle (AdgDim *dim);
69 void adg_dim_set_angle (AdgDim *dim,
70 gdouble angle);
71 const AdgPair * adg_dim_get_ref1 (AdgDim *dim);
72 const AdgPair * adg_dim_get_ref2 (AdgDim *dim);
73 void adg_dim_set_ref (AdgDim *dim,
74 const AdgPair *ref1,
75 const AdgPair *ref2);
76 void adg_dim_set_ref_explicit (AdgDim *dim,
77 gdouble ref1_x,
78 gdouble ref1_y,
79 gdouble ref2_x,
80 gdouble ref2_y);
81 const AdgPair * adg_dim_get_pos1 (AdgDim *dim);
82 const AdgPair * adg_dim_get_pos2 (AdgDim *dim);
83 void adg_dim_set_pos (AdgDim *dim,
84 AdgPair *pos1,
85 AdgPair *pos2);
86 void adg_dim_set_pos_explicit (AdgDim *dim,
87 gdouble pos1_x,
88 gdouble pos1_y,
89 gdouble pos2_x,
90 gdouble pos2_y);
91 gdouble adg_dim_get_level (AdgDim *dim);
92 void adg_dim_set_level (AdgDim *dim,
93 gdouble level);
94 AdgThreeState adg_dim_get_outside (AdgDim *dim);
95 void adg_dim_set_outside (AdgDim *dim,
96 AdgThreeState outside);
97 const gchar * adg_dim_get_value (AdgDim *dim);
98 void adg_dim_set_value (AdgDim *dim,
99 const gchar *value);
100 const gchar * adg_dim_get_value_min (AdgDim *dim);
101 void adg_dim_set_value_min (AdgDim *dim,
102 const gchar *value_min);
103 const gchar * adg_dim_get_value_max (AdgDim *dim);
104 void adg_dim_set_value_max (AdgDim *dim,
105 const gchar *value_max);
106 void adg_dim_set_tolerances (AdgDim *dim,
107 const gchar *value_min,
108 const gchar *value_max);
109 void adg_dim_render_quote (AdgDim *dim,
110 cairo_t *cr);
112 G_END_DECLS
115 #endif /* __ADG_DIM_H__ */