/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <dali/integration-api/debug.h>
// INTERNAL INCLUDES
-#include <accessibility-manager.h>
+#include <accessibility-adaptor.h>
#include <imf-manager.h>
#include <style-monitor.h>
-#include <window.h>
#include <render-surface.h>
#include <adaptor-impl.h>
-#include <window-impl.h>
namespace Dali
{
Adaptor& Adaptor::New( Window window, Configuration::ContextLoss configuration )
{
- Any winId = window.GetNativeHandle();
-
- Internal::Adaptor::Window& windowImpl = GetImplementation(window);
- Adaptor* adaptor = Internal::Adaptor::Adaptor::New( winId, windowImpl.GetSurface(), configuration );
- windowImpl.SetAdaptor(*adaptor);
+ Adaptor* adaptor = Internal::Adaptor::Adaptor::New( window, configuration, NULL );
return *adaptor;
}
Adaptor& Adaptor::New( Any nativeWindow, const Dali::RenderSurface& surface, Configuration::ContextLoss configuration )
{
Dali::RenderSurface* pSurface = const_cast<Dali::RenderSurface *>(&surface);
- Adaptor* adaptor = Internal::Adaptor::Adaptor::New( nativeWindow, pSurface, configuration );
+ Adaptor* adaptor = Internal::Adaptor::Adaptor::New( nativeWindow, pSurface, configuration, NULL );
return *adaptor;
}
return mImpl->AddIdle( callback );
}
+void Adaptor::RemoveIdle( CallbackBase* callback )
+{
+ mImpl->RemoveIdle( callback );
+}
+
void Adaptor::ReplaceSurface( Any nativeWindow, Dali::RenderSurface& surface )
{
mImpl->ReplaceSurface(nativeWindow, surface);
return mImpl->GetSurface();
}
+Any Adaptor::GetNativeWindowHandle()
+{
+ return mImpl->GetNativeWindowHandle();
+}
+
+Window Adaptor::GetWindow()
+{
+ return mImpl->GetWindow();
+}
+
void Adaptor::ReleaseSurfaceLock()
{
mImpl->ReleaseSurfaceLock();
return Internal::Adaptor::Adaptor::IsAvailable();
}
+void Adaptor::NotifySceneCreated()
+{
+ mImpl->NotifySceneCreated();
+}
+
void Adaptor::NotifyLanguageChanged()
{
mImpl->NotifyLanguageChanged();
mImpl->FeedTouchPoint(point, timeStamp);
}
-void Adaptor::FeedWheelEvent( MouseWheelEvent& wheelEvent )
+void Adaptor::FeedWheelEvent( WheelEvent& wheelEvent )
{
mImpl->FeedWheelEvent(wheelEvent);
}
mImpl->FeedKeyEvent(keyEvent);
}
+void Adaptor::SceneCreated()
+{
+ mImpl->SceneCreated();
+}
+
+void Adaptor::SetViewMode( ViewMode mode )
+{
+ mImpl->SetViewMode( mode );
+}
+
+void Adaptor::SetStereoBase( float stereoBase )
+{
+ mImpl->SetStereoBase( stereoBase );
+}
+
+void Adaptor::RenderOnce()
+{
+ mImpl->RenderOnce();
+}
+
Adaptor::Adaptor()
: mImpl( NULL )
{