s/2008,2009/2008,2009,2010/
[adg.git] / adg / adg-table-style.h
blob1d110a3d1762fa10afd4bbbcf6fa469b887d6f84
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_TABLE_STYLE_H__
27 #define __ADG_TABLE_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_TABLE_STYLE (adg_table_style_get_type())
38 #define ADG_TABLE_STYLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ADG_TYPE_TABLE_STYLE, AdgTableStyle))
39 #define ADG_TABLE_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ADG_TYPE_TABLE_STYLE, AdgTableStyleClass))
40 #define ADG_IS_TABLE_STYLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ADG_TYPE_TABLE_STYLE))
41 #define ADG_IS_TABLE_STYLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ADG_TYPE_TABLE_STYLE))
42 #define ADG_TABLE_STYLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ADG_TYPE_TABLE_STYLE, AdgTableStyleClass))
45 typedef struct _AdgTableStyle AdgTableStyle;
46 typedef struct _AdgTableStyleClass AdgTableStyleClass;
48 struct _AdgTableStyle {
49 /*< private >*/
50 AdgStyle parent;
51 gpointer data;
54 struct _AdgTableStyleClass {
55 /*< private >*/
56 AdgStyleClass parent_class;
60 GType adg_table_style_get_type (void) G_GNUC_CONST;
61 AdgStyle * adg_table_style_new (void);
63 void adg_table_style_set_color_dress (AdgTableStyle *table_style,
64 AdgDress dress);
65 AdgDress adg_table_style_get_color_dress (AdgTableStyle *table_style);
66 void adg_table_style_set_frame_dress (AdgTableStyle *table_style,
67 AdgDress dress);
68 AdgDress adg_table_style_get_frame_dress (AdgTableStyle *table_style);
69 void adg_table_style_set_grid_dress (AdgTableStyle *table_style,
70 AdgDress dress);
71 AdgDress adg_table_style_get_grid_dress (AdgTableStyle *table_style);
72 void adg_table_style_set_title_dress (AdgTableStyle *table_style,
73 AdgDress dress);
74 AdgDress adg_table_style_get_title_dress (AdgTableStyle *table_style);
75 void adg_table_style_set_value_dress (AdgTableStyle *table_style,
76 AdgDress dress);
77 AdgDress adg_table_style_get_value_dress (AdgTableStyle *table_style);
78 void adg_table_style_set_row_height (AdgTableStyle *table_style,
79 gdouble row_height);
80 gdouble adg_table_style_get_row_height (AdgTableStyle *table_style);
81 void adg_table_style_set_cell_padding(AdgTableStyle *table_style,
82 const AdgPair *cell_padding);
83 const AdgPair * adg_table_style_get_cell_padding(AdgTableStyle *table_style);
84 void adg_table_style_set_cell_spacing(AdgTableStyle *table_style,
85 const AdgPair *cell_spacing);
86 const AdgPair * adg_table_style_get_cell_spacing(AdgTableStyle *table_style);
88 G_END_DECLS
91 #endif /* __ADG_TABLE_STYLE_H__ */