Dali 3D User Interface Engine
application.h
Go to the documentation of this file.
1 #ifndef __DALI_APPLICATION_H__
2 #define __DALI_APPLICATION_H__
3 
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20 
21 // EXTERNAL INCLUDES
22 #include <string>
26 
27 
28 // INTERNAL INCLUDES
30 #include "window.h"
31 
32 namespace Dali
33 {
39 namespace Internal DALI_INTERNAL
40 {
41 namespace Adaptor
42 {
43 class Application;
44 }
45 }
94 {
95 public:
96 
99 
105  {
106  OPAQUE = 0,
108  };
109 
110 public:
111 
116  static Application New();
117 
125  static Application New( int* argc, char **argv[] );
126 
135  static Application New( int* argc, char **argv[], const std::string& stylesheet );
136 
146  static Application New( int* argc, char **argv[], const std::string& stylesheet, WINDOW_MODE windowMode );
147 
152  Application();
153 
158  Application( const Application& application );
159 
164  Application& operator=( const Application& applicaton );
165 
172  ~Application();
173 
174 public:
182  void MainLoop();
183 
191  void MainLoop(Configuration::ContextLoss configuration);
192 
197  void Lower();
198 
203  void Quit();
204 
220  bool AddIdle( CallbackBase* callback );
221 
229  Window GetWindow();
230 
240  void ReplaceWindow(PositionSize windowPosition, const std::string& name);
241 
242 public: // Stereoscopy
243 
249  void SetViewMode( ViewMode viewMode );
250 
256  ViewMode GetViewMode() const;
257 
264  void SetStereoBase( float stereoBase );
265 
272  float GetStereoBase() const;
273 
274 public: // Signals
275 
281  AppSignalType& InitSignal();
282 
288  AppSignalType& TerminateSignal();
289 
295  AppSignalType& PauseSignal();
296 
302  AppSignalType& ResumeSignal();
303 
308  AppSignalType& ResetSignal();
309 
314  AppSignalType& ResizeSignal();
315 
322  AppControlSignalType& AppControlSignal();
323 
328  AppSignalType& LanguageChangedSignal();
329 
334  AppSignalType& RegionChangedSignal();
335 
340  AppSignalType& BatteryLowSignal();
341 
346  AppSignalType& MemoryLowSignal();
347 
348 public: // Not intended for application developers
354 };
355 
359 } // namespace Dali
360 
361 #endif // __DALI_APPLICATION_H__
Dali Docs Home
Read more about Dali