Initial packaging to sync OBS with git/gerrit
[profile/ivi/gtk3.git] / 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, see <http://www.gnu.org/licenses/>.
17  */
18
19 #ifndef __GTK_SIZE_GROUP_PRIVATE_H__
20 #define __GTK_SIZE_GROUP_PRIVATE_H__
21
22 #include <gtk/gtksizegroup.h>
23
24 /**
25  * GtkQueueResizeFlags:
26  * @GTK_QUEUE_RESIZE_INVALIDATE_ONLY: invalidate all cached sizes
27  *  as we would normally do when a widget is queued for resize,
28  *  but don't actually add the toplevel resize container to the
29  *  resize queue. Useful if we want to change the size of a widget
30  *  see how that would affect the overall layout, then restore
31  *  the old size.
32  *
33  * Flags that affect the operation of queueing a widget for resize.
34  */
35 typedef enum
36 {
37   GTK_QUEUE_RESIZE_INVALIDATE_ONLY = 1 << 0
38 } GtkQueueResizeFlags;
39
40 void _gtk_size_group_bump_requisition (GtkWidget           *widget,
41                                        GtkSizeGroupMode     mode,
42                                        gint                *minimum,
43                                        gint                *natural);
44 void _gtk_size_group_queue_resize     (GtkWidget           *widget,
45                                        GtkQueueResizeFlags  flags);
46
47 #endif /* __GTK_SIZE_GROUP_PRIVATE_H__ */