2 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <dali/public-api/events/hover-event.h>
22 #include <dali/public-api/actors/actor.h>
23 #include <dali/internal/event/events/hover-event-impl.h>
28 HoverEvent::HoverEvent()
33 HoverEvent::HoverEvent( const HoverEvent& rhs ) = default;
35 HoverEvent::HoverEvent( HoverEvent&& rhs ) = default;
37 HoverEvent::~HoverEvent()
41 HoverEvent& HoverEvent::operator=( const HoverEvent& rhs ) = default;
43 HoverEvent& HoverEvent::operator=( HoverEvent&& rhs ) = default;
45 unsigned long HoverEvent::GetTime() const
47 return GetImplementation( *this ).GetTime();
50 std::size_t HoverEvent::GetPointCount() const
52 return GetImplementation( *this ).GetPointCount();
55 int32_t HoverEvent::GetDeviceId( std::size_t point ) const
57 return GetImplementation( *this ).GetDeviceId( point );
60 PointState::Type HoverEvent::GetState( std::size_t point ) const
62 return GetImplementation( *this ).GetState( point );
65 Actor HoverEvent::GetHitActor( std::size_t point ) const
67 return GetImplementation( *this ).GetHitActor( point );
70 const Vector2& HoverEvent::GetLocalPosition( std::size_t point ) const
72 return GetImplementation( *this ).GetLocalPosition( point );
75 const Vector2& HoverEvent::GetScreenPosition( std::size_t point ) const
77 return GetImplementation( *this ).GetScreenPosition( point );
80 HoverEvent::HoverEvent( Internal::HoverEvent* internal )
81 : BaseHandle( internal )