Clean up the code to build successfully on macOS
[platform/core/uifw/dali-core.git] / dali / public-api / object / property-notification.cpp
1 /*
2  * Copyright (c) 2020 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/public-api/object/property-notification.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/event/common/property-notification-impl.h>
23 #include <dali/public-api/math/degree.h>
24 #include <dali/public-api/math/quaternion.h>
25 #include <dali/public-api/math/radian.h>
26 #include <dali/public-api/math/vector2.h>
27 #include <dali/public-api/object/handle.h>
28 #include <stdio.h>
29
30 namespace Dali
31 {
32 PropertyNotification::PropertyNotification()
33 {
34 }
35
36 PropertyNotification::PropertyNotification(Internal::PropertyNotification* propertyNotification)
37 : BaseHandle(propertyNotification)
38 {
39 }
40
41 PropertyNotification PropertyNotification::DownCast(BaseHandle handle)
42 {
43   return PropertyNotification(dynamic_cast<Dali::Internal::PropertyNotification*>(handle.GetObjectPtr()));
44 }
45
46 PropertyNotification::~PropertyNotification()
47 {
48 }
49
50 PropertyNotification::PropertyNotification(const PropertyNotification& copy) = default;
51
52 PropertyNotification& PropertyNotification::operator=(const PropertyNotification& rhs) = default;
53
54 PropertyNotification::PropertyNotification(PropertyNotification&& rhs) = default;
55
56 PropertyNotification& PropertyNotification::operator=(PropertyNotification&& rhs) = default;
57
58 PropertyCondition PropertyNotification::GetCondition()
59 {
60   return GetImplementation(*this).GetCondition();
61 }
62
63 const PropertyCondition& PropertyNotification::GetCondition() const
64 {
65   return GetImplementation(*this).GetCondition();
66 }
67
68 Dali::Handle PropertyNotification::GetTarget() const
69 {
70   return GetImplementation(*this).GetTarget();
71 }
72
73 Property::Index PropertyNotification::GetTargetProperty() const
74 {
75   return GetImplementation(*this).GetTargetProperty();
76 }
77
78 void PropertyNotification::SetNotifyMode(NotifyMode mode)
79 {
80   GetImplementation(*this).SetNotifyMode(mode);
81 }
82
83 PropertyNotification::NotifyMode PropertyNotification::GetNotifyMode()
84 {
85   return GetImplementation(*this).GetNotifyMode();
86 }
87
88 bool PropertyNotification::GetNotifyResult() const
89 {
90   return GetImplementation(*this).GetNotifyResult();
91 }
92
93 PropertyNotifySignalType& PropertyNotification::NotifySignal()
94 {
95   return GetImplementation(*this).NotifySignal();
96 }
97
98 } // namespace Dali