]> Pileus Git - ~andy/gtk/blob - gtk/gtktoolpaletteprivate.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtktoolpaletteprivate.h
1 /* GtkToolPalette -- A tool palette with categories and DnD support
2  * Copyright (C) 2008  Openismus GmbH
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16  *
17  * Authors:
18  *      Mathias Hasselmann
19  */
20
21 #ifndef __GTK_TOOL_PALETTE_PRIVATE_H__
22 #define __GTK_TOOL_PALETTE_PRIVATE_H__
23
24 #include <gtk/gtk.h>
25
26 void _gtk_tool_palette_get_item_size           (GtkToolPalette   *palette,
27                                                 GtkRequisition   *item_size,
28                                                 gboolean          homogeneous_only,
29                                                 gint             *requested_rows);
30 void _gtk_tool_palette_child_set_drag_source   (GtkWidget        *widget,
31                                                 gpointer          data);
32 void _gtk_tool_palette_set_expanding_child     (GtkToolPalette   *palette,
33                                                 GtkWidget        *widget);
34
35 void _gtk_tool_item_group_palette_reconfigured (GtkToolItemGroup *group);
36 void _gtk_tool_item_group_item_size_request    (GtkToolItemGroup *group,
37                                                 GtkRequisition   *item_size,
38                                                 gboolean          homogeneous_only,
39                                                 gint             *requested_rows);
40 gint _gtk_tool_item_group_get_height_for_width (GtkToolItemGroup *group,
41                                                 gint              width);
42 gint _gtk_tool_item_group_get_width_for_height (GtkToolItemGroup *group,
43                                                 gint              height);
44 void _gtk_tool_item_group_paint                (GtkToolItemGroup *group,
45                                                 cairo_t          *cr);
46 gint _gtk_tool_item_group_get_size_for_limit   (GtkToolItemGroup *group,
47                                                 gint              limit,
48                                                 gboolean          vertical,
49                                                 gboolean          animation);
50
51
52 GtkSizeGroup *_gtk_tool_palette_get_size_group (GtkToolPalette   *palette);
53
54 #endif /* __GTK_TOOL_PALETTE_PRIVATE_H__ */