|
Window Framework for UI Toolkit v2.0.x
|
Experimental icon reparenting manipulator, not a production inventory-transfer API. More...
Public Member Functions | |
| IconDragger (VisualElement root) | |
| Captures existing window drop targets and the named dragArea overlay. | |
Protected Member Functions | |
| override void | RegisterCallbacksOnTarget () |
| override void | UnregisterCallbacksFromTarget () |
Private Member Functions | |
| void | OnMouseDown (MouseDownEvent evt) |
| void | OnMouseMove (MouseMoveEvent evt) |
| void | OnMouseUp (MouseUpEvent evt) |
Private Attributes | |
| readonly VisualElement | dragArea |
| readonly List< VisualElement > | dropAreas |
| bool | isMoving |
| VisualElement | originalContainer |
| Vector2 | startPosition |
| Vector2 | startPositionGlobal |
| Vector2 | startPositionLocal |
Experimental icon reparenting manipulator, not a production inventory-transfer API.
Snapshots drop targets at construction. The current drop branch uses event currentTarget, not the matched container; authorization, dynamic target tracking and robust cancellation are absent.
|
inline |
Captures existing window drop targets and the named dragArea overlay.
| root | Nonnull subtree containing a usable dragArea and current WindowFrames. |
Does not create or validate the overlay or refresh targets later. No assets are acquired. Movement changes parent/style and mouse capture; use only as an unsupported source example.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprotected |
|
inlineprotected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |