MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / onCopy

Method onCopy

src/app/ui/workspace.cpp:361–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361bool Workspace::onCopy(Context* ctx)
362{
363 WorkspaceView* view = activeView();
364 InputChainElement* activeElement = (view ? view->onGetInputChainElement(): nullptr);
365 if (activeElement)
366 return activeElement->onCopy(ctx);
367 else
368 return false;
369}
370
371bool Workspace::onPaste(Context* ctx)
372{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected