Revert "[Tizen] Add Effect Start/End signal"
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / window-devel.cpp
index a2a1246..9d93348 100644 (file)
  *
  */
 
+// EXTERNAL INCLUDES
+#include <dali/public-api/events/key-event.h>
+#include <dali/public-api/events/touch-event.h>
+#include <dali/public-api/events/wheel-event.h>
+
 // INTERNAL INCLUDES
 #include <dali/devel-api/adaptor-framework/window-devel.h>
 #include <dali/internal/window-system/common/window-impl.h>
@@ -30,41 +35,55 @@ void SetPositionSize( Window window, PositionSize positionSize )
   GetImplementation( window ).SetPositionSize( positionSize );
 }
 
-void Add( Window window, Dali::Actor actor )
+Dali::RenderTaskList GetRenderTaskList( Window window )
 {
-  GetImplementation( window ).Add( actor );
+  return GetImplementation( window ).GetRenderTaskList();
 }
 
-void Remove( Window window, Dali::Actor actor )
+Window Get( Actor actor )
 {
-  GetImplementation( window ).Remove( actor );
+  return Internal::Adaptor::Window::Get( actor );
 }
 
-void SetBackgroundColor( Window window, Vector4 color )
+EventProcessingFinishedSignalType& EventProcessingFinishedSignal( Window window )
 {
-  GetImplementation( window ).SetBackgroundColor( color );
+  return GetImplementation( window ).EventProcessingFinishedSignal();
 }
 
-Vector4 GetBackgroundColor( Window window )
+KeyEventSignalType& KeyEventSignal( Window window )
 {
-  return GetImplementation( window ).GetBackgroundColor();
+  return GetImplementation( window ).KeyEventSignal();
 }
 
-Dali::Layer GetRootLayer( Window window )
+TouchSignalType& TouchSignal( Window window )
 {
-  return GetImplementation( window ).GetRootLayer();
+  return GetImplementation( window ).TouchSignal();
 }
 
-uint32_t GetLayerCount( Window window )
+WheelEventSignalType& WheelEventSignal( Window window )
 {
-  return GetImplementation( window ).GetLayerCount();
+  return GetImplementation( window ).WheelEventSignal();
 }
 
-Dali::Layer GetLayer( Window window, uint32_t depth )
+void SetParent( Window window, Window parent )
 {
-  return GetImplementation( window ).GetLayer( depth );
+  GetImplementation( window ).SetParent( parent );
 }
 
+void Unparent( Window window )
+{
+  GetImplementation( window ).Unparent();
+}
+
+Window GetParent( Window window )
+{
+  return GetImplementation( window ).GetParent();
+}
+
+Window DownCast( BaseHandle handle )
+{
+  return Window( dynamic_cast<Dali::Internal::Adaptor::Window*>( handle.GetObjectPtr()) );
+}
 } // namespace DevelWindow
 
 } // namespace Dali