<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Gtk::TreeDragSource class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../index.html">Main Page</a> <a href="group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html"> Namespaces</a> <a href="../../tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- Generated by Doxygen 1.3-rc1 --> <h1>Gtk::TreeDragSource Class Reference<br> <small> [<a class="el" href="group__TreeView.html">TreeView Classes</a>]</small> </h1>Inheritance diagram for Gtk::TreeDragSource:<p><center><img src="classGtk_1_1TreeDragSource__inherit__graph.png" border="0" usemap="#Gtk_1_1TreeDragSource__inherit__map" alt="Inheritance graph"></center> <map name="Gtk_1_1TreeDragSource__inherit__map"> <area href="classGtk_1_1ListStore.html" shape="rect" coords="7,225,97,243" alt=""> <area href="classGtk_1_1TreeStore.html" shape="rect" coords="121,225,217,243" alt=""> <area href="classGlib_1_1Interface.html" shape="rect" coords="64,86,157,105" alt=""> <area href="classGlib_1_1ObjectBase.html" shape="rect" coords="56,17,165,35" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGtk_1_1TreeDragSource-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#a0">~TreeDragSource</a> ()</td></tr> <tr><td nowrap align=right valign=top>GtkTreeDragSource* </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#a1">gobj</a> ()</td></tr> <tr><td nowrap align=right valign=top>const GtkTreeDragSource* </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#a2">gobj</a> () const</td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#a3">row_draggable</a> (const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& path) const</td></tr> <tr><td> </td><td><font size=-1><em>Asks the Gtk::TreeDragSource whether a particular row can be used as the source of a DND operation.</em> <a href="#a3"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#a4">drag_data_get</a> (const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& path, <a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& selection_data)</td></tr> <tr><td> </td><td><font size=-1><em>Asks the Gtk::TreeDragSource to fill in <em>selection_data</em> with a representation of the row at <em>path</em> .</em> <a href="#a4"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#a5">drag_data_get</a> (const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& path, GtkSelectionData* selection_data)</td></tr> <tr><td> </td><td><font size=-1><em>Asks the Gtk::TreeDragSource to fill in <em>selection_data</em> with a representation of the row at <em>path</em> .</em> <a href="#a5"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#a6">drag_data_delete</a> (const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& path)</td></tr> <tr><td> </td><td><font size=-1><em>Asks the Gtk::TreeDragSource to delete the row at <em>path</em> , because it was moved somewhere else via drag-and-drop.</em> <a href="#a6"></a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#d0">add_interface</a> (GType gtype_implementer)</td></tr> <tr><td colspan=2><br><h2>Protected Methods</h2></td></tr> <tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#b0">row_draggable_vfunc</a> (const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& path)</td></tr> <tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#b1">drag_data_get_vfunc</a> (const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& path, GtkSelectionData* selection_data)</td></tr> <tr><td nowrap align=right valign=top>virtual bool </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#b2">drag_data_delete_vfunc</a> (const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& path)</td></tr> <tr><td colspan=2><br><h2>Related Functions</h2></td></tr> <tr><td colspan=2>(Note that these are not member functions.)<br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><Gtk::TreeDragSource> </td><td valign=bottom><a class="el" href="classGtk_1_1TreeDragSource.html#k0">wrap</a> (GtkTreeDragSource* object, bool take_copy=false)</td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Gtk::TreeDragSource::~TreeDragSource"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual Gtk::TreeDragSource::~TreeDragSource </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="d0" doxytag="Gtk::TreeDragSource::add_interface"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::TreeDragSource::add_interface </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GType </td> <td class="mdname1" valign="top" nowrap> <em>gtype_implementer</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a6" doxytag="Gtk::TreeDragSource::drag_data_delete"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Gtk::TreeDragSource::drag_data_delete </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& </td> <td class="mdname1" valign="top" nowrap> <em>path</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Asks the Gtk::TreeDragSource to delete the row at <em>path</em> , because it was moved somewhere else via drag-and-drop. <p> Returns <code>false</code> if the deletion fails because <em>path</em> no longer exists, or for some model-specific reason. Should robustly handle a <em>path</em> no longer found in the model! <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>path</em> </td><td>Row that was being dragged. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the row was successfully deleted. </dd></dl> </td> </tr> </table> <a name="b2" doxytag="Gtk::TreeDragSource::drag_data_delete_vfunc"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual bool Gtk::TreeDragSource::drag_data_delete_vfunc </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& </td> <td class="mdname1" valign="top" nowrap> <em>path</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a5" doxytag="Gtk::TreeDragSource::drag_data_get"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Gtk::TreeDragSource::drag_data_get </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& </td> <td class="mdname" nowrap> <em>path</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GtkSelectionData* </td> <td class="mdname" nowrap> <em>selection_data</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Asks the Gtk::TreeDragSource to fill in <em>selection_data</em> with a representation of the row at <em>path</em> . <p> <em>selection_data</em> ->target gives the required type of the data. Should robustly handle a <em>path</em> no longer found in the model! <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>path</em> </td><td>Row that was dragged. </td></tr> <tr><td valign=top><em>selection_data</em> </td><td>A <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> to fill with data from the dragged row. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if data of the required type was provided. </dd></dl> </td> </tr> </table> <a name="a4" doxytag="Gtk::TreeDragSource::drag_data_get"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Gtk::TreeDragSource::drag_data_get </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& </td> <td class="mdname" nowrap> <em>path</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classGtk_1_1SelectionData.html">SelectionData</a>& </td> <td class="mdname" nowrap> <em>selection_data</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Asks the Gtk::TreeDragSource to fill in <em>selection_data</em> with a representation of the row at <em>path</em> . <p> <em>selection_data</em> ->target gives the required type of the data. Should robustly handle a <em>path</em> no longer found in the model! <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>path</em> </td><td>Row that was dragged. </td></tr> <tr><td valign=top><em>selection_data</em> </td><td>A <a class="el" href="classGtk_1_1SelectionData.html">Gtk::SelectionData</a> to fill with data from the dragged row. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if data of the required type was provided. </dd></dl> </td> </tr> </table> <a name="b1" doxytag="Gtk::TreeDragSource::drag_data_get_vfunc"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual bool Gtk::TreeDragSource::drag_data_get_vfunc </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& </td> <td class="mdname" nowrap> <em>path</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GtkSelectionData* </td> <td class="mdname" nowrap> <em>selection_data</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [protected, virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a2" doxytag="Gtk::TreeDragSource::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const GtkTreeDragSource* Gtk::TreeDragSource::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGlib_1_1Interface.html#a4">Glib::Interface</a>. <p> Reimplemented in <a class="el" href="classGtk_1_1ListStore.html#a2">Gtk::ListStore</a>, and <a class="el" href="classGtk_1_1TreeStore.html#a2">Gtk::TreeStore</a>. </td> </tr> </table> <a name="a1" doxytag="Gtk::TreeDragSource::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GtkTreeDragSource* Gtk::TreeDragSource::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGlib_1_1Interface.html#a3">Glib::Interface</a>. <p> Reimplemented in <a class="el" href="classGtk_1_1ListStore.html#a1">Gtk::ListStore</a>, and <a class="el" href="classGtk_1_1TreeStore.html#a1">Gtk::TreeStore</a>. </td> </tr> </table> <a name="a3" doxytag="Gtk::TreeDragSource::row_draggable"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Gtk::TreeDragSource::row_draggable </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& </td> <td class="mdname1" valign="top" nowrap> <em>path</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Asks the Gtk::TreeDragSource whether a particular row can be used as the source of a DND operation. <p> If the source doesn't implement this interface, the row is assumed draggable. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>path</em> </td><td>Row on which user is initiating a drag. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the row can be dragged. </dd></dl> </td> </tr> </table> <a name="b0" doxytag="Gtk::TreeDragSource::row_draggable_vfunc"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual bool Gtk::TreeDragSource::row_draggable_vfunc </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGtk_1_1TreeModel.html#s4">TreeModel::Path</a>& </td> <td class="mdname1" valign="top" nowrap> <em>path</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Friends And Related Function Documentation</h2> <a name="k0" doxytag="Gtk::TreeDragSource::wrap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><Gtk::TreeDragSource> wrap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GtkTreeDragSource* </td> <td class="mdname" nowrap> <em>object</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>take_copy</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [related]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="treedragsource_8h.html">treedragsource.h</a></ul> <hr><address><small> Generated for gtkmm by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.3-rc1 © 1997-2001</small></address> </body> </html>