X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fevents%2Ftouch-data.cpp;h=54d9a5e956004c52d86ba47f85c2d1d3490ee9c0;hb=f329cb924a9525c4e268872c993d66fbec822b97;hp=7f15af42a2324ae24274731088586aa20048bf19;hpb=bb3f70201ea74ca57fb3c2415693cdc6bd899fdc;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/events/touch-data.cpp b/dali/public-api/events/touch-data.cpp old mode 100644 new mode 100755 index 7f15af4..54d9a5e --- a/dali/public-api/events/touch-data.cpp +++ b/dali/public-api/events/touch-data.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,36 +52,71 @@ unsigned long TouchData::GetTime() const return GetImplementation( *this ).GetTime(); } -size_t TouchData::GetPointCount() const +std::size_t TouchData::GetPointCount() const { return GetImplementation( *this ).GetPointCount(); } -int32_t TouchData::GetDeviceId( size_t point ) const +int32_t TouchData::GetDeviceId( std::size_t point ) const { return GetImplementation( *this ).GetDeviceId( point ); } -PointState::Type TouchData::GetState( size_t point ) const +PointState::Type TouchData::GetState( std::size_t point ) const { return GetImplementation( *this ).GetState( point ); } -Actor TouchData::GetHitActor( size_t point ) const +Actor TouchData::GetHitActor( std::size_t point ) const { return GetImplementation( *this ).GetHitActor( point ); } -const Vector2& TouchData::GetLocalPosition( size_t point ) const +const Vector2& TouchData::GetLocalPosition( std::size_t point ) const { return GetImplementation( *this ).GetLocalPosition( point ); } -const Vector2& TouchData::GetScreenPosition( size_t point ) const +const Vector2& TouchData::GetScreenPosition( std::size_t point ) const { return GetImplementation( *this ).GetScreenPosition( point ); } +float TouchData::GetRadius( std::size_t point ) const +{ + return GetImplementation( *this ).GetRadius( point ); +} + +const Vector2& TouchData::GetEllipseRadius( std::size_t point ) const +{ + return GetImplementation( *this ).GetEllipseRadius( point ); +} + +float TouchData::GetPressure( std::size_t point ) const +{ + return GetImplementation( *this ).GetPressure( point ); +} + +Degree TouchData::GetAngle( std::size_t point ) const +{ + return GetImplementation( *this ).GetAngle( point ); +} + +Device::Class::Type TouchData::GetDeviceClass( std::size_t point ) const +{ + return GetImplementation( *this ).GetDeviceClass( point ); +} + +Device::Subclass::Type TouchData::GetDeviceSubclass( std::size_t point ) const +{ + return GetImplementation( *this ).GetDeviceSubclass( point ); +} + +MouseButton::Type TouchData::GetMouseButton( std::size_t point ) const +{ + return GetImplementation( *this ).GetMouseButton( point ); +} + TouchData::TouchData( Internal::TouchData* internal ) : BaseHandle( internal ) {