gtk-GtkTreeView-drag-and-drop     package:RGtk2     R Documentation

_G_t_k_T_r_e_e_V_i_e_w _d_r_a_g-_a_n_d-_d_r_o_p

_D_e_s_c_r_i_p_t_i_o_n:

     Interfaces for drag-and-drop support in GtkTreeView

_M_e_t_h_o_d_s _a_n_d _F_u_n_c_t_i_o_n_s:

     'gtkTreeDragSourceDragDataDelete(object, path)'
      'gtkTreeDragSourceDragDataGet(object, path)'
      'gtkTreeDragSourceRowDraggable(object, path)'
      'gtkTreeDragDestDragDataReceived(object, dest, selection.data)'
      'gtkTreeDragDestRowDropPossible(object, dest.path,
     selection.data)'
      'gtkTreeSetRowDragData(object, tree.model, path)'
      'gtkTreeGetRowDragData(object)'

_H_i_e_r_a_r_c_h_y:


     GInterface
        +----GtkTreeDragSource
     GInterface
        +----GtkTreeDragDest


_I_m_p_l_e_m_e_n_t_a_t_i_o_n_s:

     GtkTreeDragSource is implemented by 'GtkTreeModelFilter', 
     'GtkTreeModelSort',  'GtkTreeStore' and  'GtkListStore'.  
     GtkTreeDragDest is implemented by 'GtkTreeStore' and 
     'GtkListStore'.

_D_e_t_a_i_l_e_d _D_e_s_c_r_i_p_t_i_o_n:

     GTK+ supports Drag-and-Drop in tree views with a high-level and a
     low-level  API.

     The low-level API consists of the GTK+ DND API, augmented by some
     treeview  utility functions: 'gtkTreeViewSetDragDestRow',
     'gtkTreeViewGetDragDestRow', 'gtkTreeViewGetDestRowAtPos', 
     'gtkTreeViewCreateRowDragIcon', 'gtkTreeSetRowDragData' and
     'gtkTreeGetRowDragData'. This API leaves a lot of flexibility, but
     nothing is done automatically, and implementing advanced features
     like hover-to-open-rows or autoscrolling on top of this API is a
     lot of work.

     On the other hand, if you write to the high-level API, then all
     the  bookkeeping of rows is done for you, as well as things like
     hover-to-open  and auto-scroll, but your models have to implement
     the  'GtkTreeDragSource' and 'GtkTreeDragDest' interfaces.

_S_t_r_u_c_t_u_r_e_s:


     '_G_t_k_T_r_e_e_D_r_a_g_S_o_u_r_c_e' _undocumented _


     '_G_t_k_T_r_e_e_D_r_a_g_D_e_s_t' _undocumented _


_A_u_t_h_o_r(_s):

     Derived by RGtkGen from GTK+ documentation

_R_e_f_e_r_e_n_c_e_s:

     <URL:
     http://developer.gnome.org/doc/API/2.0/gtk/gtk-GtkTreeView-drag-and-drop.html>

