]> Pileus Git - ~andy/gtk/blob - gtk/gtkgrid.h
Fix gtk-doc markup: /* <private> */ should be /*< private >*/
[~andy/gtk] / gtk / gtkgrid.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2010 Red Hat, Inc.
3  * Author: Matthias Clasen
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
22 #error "Only <gtk/gtk.h> can be included directly."
23 #endif
24
25 #ifndef __GTK_GRID_H__
26 #define __GTK_GRID_H__
27
28
29 #include <gtk/gtkcontainer.h>
30
31
32 G_BEGIN_DECLS
33
34 #define GTK_TYPE_GRID                   (gtk_grid_get_type ())
35 #define GTK_GRID(obj)                   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_GRID, GtkGrid))
36 #define GTK_GRID_CLASS(klass)           (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_GRID, GtkGridClass))
37 #define GTK_IS_GRID(obj)                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_GRID))
38 #define GTK_IS_GRID_CLASS(klass)        (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_GRID))
39 #define GTK_GRID_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_GRID, GtkGridClass))
40
41
42 typedef struct _GtkGrid              GtkGrid;
43 typedef struct _GtkGridPrivate       GtkGridPrivate;
44 typedef struct _GtkGridClass         GtkGridClass;
45
46 struct _GtkGrid
47 {
48   /*< private >*/
49   GtkContainer container;
50
51   GtkGridPrivate *priv;
52 };
53
54 struct _GtkGridClass
55 {
56   GtkContainerClass parent_class;
57
58   void (*_gtk_reserved1) (void);
59   void (*_gtk_reserved2) (void);
60   void (*_gtk_reserved3) (void);
61   void (*_gtk_reserved4) (void);
62   void (*_gtk_reserved5) (void);
63   void (*_gtk_reserved6) (void);
64   void (*_gtk_reserved7) (void);
65   void (*_gtk_reserved8) (void);
66 };
67
68 GType      gtk_grid_get_type               (void) G_GNUC_CONST;
69 GtkWidget* gtk_grid_new                    (void);
70 void       gtk_grid_attach                 (GtkGrid         *grid,
71                                             GtkWidget       *child,
72                                             gint             left,
73                                             gint             top,
74                                             gint             width,
75                                             gint             height);
76 void       gtk_grid_attach_next_to         (GtkGrid         *grid,
77                                             GtkWidget       *child,
78                                             GtkWidget       *sibling,
79                                             GtkPositionType  side,
80                                             gint             width,
81                                             gint             height);
82 void       gtk_grid_set_row_homogeneous    (GtkGrid         *grid,
83                                             gboolean         homogeneous);
84 gboolean   gtk_grid_get_row_homogeneous    (GtkGrid         *grid);
85 void       gtk_grid_set_row_spacing        (GtkGrid         *grid,
86                                             guint            spacing);
87 guint      gtk_grid_get_row_spacing        (GtkGrid         *grid);
88 void       gtk_grid_set_column_homogeneous (GtkGrid         *grid,
89                                             gboolean         homogeneous);
90 gboolean   gtk_grid_get_column_homogeneous (GtkGrid         *grid);
91 void       gtk_grid_set_column_spacing     (GtkGrid         *grid,
92                                             guint            spacing);
93 guint      gtk_grid_get_column_spacing     (GtkGrid         *grid);
94
95
96 G_END_DECLS
97
98 #endif /* __GTK_GRID_H__ */