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, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
24 #ifndef __GTK_SIZE_REQUEST_H__
25 #define __GTK_SIZE_REQUEST_H__
27 #include <gtk/gtkwidget.h>
31 typedef struct _GtkRequestedSize GtkRequestedSize;
35 * @data: A client pointer
36 * @minimum_size: The minimum size needed for allocation in a given orientation
37 * @natural_size: The natural size for allocation in a given orientation
39 * Represents a request of a screen object in a given orientation. These
40 * are primarily used in container implementations when allocating a natural
41 * size for children calling. See gtk_distribute_natural_allocation().
43 struct _GtkRequestedSize
51 /* General convenience function to aid in allocating natural sizes */
52 gint gtk_distribute_natural_allocation (gint extra_space,
53 guint n_requested_sizes,
54 GtkRequestedSize *sizes);
59 #endif /* __GTK_SIZE_REQUEST_H__ */