X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fadaptor-framework%2Fwindow.cpp;h=9452630dd4a4370e90938ea2e521011b4983a151;hb=f64504bd77bf30c06870f885ffd48cb447fb4e19;hp=9d8c8306b5d6ba85059ad618358b013617ff8026;hpb=8c7084f60e23bb035d9650db4d493bd14935f040;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/public-api/adaptor-framework/window.cpp b/dali/public-api/adaptor-framework/window.cpp index 9d8c830..9452630 100644 --- a/dali/public-api/adaptor-framework/window.cpp +++ b/dali/public-api/adaptor-framework/window.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -29,8 +29,6 @@ namespace Dali { -class DALI_INTERNAL DragAndDropDetector : public BaseHandle {}; // Empty class only required to compile Deprecated API GetDragAndDropDetector - Window Window::New(PositionSize posSize, const std::string& name, bool isTransparent) { return Dali::Window::New(posSize, name, "", isTransparent); @@ -58,7 +56,7 @@ Window Window::New(PositionSize posSize, const std::string& name, const std::str if (isAdaptorAvailable) { Dali::Adaptor& adaptor = Internal::Adaptor::Adaptor::Get(); - Internal::Adaptor::Adaptor::GetImplementation(adaptor).AddWindow(sceneHolder, name, className, isTransparent); + Internal::Adaptor::Adaptor::GetImplementation(adaptor).AddWindow(sceneHolder); } newWindow = Window(window); } @@ -78,16 +76,13 @@ Window::~Window() { } -Window::Window(const Window& handle) -: BaseHandle(handle) -{ -} +Window::Window( const Window& copy ) = default; -Window& Window::operator=(const Window& rhs) -{ - BaseHandle::operator=(rhs); - return *this; -} +Window& Window::operator=( const Window& rhs ) = default; + +Window::Window( Window&& rhs ) = default; + +Window& Window::operator=( Window&& rhs ) = default; void Window::Add( Dali::Actor actor ) { @@ -124,32 +119,9 @@ Layer Window::GetLayer( uint32_t depth ) const return GetImplementation( *this ).GetLayer( depth ); } -void Window::ShowIndicator( IndicatorVisibleMode visibleMode ) -{ - DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: ShowIndicator is deprecated and will be removed from next release.\n" ); - - GetImplementation(*this).ShowIndicator( visibleMode ); -} - -Window::IndicatorSignalType& Window::IndicatorVisibilityChangedSignal() -{ - DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: IndicatorVisibilityChangedSignal is deprecated and will be removed from next release.\n" ); - - return GetImplementation(*this).IndicatorVisibilityChangedSignal(); -} - -void Window::SetIndicatorBgOpacity( IndicatorBgOpacity opacity ) -{ - DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: SetIndicatorBgOpacity is deprecated and will be removed from next release.\n" ); - - GetImplementation(*this).SetIndicatorBgOpacity( opacity ); -} - -void Window::RotateIndicator( WindowOrientation orientation ) +Uint16Pair Window::GetDpi() const { - DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: RotateIndicator is deprecated and will be removed from next release.\n" ); - - GetImplementation(*this).RotateIndicator( orientation ); + return GetImplementation(*this).GetDpi(); } void Window::SetClass( std::string name, std::string klass ) @@ -192,24 +164,11 @@ Dali::Window::WindowOrientation Window::GetPreferredOrientation() return GetImplementation(*this).GetPreferredOrientation(); } -DragAndDropDetector Window::GetDragAndDropDetector() const -{ - DALI_LOG_WARNING_NOFN("DEPRECATION WARNING: GetDragAndDropDetector is deprecated and will be removed from the next release.\n" ); - DALI_ASSERT_ALWAYS( &GetImplementation( *this ) == GetObjectPtr() && "Empty Handle" ); - return Dali::DragAndDropDetector(); -} - Any Window::GetNativeHandle() const { return GetImplementation(*this).GetNativeHandle(); } -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(); @@ -330,12 +289,6 @@ int Window::GetBrightness() const return GetImplementation(*this).GetBrightness(); } -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(); @@ -366,6 +319,21 @@ void Window::SetTransparency( bool transparent ) GetImplementation(*this).SetTransparency( transparent ); } +Dali::RenderTaskList Window::GetRenderTaskList() +{ + return GetImplementation(*this).GetRenderTaskList(); +} + +Window::KeyEventSignalType& Window::KeyEventSignal() +{ + return GetImplementation(*this).KeyEventSignal(); +} + +Window::TouchEventSignalType& Window::TouchedSignal() +{ + return GetImplementation(*this).TouchedSignal(); +} + Window::Window( Internal::Adaptor::Window* window ) : BaseHandle( window ) {