MeadowlarkDAW / project-board

Project board for the Meadowlark DAW project
0 stars 0 forks source link

Drag-N-Drop source and destination elements #134

Open BillyDM opened 3 months ago

BillyDM commented 3 months ago

These elements are used to create drag-n-drop operations in Yarrow.

These elements will contain no styling and will render no primitives.

DragSource element

This element will contain the following action methods in its builder:

This element shall not capture any mouse events until dragging has started. Once dragging has started, it should only capture mouse events if the pointer is currently over the element.

DragTarget element

This element will contain the following action methods in its builder:

By default this element will be inactive. When inactive, the element should mark itself as "hidden" so Yarrow can skip sending any events to it.

Then when the user activates this element via the handle, the element should unhide itself and respond to events. Once the pointer button goes up (or the window becomes unfocused), the element should automatically deactivate itself again.