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

Method onCanCopy

src/app/ui/workspace.cpp:321–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321bool Workspace::onCanCopy(Context* ctx)
322{
323 WorkspaceView* view = activeView();
324 InputChainElement* activeElement = (view ? view->onGetInputChainElement(): nullptr);
325 if (activeElement)
326 return activeElement->onCanCopy(ctx);
327 else
328 return false;
329}
330
331bool Workspace::onCanPaste(Context* ctx)
332{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected