]> Pileus Git - ~andy/gtk/blob - gtk/gtktoolpaletteprivate.h
Merge branch 'master' into toolpalette
[~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, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  *
18  * Authors:
19  *      Mathias Hasselmann
20  */
21
22 #ifndef __GTK_TOOL_PALETTE_PRIVATE_H__
23 #define __GTK_TOOL_PALETTE_PRIVATE_H__
24
25 #include <gtk/gtk.h>
26
27 void _gtk_tool_palette_get_item_size           (GtkToolPalette   *palette,
28                                                 GtkRequisition   *item_size,
29                                                 gboolean          homogeneous_only,
30                                                 gint             *requested_rows);
31 void _gtk_tool_palette_child_set_drag_source   (GtkWidget        *widget,
32                                                 gpointer          data);
33 void _gtk_tool_palette_set_expanding_child     (GtkToolPalette   *palette,
34                                                 GtkWidget        *widget);
35
36 void _gtk_tool_item_group_palette_reconfigured (GtkToolItemGroup *group);
37 void _gtk_tool_item_group_item_size_request    (GtkToolItemGroup *group,
38                                                 GtkRequisition   *item_size,
39                                                 gboolean          homogeneous_only,
40                                                 gint             *requested_rows);
41 gint _gtk_tool_item_group_get_height_for_width (GtkToolItemGroup *group,
42                                                 gint              width);
43 gint _gtk_tool_item_group_get_width_for_height (GtkToolItemGroup *group,
44                                                 gint              height);
45 void _gtk_tool_item_group_paint                (GtkToolItemGroup *group,
46                                                 cairo_t          *cr);
47 gint _gtk_tool_item_group_get_size_for_limit   (GtkToolItemGroup *group,
48                                                 gint              limit,
49                                                 gboolean          vertical,
50                                                 gboolean          animation);
51
52
53 GtkSizeGroup *_gtk_tool_palette_get_size_group (GtkToolPalette   *palette);
54
55 #endif /* __GTK_TOOL_PALETTE_PRIVATE_H__ */