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/adaptors/render-surface-interface.h>
26 class DisplayConnection;
27 class ThreadSynchronizationInterface;
35 using WindowContainer = std::vector<Window>;
43 class GraphicsInterface;
46 } // namespace Adaptor
48 } // namespace Internal
55 } // namespace Integration
65 static Dali::Adaptor& New();
66 static Dali::Adaptor& Get();
70 void Start( Dali::Window window );
72 bool AddIdle( CallbackBase* callback, bool hasReturnValue );
73 void RemoveIdle( CallbackBase* callback );
76 static Integration::Scene GetScene( Dali::Window window );
78 Dali::RenderSurfaceInterface& GetSurface();
79 Dali::WindowContainer GetWindows();
80 Dali::SceneHolderList GetSceneHolders();
82 Dali::Internal::Adaptor::SceneHolder* GetWindow( Dali::Actor& actor );
83 void AddWindow( Internal::Adaptor::SceneHolder* window );
84 void RemoveWindow( Internal::Adaptor::SceneHolder* window );
86 Dali::Adaptor::AdaptorSignalType& ResizedSignal();
87 Dali::Adaptor::AdaptorSignalType& LanguageChangedSignal();
88 Dali::Adaptor::WindowCreatedSignalType& WindowCreatedSignal();
90 static Adaptor& GetImpl( Dali::Adaptor& adaptor ) { return *adaptor.mImpl; }
91 static const Adaptor& GetImpl( const Dali::Adaptor& adaptor ) { return *adaptor.mImpl; }
95 Vector<CallbackBase*> mCallbacks;
96 std::vector<Internal::Adaptor::SceneHolder*> mWindows;
97 Dali::Adaptor::AdaptorSignalType mResizedSignal;
98 Dali::Adaptor::AdaptorSignalType mLanguageChangedSignal;
99 Dali::Adaptor::WindowCreatedSignalType mWindowCreatedSignal;
102 } // namespace Adaptor
103 } // namespace Internal
106 #endif // DALI_TOOLKIT_ADAPTOR_IMPL_H