Skip to Main Content
Volume 7B: XView Reference Manual
book

Volume 7B: XView Reference Manual

by Dan Heller
September 1991
Intermediate to advanced content levelIntermediate to advanced
311 pages
7h 17m
English
O'Reilly Media, Inc.
Content preview from Volume 7B: XView Reference Manual
dnd_done()
This function is called by the application that is receiving the drop. It is called after
the drop operation is completed. The function informs the toolkit that the drag and
drop operation has been completed.
dnd_done(sel_object)
Selection_requestor sel_object;
sel_object is the Selection_requestor object that was previously passed
into dnd_decode_drop().
dnd_is_forwarded()
Allows applications to detect when a drop event has been forwarded from some other
drop-site. Generally this happens when the user drops on the window manager’s decor
window or on an icon with the attribute DROP_SITE_DEFAULT set. The corresponding
preview/drop event will have the flags field set with the DND_FORWARDED flag. This is
tested for by using dnd_is_forwarded(event).
In general, if the application handles previewing, it should check to see if the preview
event was forwarded and not invert/highlight the drop site.
dnd_is_forwarded(event)
dnd_is_local()
Returns whether the ACTION_DRAG_COPY or ACTION_DROP_MOVE event was generated
locally within the client.
dnd_is_local(event)
dnd_send_drop()
This initiates a drag. After the drag and drop object is created, an application calls
dnd_send_drop(). This changes the cursor to the drag cursor, sends preview
events to valid drop-sites and sends the trigger event (if a valid drop-site is dropped
on). Trigger events are either ACTION_DRAG_COPY or ACTION_DRAG_MOVE.
A drag operation can be aborted by hitting the STOP key, or its equivalent.
dnd_send_drop() reverts the drag cursor ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Gestion des couleurs pas à pas

Gestion des couleurs pas à pas

Jean Delmas
1,000 Garment Graphics

1,000 Garment Graphics

Jeffrey Everett

Publisher Resources

ISBN: 9780937175880