/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include "orientation-impl.h"
// EXTERNAL INCLUDES
-#include <Ecore.h>
#include <dali/integration-api/debug.h>
// INTERNAL INCLUDES
void Orientation::SetAdaptor(Dali::Adaptor& adaptor)
{
- Adaptor::GetImplementation(adaptor).SetRotationObserver(this);
+ Adaptor& adaptorImpl = Adaptor::GetImplementation(adaptor);
+ adaptorImpl.SetRotationObserver(this);
}
int Orientation::GetDegrees() const
float Orientation::GetRadians() const
{
- return Math::PI * (float)mOrientation / 180.0f;
+ return Math::PI * float(mOrientation) / 180.0f;
}
-Orientation::OrientationSignalV2& Orientation::ChangedSignal()
+Orientation::OrientationSignalType& Orientation::ChangedSignal()
{
return mChangedSignal;
}