]> Pileus Git - ~andy/gtk/blob - gtk/gtksizerequest.h
Strip "Custom." prefix when getting default options from cups.
[~andy/gtk] / gtk / gtksizerequest.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2007-2010 Openismus GmbH
3  *
4  * Authors:
5  *      Mathias Hasselmann <mathias@openismus.com>
6  *      Tristan Van Berkom <tristan.van.berkom@gmail.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 #ifndef __GTK_SIZE_REQUEST_H__
25 #define __GTK_SIZE_REQUEST_H__
26
27 #include <gtk/gtkwidget.h>
28
29 G_BEGIN_DECLS
30
31 typedef struct _GtkRequestedSize         GtkRequestedSize;
32
33 /**
34  * 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
38  *
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().
42  */
43 struct _GtkRequestedSize
44 {
45   gpointer data;
46   gint     minimum_size;
47   gint     natural_size;
48 };
49
50
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);
55
56
57 G_END_DECLS
58
59 #endif /* __GTK_SIZE_REQUEST_H__ */