]> Pileus Git - ~andy/gtk/blob - gtk/gtkcellareaboxiter.h
ada15a76666249e9306e9f39fca1c73083e51461
[~andy/gtk] / gtk / gtkcellareaboxiter.h
1 /* gtkcellareaboxiter.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 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
25 #error "Only <gtk/gtk.h> can be included directly."
26 #endif
27
28 #ifndef __GTK_CELL_AREA_BOX_ITER_H__
29 #define __GTK_CELL_AREA_BOX_ITER_H__
30
31 #include <gtk/gtkcellareaiter.h>
32 #include <gtk/gtkcellrenderer.h>
33 #include <gtk/gtksizerequest.h>
34
35 G_BEGIN_DECLS
36
37 #define GTK_TYPE_CELL_AREA_BOX_ITER               (gtk_cell_area_box_iter_get_type ())
38 #define GTK_CELL_AREA_BOX_ITER(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_AREA_BOX_ITER, GtkCellAreaBoxIter))
39 #define GTK_CELL_AREA_BOX_ITER_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_AREA_BOX_ITER, GtkCellAreaBoxIterClass))
40 #define GTK_IS_CELL_AREA_BOX_ITER(obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_AREA_BOX_ITER))
41 #define GTK_IS_CELL_AREA_BOX_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_AREA_BOX_ITER))
42 #define GTK_CELL_AREA_BOX_ITER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_AREA_BOX_ITER, GtkCellAreaBoxIterClass))
43
44 typedef struct _GtkCellAreaBoxIter              GtkCellAreaBoxIter;
45 typedef struct _GtkCellAreaBoxIterClass         GtkCellAreaBoxIterClass;
46 typedef struct _GtkCellAreaBoxIterPrivate       GtkCellAreaBoxIterPrivate;
47
48 struct _GtkCellAreaBoxIter
49 {
50   GtkCellAreaIter parent_instance;
51
52   GtkCellAreaBoxIterPrivate *priv;
53 };
54
55 struct _GtkCellAreaBoxIterClass
56 {
57   GtkCellAreaIterClass parent_class;
58
59 };
60
61 GType   gtk_cell_area_box_iter_get_type                     (void) G_GNUC_CONST;
62
63
64 /* Update cell-group sizes */
65 void    gtk_cell_area_box_iter_push_group_width             (GtkCellAreaBoxIter *box_iter,
66                                                              gint                group_id,
67                                                              gint                minimum_width,
68                                                              gint                natural_width);
69
70 void    gtk_cell_area_box_iter_push_group_height_for_width  (GtkCellAreaBoxIter *box_iter,
71                                                              gint                group_id,
72                                                              gint                for_width,
73                                                              gint                minimum_height,
74                                                              gint                natural_height);
75
76 void    gtk_cell_area_box_iter_push_group_height            (GtkCellAreaBoxIter *box_iter,
77                                                              gint                group_id,
78                                                              gint                minimum_height,
79                                                              gint                natural_height);
80
81 void    gtk_cell_area_box_iter_push_group_width_for_height  (GtkCellAreaBoxIter *box_iter,
82                                                              gint                group_id,
83                                                              gint                for_height,
84                                                              gint                minimum_width,
85                                                              gint                natural_width);
86
87 /* Fetch cell-group sizes */
88 void    gtk_cell_area_box_iter_get_group_width              (GtkCellAreaBoxIter *box_iter,
89                                                              gint                group_id,
90                                                              gint               *minimum_width,
91                                                              gint               *natural_width);
92
93 void    gtk_cell_area_box_iter_get_group_height_for_width   (GtkCellAreaBoxIter *box_iter,
94                                                              gint                group_id,
95                                                              gint                for_width,
96                                                              gint               *minimum_height,
97                                                              gint               *natural_height);
98
99 void    gtk_cell_area_box_iter_get_group_height             (GtkCellAreaBoxIter *box_iter,
100                                                              gint                group_id,
101                                                              gint               *minimum_height,
102                                                              gint               *natural_height);
103
104 void    gtk_cell_area_box_iter_get_group_width_for_height   (GtkCellAreaBoxIter *box_iter,
105                                                              gint                group_id,
106                                                              gint                for_height,
107                                                              gint               *minimum_width,
108                                                              gint               *natural_width);
109
110 GtkRequestedSize *gtk_cell_area_box_iter_get_widths         (GtkCellAreaBoxIter *box_iter,
111                                                              gint               *n_widths);
112 GtkRequestedSize *gtk_cell_area_box_iter_get_heights        (GtkCellAreaBoxIter *box_iter,
113                                                              gint               *n_heights);
114
115 G_END_DECLS
116
117 #endif /* __GTK_CELL_AREA_BOX_ITER_H__ */