Drag and drop autoscrolling: Libfm Reference Manual

## Drag and drop autoscrolling Drag and drop autoscrolling — Autoscroll when dragged out of widget. |

## Functions

void | fm_dnd_set_dest_auto_scroll ()
void | fm_dnd_unset_dest_auto_scroll ()

## Description

`include` : libfm/fm-gtk.h

## Functions

### fm_dnd_set_dest_auto_scroll ()

    void
    fm_dnd_set_dest_auto_scroll (GtkWidget *drag_dest_widget,
                                 GtkAdjustment *hadj,
                                 GtkAdjustment *vadj);

This function installs a "drag-motion" handler to the dest widget to support auto-scroll when the dragged item is near the margin of the destination widget. For example, when a user drags an item over the bottom of a GtkTreeView, the desired behavior should be to scroll up the content of the tree view and to expose the items below currently visible region. So the user can drop on them.

#### Parameters

drag_dest_widget | a drag destination widget |
hadj | horizontal GtkAdjustment |
vadj | vertical GtkAdjustment |

### fm_dnd_unset_dest_auto_scroll ()

    void
    fm_dnd_unset_dest_auto_scroll (GtkWidget *drag_dest_widget);

Unsets what has been done by `fm_dnd_set_dest_auto_scroll()`

#### Parameters

drag_dest_widget | drag destination widget. |