Orientation is available from Window, so no longer required from application.
Change-Id: I1ce5ff6a23fd0d7fa0c007a421410608aeaa0bf7
#include "application.h"
// EXTERNAL INCLUDES
-#include <orientation.h>
#include <dali/integration-api/debug.h>
// INTERNAL INCLUDES
#include <application-impl.h>
-#include <orientation-impl.h>
namespace Dali
{
Internal::Adaptor::GetImplementation(*this).Quit();
}
-Orientation Application::GetOrientation()
-{
- Window window = GetWindow();
- if( window )
- {
- return window.GetOrientation();
- }
- return Orientation();
-}
-
bool Application::AddIdle( CallbackBase* callback )
{
return Internal::Adaptor::GetImplementation(*this).AddIdle( callback );
void Quit();
/**
- * This returns a handle to the Orientation object used by Application which allows
- * the user to determine the orientation of the device and connect to a
- * signal emitted whenever the orientation changes.
- * @return A handle to the Orientation object used by the Application
- */
- Orientation GetOrientation();
-
- /**
* Ensures that the function passed in is called from the main loop when it is idle.
*
* A callback of the following type may be used: