## FmDndDest

FmDndDest

## Synopsis

    struct              FmDndDestClass;
    gboolean            fm_dnd_dest_drag_data_received      (FmDndDest *dd,
                                                             GdkDragContext *drag_context,
                                                             gint x,
                                                             gint y,
                                                             GtkSelectionData *sel_data,
                                                             guint info,
                                                             guint time);
    gboolean            fm_dnd_dest_drag_drop               (FmDndDest *dd,
                                                             GdkDragContext *drag_context,
                                                             GdkAtom target,
                                                             int x,
                                                             int y,
                                                             guint time);
    void                fm_dnd_dest_drag_leave              (FmDndDest *dd,
                                                             GdkDragContext *drag_context,
                                                             guint time);
    GdkAtom             fm_dnd_dest_find_target             (FmDndDest *dd,
                                                             GdkDragContext *drag_context);
    GdkDragAction       fm_dnd_dest_get_default_action      (FmDndDest *dd,
                                                             GdkDragContext *drag_context,
                                                             GdkTarget target);
    FmFileInfo *        fm_dnd_dest_get_dest_file           (FmDndDest *dd);
    FmPath *            fm_dnd_dest_get_dest_path           (FmDndDest *dd);
    FmList *            fm_dnd_dest_get_src_files           (FmDndDest *dd);
    gboolean            fm_dnd_dest_is_target_supported     (FmDndDest *dd,
                                                             GdkAtom target);
    FmDndDest *         fm_dnd_dest_new                     (GtkWidget *w);
    void                fm_dnd_dest_set_dest_file           (FmDndDest *dd,
                                                             FmFileInfo *dest_file);
    void                fm_dnd_dest_set_widget              (FmDndDest *dd,
                                                             GtkWidget *w);
    #define             fm_drag_context_has_target          (ctx,
                                                             target)
    #define             fm_drag_context_has_target_name     (ctx,
                                                             name)

## Description

## Details

### struct FmDndDestClass

    struct FmDndDestClass {
        GObjectClass parent_class;
        gboolean (*files_dropped)(FmDndDest* dd, int x, int y, guint action, guint info_type, FmFileInfoList* files);
    };

### fm_dnd_dest_drag_data_received ()

    gboolean            fm_dnd_dest_drag_data_received      (FmDndDest *dd,
                                                             GdkDragContext *drag_context,
                                                             gint x,
                                                             gint y,
                                                             GtkSelectionData *sel_data,
                                                             guint info,
                                                             guint time);

### fm_dnd_dest_drag_drop ()

    gboolean            fm_dnd_dest_drag_drop               (FmDndDest *dd,
                                                             GdkDragContext *drag_context,
                                                             GdkAtom target,
                                                             int x,
                                                             int y,
                                                             guint time);

### fm_dnd_dest_drag_leave ()

    void                fm_dnd_dest_drag_leave              (FmDndDest *dd,
                                                             GdkDragContext *drag_context,
                                                             guint time);

### fm_dnd_dest_find_target ()

    GdkAtom             fm_dnd_dest_find_target             (FmDndDest *dd,
                                                             GdkDragContext *drag_context);

### fm_dnd_dest_get_default_action ()

    GdkDragAction       fm_dnd_dest_get_default_action      (FmDndDest *dd,
                                                             GdkDragContext *drag_context,
                                                             GdkTarget target);

Returns : | the default action to take for the dragged files.

### fm_dnd_dest_get_dest_file ()

    FmFileInfo *        fm_dnd_dest_get_dest_file           (FmDndDest *dd);

### fm_dnd_dest_get_dest_path ()

    FmPath *            fm_dnd_dest_get_dest_path           (FmDndDest *dd);

### fm_dnd_dest_get_src_files ()

    FmList *            fm_dnd_dest_get_src_files           (FmDndDest *dd);

### fm_dnd_dest_is_target_supported ()

    gboolean            fm_dnd_dest_is_target_supported     (FmDndDest *dd,
                                                             GdkAtom target);

### fm_dnd_dest_new ()

    FmDndDest *         fm_dnd_dest_new                     (GtkWidget *w);

### fm_dnd_dest_set_dest_file ()

    void                fm_dnd_dest_set_dest_file           (FmDndDest *dd,
                                                             FmFileInfo *dest_file);

### fm_dnd_dest_set_widget ()

    void                fm_dnd_dest_set_widget              (FmDndDest *dd,
                                                             GtkWidget *w);

### fm_drag_context_has_target()

    #define             fm_drag_context_has_target(ctx, target)

### fm_drag_context_has_target_name()

    #define             fm_drag_context_has_target_name(ctx, name)