Dali::Adaptor* Adaptor::New( Any nativeWindow, RenderSurface *surface, Dali::Configuration::ContextLoss configuration, EnvironmentOptions* environmentOptions )
{
  Dali::Adaptor* adaptor = new Dali::Adaptor;
  Adaptor* impl = new Adaptor( nativeWindow, *adaptor, surface, environmentOptions );
  adaptor->mImpl = impl;

  impl->Initialize(configuration);

  return adaptor;
}
types::InternalType* set(types::InternalType* adaptor_type, const std::wstring& field, types::InternalType* value)
{
    Adaptor* adaptor = adaptor_type->getAs<Adaptor>();

    if (!adaptor->setProperty(field, value, Controller()))
    {
        Scierror(999, _("%s: Wrong value for input argument #%d: unable to set \"%ls\".\n"), funame.c_str(), 2, field.c_str());
        return adaptor_type;
    }

    return adaptor_type->clone();
}
Exemplo n.º 3
0
Dali::Adaptor* Adaptor::New( RenderSurface *surface, const DeviceLayout& baseLayout )
{
  DALI_ASSERT_ALWAYS( surface->GetType() != Dali::RenderSurface::NO_SURFACE && "No surface for adaptor" );

  Dali::Adaptor* adaptor = new Dali::Adaptor;
  Adaptor* impl = new Adaptor( *adaptor, surface, baseLayout );
  adaptor->mImpl = impl;

  impl->Initialize();

  return adaptor;
}