2 * Copyright (c) 2017 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/touch-data.h>
22 #include <dali/public-api/actors/actor.h>
23 #include <dali/internal/event/events/touch-data-impl.h>
30 TouchData::TouchData()
35 TouchData::TouchData( const TouchData& other )
40 TouchData::~TouchData()
44 TouchData& TouchData::operator=( const TouchData& other )
46 BaseHandle::operator=( other );
50 unsigned long TouchData::GetTime() const
52 return GetImplementation( *this ).GetTime();
55 std::size_t TouchData::GetPointCount() const
57 return GetImplementation( *this ).GetPointCount();
60 int32_t TouchData::GetDeviceId( std::size_t point ) const
62 return GetImplementation( *this ).GetDeviceId( point );
65 PointState::Type TouchData::GetState( std::size_t point ) const
67 return GetImplementation( *this ).GetState( point );
70 Actor TouchData::GetHitActor( std::size_t point ) const
72 return GetImplementation( *this ).GetHitActor( point );
75 const Vector2& TouchData::GetLocalPosition( std::size_t point ) const
77 return GetImplementation( *this ).GetLocalPosition( point );
80 const Vector2& TouchData::GetScreenPosition( std::size_t point ) const
82 return GetImplementation( *this ).GetScreenPosition( point );
85 float TouchData::GetRadius( std::size_t point ) const
87 return GetImplementation( *this ).GetRadius( point );
90 const Vector2& TouchData::GetEllipseRadius( std::size_t point ) const
92 return GetImplementation( *this ).GetEllipseRadius( point );
95 float TouchData::GetPressure( std::size_t point ) const
97 return GetImplementation( *this ).GetPressure( point );
100 Degree TouchData::GetAngle( std::size_t point ) const
102 return GetImplementation( *this ).GetAngle( point );
105 Device::Class::Type TouchData::GetDeviceClass( std::size_t point ) const
107 return GetImplementation( *this ).GetDeviceClass( point );
110 Device::Subclass::Type TouchData::GetDeviceSubclass( std::size_t point ) const
112 return GetImplementation( *this ).GetDeviceSubclass( point );
115 MouseButton::Type TouchData::GetMouseButton( std::size_t point ) const
117 return GetImplementation( *this ).GetMouseButton( point );
120 TouchData::TouchData( Internal::TouchData* internal )
121 : BaseHandle( internal )