// INTERNAL INCLUDES
#include <dali/public-api/actors/actor.h>
-#include <dali/internal/adaptor/common/adaptor-impl.h>
#include <dali/internal/window-system/common/window-impl.h>
#include <dali/internal/window-system/common/orientation-impl.h>
Window Window::New(PositionSize posSize, const std::string& name, bool isTransparent)
{
Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(posSize, name, "", isTransparent);
-
Dali::Adaptor& adaptor = Internal::Adaptor::Adaptor::Get();
Integration::SceneHolder sceneHolder = Integration::SceneHolder( window );
- Internal::Adaptor::Adaptor::GetImplementation( adaptor ).AddWindow( &sceneHolder, name, "", isTransparent );
-
+ Internal::Adaptor::Adaptor::GetImplementation( adaptor ).AddWindow( sceneHolder, name, "", isTransparent );
+ if( !Internal::Adaptor::Adaptor::GetImplementation( adaptor ).IsMultipleWindowSupported() )
+ {
+ DALI_LOG_ERROR("This device can't support multiple windows.\n");
+ }
return Window(window);
}
Window Window::New(PositionSize posSize, const std::string& name, const std::string& className, bool isTransparent)
{
Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(posSize, name, className, isTransparent);
-
Dali::Adaptor& adaptor = Internal::Adaptor::Adaptor::Get();
Integration::SceneHolder sceneHolder = Integration::SceneHolder( window );
- Internal::Adaptor::Adaptor::GetImplementation( adaptor ).AddWindow( &sceneHolder, name, className, isTransparent );
-
+ Internal::Adaptor::Adaptor::GetImplementation( adaptor ).AddWindow( sceneHolder, name, className, isTransparent );
+ if( !Internal::Adaptor::Adaptor::GetImplementation( adaptor ).IsMultipleWindowSupported() )
+ {
+ DALI_LOG_ERROR("This device can't support multiple windows.\n");
+ }
return Window(window);
}
GetImplementation(*this).RemoveAvailableOrientation( orientation );
}
-void Window::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
+void Window::SetPreferredOrientation( WindowOrientation orientation )
{
GetImplementation(*this).SetPreferredOrientation( orientation );
}
Window::FocusSignalType& Window::FocusChangedSignal()
{
+ DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: FocusChangedSignal is deprecated and will be removed from next release.\n" );
return GetImplementation(*this).FocusChangedSignal();
}
+Window::FocusChangeSignalType& Window::FocusChangeSignal()
+{
+ return GetImplementation(*this).FocusChangeSignal();
+}
+
void Window::SetAcceptFocus( bool accept )
{
GetImplementation(*this).SetAcceptFocus( accept );
Window::ResizedSignalType& Window::ResizedSignal()
{
+ DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: ResizedSignal is deprecated and will be removed from next release.\n" );
return GetImplementation(*this).ResizedSignal();
}
+Window::ResizeSignalType& Window::ResizeSignal()
+{
+ return GetImplementation(*this).ResizeSignal();
+}
+
void Window::SetSize( Window::WindowSize size )
{
GetImplementation(*this).SetSize( size );