It derives from <GObject>.
Represents the target of an ongoing DND operation.
Possible drop sites get informed about the status of the ongoing drag
operation with events of type drag-enter,
drag-leave, drag-motion
and drop-start. The
<GdkDrop> object can be obtained from these
<GdkEvent> types using dndevent:get-drop.
The actual data transfer is initiated from the target side via an async
read, using one of the <GdkDrop> methods for this
purpose: drop:read-async or
drop:read-value-async.
GTK provides a higher level abstraction based on top of these functions, and so they are not normally needed in GTK applications. See the "Drag and Drop" section of the GTK documentation for more information.
The possible actions for this drop
Its value is a <GdkDragAction> (or, to set it,
a list of its symbols, or one of them).
It can only be set when the object is made, with #:actions.
The <GdkDevice> performing the drop
Its value is a <GdkDevice>, or #f.
It can only be set when the object is made, with #:device.
The <GdkDisplay> that the drop belongs to.
Its value is a <GdkDisplay>, or #f.
It is read only.
The <GdkDrag> that initiated this drop
Its value is a <GdkDrag>, or #f.
It can only be set when the object is made, with #:drag.
The possible formats that the drop can provide its data in.
Its value is a <GdkContentFormats>, or
#f.
It can only be set when the object is made, with #:formats.
The <GdkSurface> the drop happens on
Its value is a <GdkSurface>, or #f.
It can only be set when the object is made, with #:surface.
Ends the drag operation after a drop.
The action must be a single action selected from the actions
available via drop:get-actions.
Passed: a <GdkDrop>.
Passed: a <GdkDragAction>, or a list of its
symbols, or one of them.
the action performed by the destination or none
if the drop failed
Returns the possible actions for this <GdkDrop>.
If this value contains multiple actions - i.e. drag-action:is-unique? returns false for the result -
drop:finish must choose the action to use when
accepting the drop. This will only happen if you passed
ask as one of the possible actions in
drop:status. ask
itself will not be included in the actions returned by this function.
This value may change over the lifetime of the
<GdkDrop> both as a response to source side actions
as well as to calls to drop:status or
drop:finish. The source side will not change
this value anymore once a drop has started.
Passed: a <GdkDrop>.
Returned: a <GdkDragAction>.
The possible GdkDragActions
Returns the <GdkDevice> performing the drop.
Passed: a <GdkDrop>.
Returned: a <GdkDevice>.
The <GdkDevice> performing the drop.
Gets the <GdkDisplay> that self was created
for.
Passed: a <GdkDrop>.
Returned: a <GdkDisplay>.
If this is an in-app drag-and-drop operation, returns the
<GdkDrag> that corresponds to this drop.
If it is not, NULL is returned.
Returns the <GdkContentFormats> that the
drop offers the data to be read in.
Passed: a <GdkDrop>.
Returned: a <GdkContentFormats>.
The possible <GdkContentFormats>
Returns the <GdkSurface> performing the drop.
Passed: a <GdkDrop>.
Returned: a <GdkSurface>.
The <GdkSurface> performing the drop.
Asynchronously read the dropped data from a <GdkDrop>
in a format that complies with one of the mime types.
Passed: a <GdkDrop>.
Passed: a list or vector, each a string.
pointer to an array of mime types
Passed: a 32-bit integer.
the I/O priority for the read operation
Passed, or left out: a <GCancellable>, or
#f.
optional <GCancellable> object
Passed, or left out: a procedure, or #f.
a GAsyncReadyCallback to call when
the request is satisfied
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
the data to pass to callback
Finishes an async drop read operation.
Note that you must not use blocking read calls on the returned stream in
the GTK thread, since some platforms might require communication with
GTK to complete the data transfer. You can use async APIs such as
input-stream:read-bytes-async.
See drop:read-async.
Passed: a <GdkDrop>.
Passed: a <GAsyncResult>.
Returned: a <GInputStream>, or #f.
the <GInputStream>
Returned: a string.
return location for the used mime type
Asynchronously request the drag operation’s contents converted to the given type.
For local drag-and-drop operations that are available in the given
GType, the value will be copied directly. Otherwise, GDK will
try to use
content-deserialize-async to
convert the data.
Passed: a <GdkDrop>.
Passed: a class, or a GType number.
a GType to read
Passed: a 32-bit integer.
the I/O priority of the request.
Passed, or left out: a <GCancellable>, or
#f.
optional <GCancellable> object, #f
to ignore.
Passed, or left out: a procedure, or #f.
callback to call when the request is satisfied
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
the data to pass to callback function
Finishes an async drop read.
Passed: a <GdkDrop>.
Passed: a <GAsyncResult>.
Returned: a <GValue>.
a <GValue> containing the result.
Selects all actions that are potentially supported by the destination.
When calling this function, do not restrict the passed in actions to the
ones provided by drop:get-actions. Those
actions may change in the future, even depending on the actions you
provide here.
The preferred action is a hint to the drag-and-drop mechanism about which action to use when multiple actions are possible.
This function should be called by drag destinations in response to
drag-enter or
drag-motion events. If the destination does not
yet know the exact actions it supports, it should set any possible
actions first and then later call this function again.
Passed: a <GdkDrop>.
Passed: a <GdkDragAction>, or a list of its
symbols, or one of them.
Supported actions of the destination, or none
to indicate that a drop will not be accepted
Passed: a <GdkDragAction>, or a list of its
symbols, or one of them.
A unique action that’s a member of actions indicating the preferred action