| libfm Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
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)
struct FmDndDestClass {
GObjectClass parent_class;
gboolean (*files_dropped)(FmDndDest* dd, int x, int y, guint action, guint info_type, FmFileInfoList* files);
};
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);
Returns : |
the default action to take for the dragged files. |
gboolean fm_dnd_dest_is_target_supported (FmDndDest *dd,GdkAtom target);