1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 2007-2010 Openismus GmbH
5 * Mathias Hasselmann <mathias@openismus.com>
6 * Tristan Van Berkom <tristan.van.berkom@gmail.com>
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.
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.
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/>.
22 #ifndef __GTK_SIZE_REQUEST_H__
23 #define __GTK_SIZE_REQUEST_H__
25 #include <gtk/gtkwidget.h>
29 typedef struct _GtkRequestedSize GtkRequestedSize;
33 * @data: A client pointer
34 * @minimum_size: The minimum size needed for allocation in a given orientation
35 * @natural_size: The natural size for allocation in a given orientation
37 * Represents a request of a screen object in a given orientation. These
38 * are primarily used in container implementations when allocating a natural
39 * size for children calling. See gtk_distribute_natural_allocation().
41 struct _GtkRequestedSize
49 /* General convenience function to aid in allocating natural sizes */
50 gint gtk_distribute_natural_allocation (gint extra_space,
51 guint n_requested_sizes,
52 GtkRequestedSize *sizes);
57 #endif /* __GTK_SIZE_REQUEST_H__ */