#ifndef DND_H
#define DND_H
#include "../ui/dnd.h"
#include "toolkit.h"
#include <cx/list.h>
#ifdef __cplusplus
extern "C" {
#endif
#if GTK_MAJOR_VERSION >=
4
struct UiDnD {
GtkDropTarget *target;
const GValue *value;
CxList *providers;
GdkDragAction selected_action;
gboolean delete;
gboolean accept;
};
#else
struct UiDnD {
GdkDragContext *context;
GtkSelectionData *data;
GdkDragAction selected_action;
gboolean delete;
gboolean accept;
};
#endif
UiDnD* ui_create_dnd(
void);
void ui_dnd_free(UiDnD *dnd);
#ifdef __cplusplus
}
#endif
#endif