]> Pileus Git - ~andy/gtk/blob - gtk/gtkcellareabox.h
e61494d6bbc221474eb743401cce7892724c620d
[~andy/gtk] / gtk / gtkcellareabox.h
1 /* gtkcellareabox.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_H__
29 #define __GTK_CELL_AREA_BOX_H__
30
31 #include <gtk/gtkcellarea.h>
32
33 G_BEGIN_DECLS
34
35 #define GTK_TYPE_CELL_AREA_BOX            (gtk_cell_area_box_get_type ())
36 #define GTK_CELL_AREA_BOX(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_AREA_BOX, GtkCellAreaBox))
37 #define GTK_CELL_AREA_BOX_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_AREA_BOX, GtkCellAreaBoxClass))
38 #define GTK_IS_CELL_AREA_BOX(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_AREA_BOX))
39 #define GTK_IS_CELL_AREA_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_AREA_BOX))
40 #define GTK_CELL_AREA_BOX_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_AREA_BOX, GtkCellAreaBoxClass))
41
42 typedef struct _GtkCellAreaBox              GtkCellAreaBox;
43 typedef struct _GtkCellAreaBoxClass         GtkCellAreaBoxClass;
44 typedef struct _GtkCellAreaBoxPrivate       GtkCellAreaBoxPrivate;
45
46 struct _GtkCellAreaBox
47 {
48   /*< private >*/
49   GtkCellArea parent_instance;
50
51   GtkCellAreaBoxPrivate *priv;
52 };
53
54 struct _GtkCellAreaBoxClass
55 {
56   /*< private >*/
57   GtkCellAreaClass parent_class;
58
59   /* Padding for future expansion */
60   void (*_gtk_reserved1) (void);
61   void (*_gtk_reserved2) (void);
62   void (*_gtk_reserved3) (void);
63   void (*_gtk_reserved4) (void);
64 };
65
66 GType        gtk_cell_area_box_get_type    (void) G_GNUC_CONST;
67
68 GtkCellArea *gtk_cell_area_box_new         (void);
69 void         gtk_cell_area_box_pack_start  (GtkCellAreaBox  *box,
70                                             GtkCellRenderer *renderer,
71                                             gboolean         expand,
72                                             gboolean         align,
73                                             gboolean         fixed);
74 void         gtk_cell_area_box_pack_end    (GtkCellAreaBox  *box,
75                                             GtkCellRenderer *renderer,
76                                             gboolean         expand,
77                                             gboolean         align,
78                                             gboolean         fixed);
79 gint         gtk_cell_area_box_get_spacing (GtkCellAreaBox  *box);
80 void         gtk_cell_area_box_set_spacing (GtkCellAreaBox  *box,
81                                             gint             spacing);
82
83 /* Private interaction with GtkCellAreaBoxContext */
84 gboolean    _gtk_cell_area_box_group_visible (GtkCellAreaBox  *box,
85                                               gint             group_idx);
86
87 G_END_DECLS
88
89 #endif /* __GTK_CELL_AREA_BOX_H__ */