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 G_BEGIN_DECLS 27 28 void _gtk_tool_palette_get_item_size (GtkToolPalette *palette, 29 GtkRequisition *item_size, 30 gboolean homogeneous_only, 31 gint *requested_rows); 32 void _gtk_tool_palette_child_set_drag_source (GtkWidget *widget, 33 gpointer data); 34 void _gtk_tool_palette_set_expanding_child (GtkToolPalette *palette, 35 GtkWidget *widget); 36 37 void _gtk_tool_item_group_palette_reconfigured (GtkToolItemGroup *group); 38 void _gtk_tool_item_group_item_size_request (GtkToolItemGroup *group, 39 GtkRequisition *item_size, 40 gboolean homogeneous_only, 41 gint *requested_rows); 42 gint _gtk_tool_item_group_get_height_for_width (GtkToolItemGroup *group, 43 gint width); 44 gint _gtk_tool_item_group_get_width_for_height (GtkToolItemGroup *group, 45 gint height); 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 G_END_DECLS 55 56 #endif /* __GTK_TOOL_PALETTE_PRIVATE_H__ */ 57