All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

drop-object-provides-format Function

Summary

Queries whether a dropping operation can provide an object in a given format.

Package

capi

Signature

drop-object-provides-format drop-object format => result

Arguments
drop-object
A drop-object, as passed to the drop-callback.
format
A format keyword.
Values
result
A boolean.
Description

The function drop-object-provides-format returns non-nil if the dropping operation can provide an object with format format in the dropping operation for drop-object. It returns nil if it cannot provide that format.

See set-drop-object-supported-formats for information on format keywords.

Notes

drop-object-provides-format should only be called within a drop-callback. It is not supported on X11/Motif. See simple-pane for information about drop callbacks.

Examples
(example-edit-file "capi/output-panes/drag-and-drop")
See also

set-drop-object-supported-formats
simple-pane
17 Drag and Drop


CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:32:42