PtDndSelect()

Select drag-and-drop data

Synopsis:

int PtDndSelect( 
       PtWidget_t *widget, 
       PtDndFetch_t *data_array, 
       int unsigned array_size, 
       PhCursorDescription_t *accept_cursor, 
       PhCursorDescription_t *reject_cursor, 
       PtCallbackInfo_t *cbinfo );

Arguments:

widget
A pointer to the widget involved in the drag-and-drop event.
data_array
An array of data-selection criteria and optional processing functions. For more information, see PtDndFetch_t.
array_size
The number of items in data_array.
accept_cursor
The cursor that's displayed if some data from the drag-and-drop event is selected. If this argument is NULL, the default accept cursor is used.
reject_cursor
The cursor that's displayed if no data from the drag-and-drop event is selected. If this argument is NULL, the default reject cursor is used.
cbinfo
A pointer to the PtCallbackInfo_t structure (see the Photon Widget Reference) as received in a widget callback.

Library:

ph

Description:

This function selects the drag-and-drop data from the event found in the cbinfo that matches the selection criteria in data_array.

Returns:

The number of elements selected from the drag-and-drop event.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtCreateTransportCtrl(), PtDndFetch_t, PtInitDnd(), PtTransportType()

PtCallbackInfo_t in the Photon Widget Reference

Drag and Drop chapter of the Photon Programmer's Guide