Drag & Drop: add overlapping feature.
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Sun, 13 Oct 2013 03:56:04 +0000 (06:56 +0300)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Mon, 21 Oct 2013 16:04:42 +0000 (19:04 +0300)
commit65f6847876a9995244c7ab04f2cac14fea55f7ca
tree077a2a1b150f695655a67f383b5deae2404c9a2e
parent97972844257fd3ffc20a620844a540150def0cf9
Drag & Drop: add overlapping feature.

This feature is essential if two overlapping widgets can receive drop
information.
Until now, if two widgets (e.g background and button) were added as drop
targets, pointing to common coordinates would have given priority to the
first inserted as drop target.
Now, it will determine which widget is supposed to receive this drop
target by using the same mechanism as used for mouse move, i.e by
walking on the objects tree whose pointer passes through.

A test has been added (Overlapping DnD) to show how this feature can be
used. You can drop in bg, box and button.
src/bin/test.c
src/bin/test_dnd.c
src/lib/elm_cnp.c