FmDndDest

FmDndDest

Synopsis

                    FmDndDest;
                    FmDndDestClass;
FmDndDest*          fm_dnd_dest_new                     (GtkWidget *w);
void                fm_dnd_dest_set_widget              (FmDndDest *dd,
                                                         GtkWidget *w);
FmList*             fm_dnd_dest_get_src_files           (FmDndDest *dd);
void                fm_dnd_dest_set_dest_file           (FmDndDest *dd,
                                                         FmFileInfo *dest_file);
FmFileInfo*         fm_dnd_dest_get_dest_file           (FmDndDest *dd);
FmPath*             fm_dnd_dest_get_dest_path           (FmDndDest *dd);
#define             fm_drag_context_has_target          (ctx,
                                                         target)
#define             fm_drag_context_has_target_name     (ctx,
                                                         name)
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_is_target_supported     (FmDndDest *dd,
                                                         GdkAtom target);
GdkAtom             fm_dnd_dest_find_target             (FmDndDest *dd,
                                                         GdkDragContext *drag_context);
gboolean            fm_dnd_dest_drag_drop               (FmDndDest *dd,
                                                         GdkDragContext *drag_context,
                                                         GdkAtom target,
                                                         int x,
                                                         int y,
                                                         guint time);
GdkDragAction       fm_dnd_dest_get_default_action      (FmDndDest *dd,
                                                         GdkDragContext *drag_context,
                                                         GdkTarget target);
void                fm_dnd_dest_drag_leave              (FmDndDest *dd,
                                                         GdkDragContext *drag_context,
                                                         guint time);

Object Hierarchy

  GObject
   +----FmDndDest

Signals

  "files-dropped"                                  : Run Last

Description

Details

FmDndDest

typedef struct _FmDndDest FmDndDest;


FmDndDestClass

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


fm_dnd_dest_new ()

FmDndDest*          fm_dnd_dest_new                     (GtkWidget *w);

w :

Returns :


fm_dnd_dest_set_widget ()

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

dd :

w :


fm_dnd_dest_get_src_files ()

FmList*             fm_dnd_dest_get_src_files           (FmDndDest *dd);

dd :

Returns :


fm_dnd_dest_set_dest_file ()

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

dd :

dest_file :


fm_dnd_dest_get_dest_file ()

FmFileInfo*         fm_dnd_dest_get_dest_file           (FmDndDest *dd);

dd :

Returns :


fm_dnd_dest_get_dest_path ()

FmPath*             fm_dnd_dest_get_dest_path           (FmDndDest *dd);

dd :

Returns :


fm_drag_context_has_target()

#define             fm_drag_context_has_target(ctx, target)

ctx :

target :


fm_drag_context_has_target_name()

#define             fm_drag_context_has_target_name(ctx, name)

ctx :

name :


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);

dd :

drag_context :

x :

y :

sel_data :

info :

time :

Returns :


fm_dnd_dest_is_target_supported ()

gboolean            fm_dnd_dest_is_target_supported     (FmDndDest *dd,
                                                         GdkAtom target);

dd :

target :

Returns :


fm_dnd_dest_find_target ()

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

dd :

drag_context :

Returns :


fm_dnd_dest_drag_drop ()

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

dd :

drag_context :

target :

x :

y :

time :

Returns :


fm_dnd_dest_get_default_action ()

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

dd :

drag_context :

target :

Returns :

the default action to take for the dragged files.

fm_dnd_dest_drag_leave ()

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

dd :

drag_context :

time :

Signal Details

The "files-dropped" signal

gboolean            user_function                      (FmDndDest *fmdnddest,
                                                        gint       arg1,
                                                        gint       arg2,
                                                        guint      arg3,
                                                        guint      arg4,
                                                        gpointer   arg5,
                                                        gpointer   user_data)      : Run Last

fmdnddest :

the object which received the signal.

arg1 :

arg2 :

arg3 :

arg4 :

arg5 :

user_data :

user data set when the signal handler was connected.

Returns :