Horizon
|
The ClipBoardManager handles the copy part of copy/paste. More...
#include <clipboard.hpp>
Public Member Functions | |
ClipboardManager (Documents &ds) | |
void | copy (std::set< SelectableRef > selection, const Coordi &cursor_pos) |
Copys the objects specified by selection to the buffer. More... | |
ClipboardManager (Documents &ds) | |
void | copy (std::set< SelectableRef > selection, const Coordi &cursor_pos) |
Copys the objects specified by selection to the buffer. More... | |
The ClipBoardManager handles the copy part of copy/paste.
Contrary to other EDA packages, horizon uses the operating system's clipboard for copy/paste.
When data is requested, the buffer gets serialized to json.
void horizon::ClipboardManager::copy | ( | std::set< SelectableRef > | selection, |
const Coordi & | cursor_pos | ||
) |
Copys the objects specified by selection to the buffer.
selection | Which objects to copy |
cursor_pos | Upon paste, objects will appear relativ to this point |
void horizon::ClipboardManager::copy | ( | std::set< SelectableRef > | selection, |
const Coordi & | cursor_pos | ||
) |
Copys the objects specified by selection to the buffer.
selection | Which objects to copy |
cursor_pos | Upon paste, objects will appear relativ to this point |