enlightenment/src/bin/e_dnd.h

33 lines
768 B
C
Raw Normal View History

/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifdef E_TYPEDEFS
typedef struct _E_DND_Handler E_DND_Handler;
#else
#ifndef E_DND_H
#define E_DND_H
struct _E_DND_Handler
{
void *data;
void (*func)(void *data, const char *type, void *drop);
char *type;
int x, y, w, h;
};
EAPI int e_dnd_init(void);
EAPI int e_dnd_shutdown(void);
EAPI void e_drag_start(E_Zone *zone, const char *type, void *data, const char *icon_path, const char *icon);
EAPI void e_drag_update(int x, int y);
EAPI void e_drag_end(int x, int y);
EAPI E_DND_Handler *e_dnd_handler_add(void *data, void (*func)(void *data, const char *type, void *drop), const char *type, int x, int y, int w, int h);
EAPI void e_dnd_handler_del(E_DND_Handler *handler);
#endif
#endif