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;
45 } // namespace Adaptor
47 } // namespace Internal
54 } // namespace Integration
64 static Dali::Adaptor& New();
65 static Dali::Adaptor& Get();
69 void Start( Dali::Window window );
71 bool AddIdle( CallbackBase* callback, bool hasReturnValue );
72 void RemoveIdle( CallbackBase* callback );
75 static Integration::Scene GetScene( Dali::Window window );
77 Dali::RenderSurfaceInterface& GetSurface();
78 Dali::WindowContainer GetWindows();
80 Dali::Adaptor::AdaptorSignalType& ResizedSignal();
81 Dali::Adaptor::AdaptorSignalType& LanguageChangedSignal();
82 Dali::Adaptor::WindowCreatedSignalType& WindowCreatedSignal();
84 static Adaptor& GetImpl( Dali::Adaptor& adaptor ) { return *adaptor.mImpl; }
85 static const Adaptor& GetImpl( const Dali::Adaptor& adaptor ) { return *adaptor.mImpl; }
89 Vector<CallbackBase*> mCallbacks;
90 Dali::WindowContainer mWindows;
91 Dali::Adaptor::AdaptorSignalType mResizedSignal;
92 Dali::Adaptor::AdaptorSignalType mLanguageChangedSignal;
93 Dali::Adaptor::WindowCreatedSignalType mWindowCreatedSignal;
96 } // namespace Adaptor
97 } // namespace Internal
100 #endif // DALI_TOOLKIT_ADAPTOR_IMPL_H