view Applications/Wasm/BasicWasmApplicationContext.cpp @ 227:c8f11437a6fd am

getting ready for multiple viewports
author am@osimis.io
date Thu, 14 Jun 2018 13:28:40 +0200
parents 84844649a8fd
children 5027cb2feb51
line wrap: on
line source

#include "BasicWasmApplicationContext.h"

namespace OrthancStone
{
  IWidget& BasicWasmApplicationContext::SetCentralWidget(IWidget* widget)   // Takes ownership
  {
    printf("BasicWasmApplicationContext::SetCentralWidget %x %x\n", centralViewport_.get(), widget);
    assert(centralViewport_.get() != NULL);
    centralViewport_->SetCentralWidget(widget);
    printf("BasicWasmApplicationContext::SetCentralWidget done\n");
    return *widget;
  }

}