]> Pileus Git - ~andy/gtk/blob - gtk/gtksizegroup-private.h
3f80d3fd7bdaa2f3ed688570947d46f1a610b09a
[~andy/gtk] / gtk / gtksizegroup-private.h
1 /* GTK - The GIMP Toolkit
2  * gtksizegroup-private.h:
3  * Copyright (C) 2000-2010 Red Hat Software
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 #ifndef __GTK_SIZE_GROUP_PRIVATE_H__
22 #define __GTK_SIZE_GROUP_PRIVATE_H__
23
24 #include <gtk/gtksizegroup.h>
25
26 /**
27  * GtkQueueResizeFlags:
28  * @GTK_QUEUE_RESIZE_INVALIDATE_ONLY: invalidate all cached sizes
29  *  as we would normally do when a widget is queued for resize,
30  *  but don't actually add the toplevel resize container to the
31  *  resize queue. Useful if we want to change the size of a widget
32  *  see how that would affect the overall layout, then restore
33  *  the old size.
34  *
35  * Flags that affect the operation of queueing a widget for resize.
36  */
37 typedef enum
38 {
39   GTK_QUEUE_RESIZE_INVALIDATE_ONLY = 1 << 0
40 } GtkQueueResizeFlags;
41
42 void _gtk_size_group_bump_requisition (GtkWidget           *widget,
43                                        GtkSizeGroupMode     mode,
44                                        gint                *minimum,
45                                        gint                *natural);
46 void _gtk_size_group_queue_resize     (GtkWidget           *widget,
47                                        GtkQueueResizeFlags  flags);
48
49 #endif /* __GTK_SIZE_GROUP_PRIVATE_H__ */