Merge "Clean up the code to build successfully on macOS" into devel/master
[platform/core/uifw/dali-core.git] / dali / public-api / events / hover-event.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/events/hover-event.h>
20
21 // INTERNAL INCLUDES
22 #include <dali/internal/event/events/hover-event-impl.h>
23 #include <dali/public-api/actors/actor.h>
24
25 namespace Dali
26 {
27 HoverEvent::HoverEvent()
28 : BaseHandle()
29 {
30 }
31
32 HoverEvent::HoverEvent(const HoverEvent& rhs) = default;
33
34 HoverEvent::HoverEvent(HoverEvent&& rhs) = default;
35
36 HoverEvent::~HoverEvent() = default;
37
38 HoverEvent& HoverEvent::operator=(const HoverEvent& rhs) = default;
39
40 HoverEvent& HoverEvent::operator=(HoverEvent&& rhs) = default;
41
42 unsigned long HoverEvent::GetTime() const
43 {
44   return GetImplementation(*this).GetTime();
45 }
46
47 std::size_t HoverEvent::GetPointCount() const
48 {
49   return GetImplementation(*this).GetPointCount();
50 }
51
52 int32_t HoverEvent::GetDeviceId(std::size_t point) const
53 {
54   return GetImplementation(*this).GetDeviceId(point);
55 }
56
57 PointState::Type HoverEvent::GetState(std::size_t point) const
58 {
59   return GetImplementation(*this).GetState(point);
60 }
61
62 Actor HoverEvent::GetHitActor(std::size_t point) const
63 {
64   return GetImplementation(*this).GetHitActor(point);
65 }
66
67 const Vector2& HoverEvent::GetLocalPosition(std::size_t point) const
68 {
69   return GetImplementation(*this).GetLocalPosition(point);
70 }
71
72 const Vector2& HoverEvent::GetScreenPosition(std::size_t point) const
73 {
74   return GetImplementation(*this).GetScreenPosition(point);
75 }
76
77 HoverEvent::HoverEvent(Internal::HoverEvent* internal)
78 : BaseHandle(internal)
79 {
80 }
81
82 } // namespace Dali