Add AllowTextPrediction/IsTextPredictionAllowed api
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / orientation.cpp
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/devel-api/adaptor-framework/orientation.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/window-system/common/orientation-impl.h>
23
24 namespace Dali
25 {
26
27 Orientation::Orientation()
28 {
29 }
30
31 Orientation::~Orientation()
32 {
33 }
34
35 Orientation::Orientation(const Orientation& handle)
36 : BaseHandle(handle)
37 {
38 }
39
40 Orientation& Orientation::operator=(const Orientation& rhs)
41 {
42   BaseHandle::operator=(rhs);
43   return *this;
44 }
45
46 int Orientation::GetDegrees() const
47 {
48   return Internal::Adaptor::GetImplementation(*this).GetDegrees();
49 }
50
51 float Orientation::GetRadians() const
52 {
53   return Internal::Adaptor::GetImplementation(*this).GetRadians();
54 }
55
56 Orientation::OrientationSignalType& Orientation::ChangedSignal()
57 {
58   return Internal::Adaptor::GetImplementation(*this).ChangedSignal();
59 }
60
61 Orientation::Orientation( Internal::Adaptor::Orientation* orientation )
62 : BaseHandle(orientation)
63 {
64 }
65
66 } // namespace Dali