wl_data_source_listener

offer to transfer data

The wl_data_source object is the source side of a wl_data_offer. It is created by the source client in a data transfer and provides a way to describe the offered data and a way to respond to requests to transfer the data.

Members

Variables

action
void function(void* data, wl_data_source* wl_data_source, uint dnd_action) action;

notify the selected action

cancelled
void function(void* data, wl_data_source* wl_data_source) cancelled;

selection was cancelled

dnd_drop_performed
void function(void* data, wl_data_source* wl_data_source) dnd_drop_performed;

the drag-and-drop operation physically finished

dnd_finished
void function(void* data, wl_data_source* wl_data_source) dnd_finished;

the drag-and-drop operation concluded

send
void function(void* data, wl_data_source* wl_data_source, const(char)* mime_type, int fd) send;

send the data

target
void function(void* data, wl_data_source* wl_data_source, const(char)* mime_type) target;

a target accepts an offered mime type

Meta