]> Pileus Git - ~andy/gtk/blob - tests/cellareascaffold.h
cdc7b254c99eba336d16d95ca3ff59f22954372a
[~andy/gtk] / tests / cellareascaffold.h
1 /* cellareascaffold.h
2  *
3  * Copyright (C) 2010 Openismus GmbH
4  *
5  * Authors:
6  *      Tristan Van Berkom <tristanvb@openismus.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23
24 #ifndef __CELL_AREA_SCAFFOLD_H__
25 #define __CELL_AREA_SCAFFOLD_H__
26
27 #include <gtk/gtk.h>
28
29
30 G_BEGIN_DECLS
31
32 #define TYPE_CELL_AREA_SCAFFOLD            (cell_area_scaffold_get_type ())
33 #define CELL_AREA_SCAFFOLD(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CELL_AREA_SCAFFOLD, CellAreaScaffold))
34 #define CELL_AREA_SCAFFOLD_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CELL_AREA_SCAFFOLD, CellAreaScaffoldClass))
35 #define IS_CELL_AREA_SCAFFOLD(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CELL_AREA_SCAFFOLD))
36 #define IS_CELL_AREA_SCAFFOLD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CELL_AREA_SCAFFOLD))
37 #define CELL_AREA_SCAFFOLD_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CELL_AREA_SCAFFOLD, CellAreaScaffoldClass))
38
39
40 typedef struct _CellAreaScaffold         CellAreaScaffold;
41 typedef struct _CellAreaScaffoldClass    CellAreaScaffoldClass;
42 typedef struct _CellAreaScaffoldPrivate  CellAreaScaffoldPrivate;
43
44 struct _CellAreaScaffold
45 {
46   GtkContainer widget;
47
48   CellAreaScaffoldPrivate *priv;
49 };
50
51 struct _CellAreaScaffoldClass
52 {
53   GtkContainerClass parent_class;
54
55   void  (* activate) (CellAreaScaffold *scaffold);
56 };
57
58
59 GType         cell_area_scaffold_get_type              (void) G_GNUC_CONST;
60 GtkWidget    *cell_area_scaffold_new                   (void);
61
62 GtkCellArea  *cell_area_scaffold_get_area              (CellAreaScaffold *scaffold);
63 void          cell_area_scaffold_set_model             (CellAreaScaffold *scaffold,
64                                                         GtkTreeModel     *model);
65 GtkTreeModel *cell_area_scaffold_get_model             (CellAreaScaffold *scaffold);
66
67 void          cell_area_scaffold_set_row_spacing       (CellAreaScaffold *scaffold,
68                                                         gint              spacing);
69 gint          cell_area_scaffold_get_row_spacing       (CellAreaScaffold *scaffold);
70
71 void          cell_area_scaffold_set_indentation       (CellAreaScaffold *scaffold,
72                                                         gint              indent);
73 gint          cell_area_scaffold_get_indentation       (CellAreaScaffold *scaffold);
74
75
76
77 G_END_DECLS
78
79 #endif /* __CELL_AREA_SCAFFOLD_H__ */