ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::DragHandlers Struct Reference

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

Detailed Description

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.


The documentation for this struct was generated from the following file: