Horizon
Public Member Functions | List of all members
horizon::ClipboardManager Class Reference

The ClipBoardManager handles the copy part of copy/paste. More...

#include <clipboard.hpp>

Public Member Functions

 ClipboardManager (Core *co)
 
void copy (std::set< SelectableRef > selection, const Coordi &cursor_pos)
 Copys the objects specified by selection to the buffer. More...
 

Detailed Description

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.

Member Function Documentation

◆ copy()

void horizon::ClipboardManager::copy ( std::set< SelectableRef selection,
const Coordi cursor_pos 
)

Copys the objects specified by selection to the buffer.

Parameters
selectionWhich objects to copy
cursor_posUpon paste, objects will appear relativ to this point

The documentation for this class was generated from the following files: