1 #ifndef _GTKMM_TREEVIEW_PRIVATE_H
2 #define _GTKMM_TREEVIEW_PRIVATE_H
8 * Copyright(C) 2001-2002 The gtkmm Development Team
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or(at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this library; if not, write to the Free
22 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 #include <gtkmm/treeviewcolumn.h>
26 #include <gtkmm/treeview.h>
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
32 namespace TreeView_Private
35 //This Signal Proxy allows the C++ coder to specify a sigc::slot instead of a static function.
36 class SignalProxy_CellData
39 typedef TreeViewColumn::SlotCellData SlotType;
41 SignalProxy_CellData(const SlotType& slot);
42 ~SignalProxy_CellData();
44 static void gtk_callback(GtkTreeViewColumn*, GtkCellRenderer* cell,
45 GtkTreeModel* model, GtkTreeIter* iter, void* data);
46 static void gtk_callback_destroy(void* data);
52 //SignalProxy_RowSeparator:
54 //This Signal Proxy allows the C++ coder to specify a sigc::slot instead of a static function.
55 class SignalProxy_RowSeparator
58 typedef TreeView::SlotRowSeparator SlotType;
60 SignalProxy_RowSeparator(const SlotType& slot);
61 ~SignalProxy_RowSeparator();
63 static gboolean gtk_callback(GtkTreeModel* model, GtkTreeIter* iter, void* data);
64 static void gtk_callback_destroy(void* data);
71 } /* namespace TreeView_Private */
72 #endif //DOXYGEN_SHOULD_SKIP_THIS
77 #endif /* _GTKMM_TREEVIEW_PRIVATE_H */