|
ZenitUI
Retained-mode C++20 UI framework
|
Lazily allocated Drag & Drop callbacks owned by Layout (§5.22). More...
#include <Layout.hpp>
Public Attributes | |
| std::function< void(DragPayload &)> | onDragStart |
| std::function< void()> | onDragEnd |
| std::function< void()> | onDragCancel |
| std::function< bool(const DragPayload &)> | canAcceptDrop |
| std::function< void(const DragPayload &)> | onDrop |
| std::function< void()> | onDragEnter |
| std::function< void()> | onDragLeave |
| std::function< std::shared_ptr< Layout >(const DragPayload &)> | onGhostFactory |
Lazily allocated Drag & Drop callbacks owned by Layout (§5.22).
Allocated on first write via Layout::drag(), keeping non-draggable and non-droppable nodes free of per-callback std::function overhead.