Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces
Clipboard.h File Reference

Node-graph clipboard: copy/paste selected nodes via ImGui system clipboard. More...

#include <string>
#include <vector>
#include "BTNodeGraphManager.h"
+ 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
 

Detailed Description

Node-graph clipboard: copy/paste selected nodes via ImGui system clipboard.

Author
Olympe Engine
Date
2026-02-24

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.

Design notes

Definition in file Clipboard.h.