]> Pileus Git - ~andy/gtk/blob - gtk/gtkcellareaboxiter.h
Added most of the request code for GtkCellAreaBox
[~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
34 G_BEGIN_DECLS
35
36 #define GTK_TYPE_CELL_AREA_BOX_ITER               (gtk_cell_area_box_iter_get_type ())
37 #define GTK_CELL_AREA_BOX_ITER(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_AREA_BOX_ITER, GtkCellAreaBoxIter))
38 #define GTK_CELL_AREA_BOX_ITER_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_AREA_BOX_ITER, GtkCellAreaBoxIterClass))
39 #define GTK_IS_CELL_AREA_BOX_ITER(obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_AREA_BOX_ITER))
40 #define GTK_IS_CELL_AREA_BOX_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_AREA_BOX_ITER))
41 #define GTK_CELL_AREA_BOX_ITER_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_AREA_BOX_ITER, GtkCellAreaBoxIterClass))
42
43 typedef struct _GtkCellAreaBoxIter              GtkCellAreaBoxIter;
44 typedef struct _GtkCellAreaBoxIterClass         GtkCellAreaBoxIterClass;
45 typedef struct _GtkCellAreaBoxIterPrivate       GtkCellAreaBoxIterPrivate;
46
47 struct _GtkCellAreaBoxIter
48 {
49   GtkCellAreaIter parent_instance;
50
51   GtkCellAreaBoxIterPrivate *priv;
52 };
53
54 struct _GtkCellAreaBoxIterClass
55 {
56   GtkCellAreaIterClass parent_class;
57
58 };
59
60 GType   gtk_cell_area_box_iter_get_type               (void) G_GNUC_CONST;
61
62
63 /* Update cell alignments */
64 void    gtk_cell_area_box_iter_push_cell_width             (GtkCellAreaBoxIter *box_iter,
65                                                             GtkCellRenderer    *renderer,
66                                                             gint                minimum_width,
67                                                             gint                natural_width);
68
69 void    gtk_cell_area_box_iter_push_cell_height_for_width  (GtkCellAreaBoxIter *box_iter,
70                                                             GtkCellRenderer    *renderer,
71                                                             gint                for_width,
72                                                             gint                minimum_height,
73                                                             gint                natural_height);
74
75 void    gtk_cell_area_box_iter_push_cell_height            (GtkCellAreaBoxIter *box_iter,
76                                                             GtkCellRenderer    *renderer,
77                                                             gint                minimum_height,
78                                                             gint                natural_height);
79
80 void    gtk_cell_area_box_iter_push_cell_width_for_height  (GtkCellAreaBoxIter *box_iter,
81                                                             GtkCellRenderer    *renderer,
82                                                             gint                for_height,
83                                                             gint                minimum_width,
84                                                             gint                natural_width);
85
86 /* Fetch cell alignments */
87 void    gtk_cell_area_box_iter_get_cell_width              (GtkCellAreaBoxIter *box_iter,
88                                                             GtkCellRenderer    *renderer,
89                                                             gint               *minimum_width,
90                                                             gint               *natural_width);
91
92 void    gtk_cell_area_box_iter_get_cell_height_for_width   (GtkCellAreaBoxIter *box_iter,
93                                                             GtkCellRenderer    *renderer,
94                                                             gint                for_width,
95                                                             gint               *minimum_height,
96                                                             gint               *natural_height);
97
98 void    gtk_cell_area_box_iter_get_cell_height             (GtkCellAreaBoxIter *box_iter,
99                                                             GtkCellRenderer    *renderer,
100                                                             gint               *minimum_height,
101                                                             gint               *natural_height);
102
103 void    gtk_cell_area_box_iter_get_cell_width_for_height   (GtkCellAreaBoxIter *box_iter,
104                                                             GtkCellRenderer    *renderer,
105                                                             gint                for_height,
106                                                             gint               *minimum_width,
107                                                             gint               *natural_width);
108
109 G_END_DECLS
110
111 #endif /* __GTK_CELL_AREA_BOX_ITER_H__ */