void Workspace::onCancel(Context* ctx) { WorkspaceView* view = activeView(); InputChainElement* activeElement = (view ? view->onGetInputChainElement(): nullptr); if (activeElement) activeElement->onCancel(ctx); }
void Workspace::onNewInputPriority(InputChainElement* newElement) { WorkspaceView* view = activeView(); InputChainElement* activeElement = (view ? view->onGetInputChainElement(): nullptr); if (activeElement) activeElement->onNewInputPriority(newElement); }
bool Workspace::onClear(Context* ctx) { WorkspaceView* view = activeView(); InputChainElement* activeElement = (view ? view->onGetInputChainElement(): nullptr); if (activeElement) return activeElement->onClear(ctx); else return false; }