Mir
|
#include <drag_and_drop.h>
Public Attributes | |
void(* | request_drag_and_drop )(MirWindow *window, MirCookie const *cookie) |
Request drag and drop. More... | |
void(* | set_start_drag_and_drop_callback )(MirWindow *window, void(*callback)(MirWindow *window, MirDragAndDropEvent const *event, void *context), void *context) |
Set the drag and drop callback. More... | |
MirBlob *(* | start_drag_and_drop )(MirDragAndDropEvent const *event) |
Retrieve any "start drag & drop" handle associated with the event. More... | |
MirBlob *(* | pointer_drag_and_drop )(MirPointerEvent const *event) |
Retrieve any "drag & drop" handle associated with the event. More... | |
MirBlob*(* MirDragAndDropV1::pointer_drag_and_drop) (MirPointerEvent const *event) |
Retrieve any "drag & drop" handle associated with the event.
The handle is used to retrieve drag and drop metadata and content from the service supporting drag and drop (e.g. on Ubuntu the content hub).
[in] | event | The event |
Request drag and drop.
If the request succeeds a "start drag" handle will be received via the callback set by set_start_drag_and_drop_callback().
[in] | window | The source window |
[in] | cookie | A cookie instance obtained from an input event. |
void(* MirDragAndDropV1::set_start_drag_and_drop_callback) (MirWindow *window, void(*callback)(MirWindow *window, MirDragAndDropEvent const *event, void *context), void *context) |
Set the drag and drop callback.
This receives a MirDragAndDropEvent if and when drag and drop begins.
[in] | window | The window |
[in] | callback | The callback function. |
[in] | context | To be passed to callback |
MirBlob*(* MirDragAndDropV1::start_drag_and_drop) (MirDragAndDropEvent const *event) |
Retrieve any "start drag & drop" handle associated with the event.
The handle is used to provide drag and drop metadata and content to the service supporting drag and drop (e.g. on Ubuntu the content hub).
[in] | event | The event |
Copyright © 2012-2022
Canonical Ltd.
Generated on Fri Dec 9 06:40:35 UTC 2022
This documentation is licensed under the GPL version 2 or 3.