]> Pileus Git - ~andy/gtk/blob - tests/cellareascaffold.h
iconview: Redo size requests
[~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, see <http://www.gnu.org/licenses/>.
20  */
21
22 #ifndef __CELL_AREA_SCAFFOLD_H__
23 #define __CELL_AREA_SCAFFOLD_H__
24
25 #include <gtk/gtk.h>
26
27
28 G_BEGIN_DECLS
29
30 #define TYPE_CELL_AREA_SCAFFOLD            (cell_area_scaffold_get_type ())
31 #define CELL_AREA_SCAFFOLD(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CELL_AREA_SCAFFOLD, CellAreaScaffold))
32 #define CELL_AREA_SCAFFOLD_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CELL_AREA_SCAFFOLD, CellAreaScaffoldClass))
33 #define IS_CELL_AREA_SCAFFOLD(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CELL_AREA_SCAFFOLD))
34 #define IS_CELL_AREA_SCAFFOLD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CELL_AREA_SCAFFOLD))
35 #define CELL_AREA_SCAFFOLD_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CELL_AREA_SCAFFOLD, CellAreaScaffoldClass))
36
37
38 typedef struct _CellAreaScaffold         CellAreaScaffold;
39 typedef struct _CellAreaScaffoldClass    CellAreaScaffoldClass;
40 typedef struct _CellAreaScaffoldPrivate  CellAreaScaffoldPrivate;
41
42 struct _CellAreaScaffold
43 {
44   GtkContainer widget;
45
46   CellAreaScaffoldPrivate *priv;
47 };
48
49 struct _CellAreaScaffoldClass
50 {
51   GtkContainerClass parent_class;
52
53   void  (* activate) (CellAreaScaffold *scaffold);
54 };
55
56
57 GType         cell_area_scaffold_get_type              (void) G_GNUC_CONST;
58 GtkWidget    *cell_area_scaffold_new                   (void);
59
60 GtkCellArea  *cell_area_scaffold_get_area              (CellAreaScaffold *scaffold);
61 void          cell_area_scaffold_set_model             (CellAreaScaffold *scaffold,
62                                                         GtkTreeModel     *model);
63 GtkTreeModel *cell_area_scaffold_get_model             (CellAreaScaffold *scaffold);
64
65 void          cell_area_scaffold_set_row_spacing       (CellAreaScaffold *scaffold,
66                                                         gint              spacing);
67 gint          cell_area_scaffold_get_row_spacing       (CellAreaScaffold *scaffold);
68
69 void          cell_area_scaffold_set_indentation       (CellAreaScaffold *scaffold,
70                                                         gint              indent);
71 gint          cell_area_scaffold_get_indentation       (CellAreaScaffold *scaffold);
72
73
74
75 G_END_DECLS
76
77 #endif /* __CELL_AREA_SCAFFOLD_H__ */