![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Node-graph clipboard: copy/paste selected nodes via ImGui system clipboard. More...
Include dependency graph for Clipboard.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | Olympe::NodeGraphClipboard |
| Singleton clipboard for node-graph copy / paste operations. More... | |
Namespaces | |
| namespace | Olympe |
| < Provides AssetID and INVALID_ASSET_ID | |
Node-graph clipboard: copy/paste selected nodes via ImGui system clipboard.
NodeGraphClipboard serialises selected nodes (including their type, sub-type, parameters and relative positions) to a compact JSON string stored in the system clipboard via ImGui::SetClipboardText / ImGui::GetClipboardText.
The JSON payload is prefixed with the marker OLYMPE_NG_CLIP: so that foreign clipboard contents are silently ignored on paste.
Multi-node copy is supported: all currently selected nodes are written. On paste the nodes are positioned relative to the current mouse cursor position, preserving their layout offsets.
Definition in file Clipboard.h.