1 #ifndef DALI_TOOLKIT_ADAPTOR_IMPL_H
2 #define DALI_TOOLKIT_ADAPTOR_IMPL_H
5 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 #include <dali/integration-api/adaptor-framework/render-surface-interface.h>
26 class DisplayConnection;
27 class ThreadSynchronizationInterface;
29 class TestApplication;
36 using WindowContainer = std::vector<Window>;
44 class GraphicsInterface;
47 } // namespace Adaptor
49 } // namespace Internal
56 } // namespace Integration
66 static Dali::Adaptor& New();
67 static Dali::Adaptor& Get();
71 void Start( Dali::Window window );
73 bool AddIdle( CallbackBase* callback, bool hasReturnValue );
74 void RemoveIdle( CallbackBase* callback );
77 static Integration::Scene GetScene( Dali::Window window );
79 Dali::RenderSurfaceInterface& GetSurface();
80 Dali::WindowContainer GetWindows();
81 Dali::SceneHolderList GetSceneHolders();
83 Dali::Internal::Adaptor::SceneHolder* GetWindow( Dali::Actor& actor );
84 void AddWindow( Internal::Adaptor::SceneHolder* window );
85 void RemoveWindow( Internal::Adaptor::SceneHolder* window );
87 void RegisterProcessor( Integration::Processor& processor );
88 void UnregisterProcessor( Integration::Processor& processor );
90 void SetApplication( Dali::TestApplication& testApplication );
92 Dali::Adaptor::AdaptorSignalType& ResizedSignal();
93 Dali::Adaptor::AdaptorSignalType& LanguageChangedSignal();
94 Dali::Adaptor::WindowCreatedSignalType& WindowCreatedSignal();
96 static Adaptor& GetImpl( Dali::Adaptor& adaptor ) { return *adaptor.mImpl; }
97 static const Adaptor& GetImpl( const Dali::Adaptor& adaptor ) { return *adaptor.mImpl; }
101 Vector<CallbackBase*> mCallbacks;
102 std::vector<Internal::Adaptor::SceneHolder*> mWindows;
103 Dali::Adaptor::AdaptorSignalType mResizedSignal;
104 Dali::Adaptor::AdaptorSignalType mLanguageChangedSignal;
105 Dali::Adaptor::WindowCreatedSignalType mWindowCreatedSignal;
106 TestApplication* mTestApplication;
109 } // namespace Adaptor
110 } // namespace Internal
113 #endif // DALI_TOOLKIT_ADAPTOR_IMPL_H