X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-window.h;h=68ed472356f2f9ae69bd62fab2534e1388640555;hp=3fac48d67a544667503f2f031d25b50def332d5d;hb=7dbe383e1d72909ceb2ef46e33b880243911df7e;hpb=65f6c9e91e0efbee208894b4cb1f9334a129b628 diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.h index 3fac48d..68ed472 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-window.h @@ -2,7 +2,7 @@ #define TOOLKIT_WINDOW_H /* - * 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. @@ -30,6 +30,7 @@ namespace Dali class Actor; class Layer; +class RenderSurfaceInterface; struct KeyEvent; class TouchData; struct WheelEvent; @@ -44,6 +45,9 @@ class Window; } } +class Window; +typedef Signal< void (Window,bool) > FocusChangeSignalType; + class Window : public BaseHandle { public: @@ -57,7 +61,15 @@ public: Window& operator=(const Window& rhs); Integration::Scene GetScene(); - Integration::RenderSurface& GetRenderSurface(); + Dali::RenderSurfaceInterface& GetRenderSurface(); + void Add( Dali::Actor actor ); + void Remove( Dali::Actor actor ); + Dali::Layer GetRootLayer() const; + void SetBackgroundColor( const Vector4& color ); + Vector4 GetBackgroundColor() const; + void Raise(); + void Hide(); + FocusChangeSignalType& FocusChangeSignal(); public: explicit Window( Internal::Adaptor::Window* window ); @@ -73,14 +85,17 @@ typedef Signal< void (const KeyEvent&) > KeyEventSignalType; typedef Signal< bool (const KeyEvent&) > KeyEventGeneratedSignalType; typedef Signal< void (const TouchData&) > TouchSignalType; typedef Signal< void (const WheelEvent&) > WheelEventSignalType; +typedef Signal< void ( Window, bool ) > VisibilityChangedSignalType; Dali::Window Get( Actor actor ); +Dali::Window DownCast( BaseHandle handle ); EventProcessingFinishedSignalType& EventProcessingFinishedSignal( Window window ); KeyEventSignalType& KeyEventSignal( Dali::Window window ); KeyEventGeneratedSignalType& KeyEventGeneratedSignal( Dali::Window window ); TouchSignalType& TouchSignal( Dali::Window window ); WheelEventSignalType& WheelEventSignal( Window window ); +VisibilityChangedSignalType& VisibilityChangedSignal( Window window ); } } // namespace Dali