Mir
Public Attributes | List of all members
MirDragAndDropV1 Struct Reference

#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...
 

Member Data Documentation

◆ pointer_drag_and_drop

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).

Parameters
[in]eventThe event
Returns
The associated drag handle or NULL

◆ request_drag_and_drop

void(* MirDragAndDropV1::request_drag_and_drop) (MirWindow *window, MirCookie const *cookie)

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().

Warning
An invalid cookie will terminate the client connection.
Parameters
[in]windowThe source window
[in]cookieA cookie instance obtained from an input event.

◆ set_start_drag_and_drop_callback

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.

Parameters
[in]windowThe window
[in]callbackThe callback function.
[in]contextTo be passed to callback

◆ start_drag_and_drop

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).

Parameters
[in]eventThe event
Returns
The associated drag handle or NULL

The documentation for this struct was generated from the following file:

Copyright © 2012-2018 Canonical Ltd.
Generated on Mon Feb 19 14:06:43 UTC 2018