| 1 |
/* Copyright (C) 1998-2002 The gtkmm Development Team |
| 2 |
* |
| 3 |
* This library is free software; you can redistribute it and/or |
| 4 |
* modify it under the terms of the GNU Lesser General Public |
| 5 |
* License as published by the Free Software Foundation; either |
| 6 |
* version 2.1 of the License, or (at your option) any later version. |
| 7 |
* |
| 8 |
* This library is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
* Lesser General Public License for more details. |
| 12 |
* |
| 13 |
* You should have received a copy of the GNU Lesser General Public |
| 14 |
* License along with this library; if not, see <https://www.gnu.org/licenses/>. |
| 15 |
*/ |
| 16 |
|
| 17 |
#include <glibmm/interface.h> |
| 18 |
#include <gtkmm/treemodel.h> |
| 19 |
#include <gtkmm/selectiondata.h> |
| 20 |
_DEFS(gtkmm,gtk) |
| 21 |
_PINCLUDE(glibmm/private/interface_p.h) |
| 22 |
|
| 23 |
#ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 24 |
extern "C" |
| 25 |
{ |
| 26 |
typedef struct _GtkTreeDragDestIface GtkTreeDragDestIface; |
| 27 |
typedef struct _GtkSelectionData GtkSelectionData; |
| 28 |
} |
| 29 |
#endif /* DOXYGEN_SHOULD_SKIP_THIS */ |
| 30 |
|
| 31 |
|
| 32 |
namespace Gtk |
| 33 |
{ |
| 34 |
|
| 35 |
/** |
| 36 |
* @ingroup TreeView |
| 37 |
*/ |
| 38 |
class GTKMM_API TreeDragDest : public Glib::Interface |
| 39 |
{ |
| 40 |
_CLASS_INTERFACE(TreeDragDest, GtkTreeDragDest, GTK_TREE_DRAG_DEST, GtkTreeDragDestIface, , , GTKMM_API) |
| 41 |
|
| 42 |
public: |
| 43 |
|
| 44 |
_WRAP_METHOD(bool drag_data_received(const TreeModel::Path& dest, const SelectionData& selection_data), gtk_tree_drag_dest_drag_data_received) |
| 45 |
|
| 46 |
_WRAP_METHOD(bool row_drop_possible(const TreeModel::Path& dest_path, const SelectionData& selection_data) const, gtk_tree_drag_dest_row_drop_possible) |
| 47 |
|
| 48 |
protected: |
| 49 |
_WRAP_VFUNC(bool drag_data_received(const TreeModel::Path& dest, const SelectionData& selection_data), |
| 50 |
drag_data_received) |
| 51 |
|
| 52 |
_WRAP_VFUNC(bool row_drop_possible(const TreeModel::Path& dest, const SelectionData& selection_data) const, |
| 53 |
row_drop_possible) |
| 54 |
}; |
| 55 |
|
| 56 |
} // namespace Gtk |