コード例 #1
0
ファイル: workspace.cpp プロジェクト: 4144/aseprite
void Workspace::onCancel(Context* ctx)
{
  WorkspaceView* view = activeView();
  InputChainElement* activeElement = (view ? view->onGetInputChainElement(): nullptr);
  if (activeElement)
    activeElement->onCancel(ctx);
}
コード例 #2
0
ファイル: workspace.cpp プロジェクト: 4144/aseprite
void Workspace::onNewInputPriority(InputChainElement* newElement)
{
  WorkspaceView* view = activeView();
  InputChainElement* activeElement = (view ? view->onGetInputChainElement(): nullptr);
  if (activeElement)
    activeElement->onNewInputPriority(newElement);
}
コード例 #3
0
ファイル: workspace.cpp プロジェクト: 4144/aseprite
bool Workspace::onClear(Context* ctx)
{
  WorkspaceView* view = activeView();
  InputChainElement* activeElement = (view ? view->onGetInputChainElement(): nullptr);
  if (activeElement)
    return activeElement->onClear(ctx);
  else
    return false;
}