2005-04-23 06:13:57 -07:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef E_TYPEDEFS
|
|
|
|
|
2005-04-24 09:04:20 -07:00
|
|
|
typedef struct _E_Drop_Handler E_Drop_Handler;
|
2005-04-25 11:02:26 -07:00
|
|
|
typedef struct _E_Drop_Event E_Drop_Event;
|
2005-04-23 06:13:57 -07:00
|
|
|
|
|
|
|
#else
|
|
|
|
#ifndef E_DND_H
|
|
|
|
#define E_DND_H
|
|
|
|
|
2005-04-24 09:04:20 -07:00
|
|
|
struct _E_Drop_Handler
|
2005-04-23 06:13:57 -07:00
|
|
|
{
|
|
|
|
void *data;
|
|
|
|
void (*func)(void *data, const char *type, void *drop);
|
|
|
|
char *type;
|
|
|
|
int x, y, w, h;
|
|
|
|
};
|
|
|
|
|
2005-04-25 11:02:26 -07:00
|
|
|
struct _E_Drop_Event
|
|
|
|
{
|
|
|
|
void *data;
|
|
|
|
int x, y;
|
|
|
|
};
|
|
|
|
|
2005-04-23 06:13:57 -07:00
|
|
|
EAPI int e_dnd_init(void);
|
|
|
|
EAPI int e_dnd_shutdown(void);
|
|
|
|
|
2005-04-26 02:36:18 -07:00
|
|
|
EAPI int e_dnd_active(void);
|
|
|
|
|
2005-05-01 08:30:51 -07:00
|
|
|
EAPI void e_drag_start(E_Container *con, const char *type, void *data,
|
2005-04-25 13:56:52 -07:00
|
|
|
const char *icon_path, const char *icon);
|
2005-04-23 06:13:57 -07:00
|
|
|
EAPI void e_drag_update(int x, int y);
|
|
|
|
EAPI void e_drag_end(int x, int y);
|
|
|
|
|
2005-04-25 13:56:52 -07:00
|
|
|
EAPI E_Drop_Handler *e_drop_handler_add(void *data,
|
|
|
|
void (*func)(void *data, const char *type, void *event_info),
|
|
|
|
const char *type, int x, int y, int w, int h);
|
2005-04-24 09:04:20 -07:00
|
|
|
EAPI void e_drop_handler_del(E_Drop_Handler *handler);
|
2005-04-23 06:13:57 -07:00
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|