X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fevents%2Fpoint.cpp;h=7b52bc3570f9018405de48d73d34441279034a30;hb=f329cb924a9525c4e268872c993d66fbec822b97;hp=485c4ed10f66b93e11c1b81269c83a754ceb1369;hpb=7b4ff0da8b4fa2647c0abc34c03da61154de2038;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/events/point.cpp b/dali/integration-api/events/point.cpp old mode 100644 new mode 100755 index 485c4ed..7b52bc3 --- a/dali/integration-api/events/point.cpp +++ b/dali/integration-api/events/point.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. @@ -17,6 +17,7 @@ // CLASS HEADER #include +#include namespace Dali { @@ -28,8 +29,11 @@ Point::Point() : mTouchPoint( 0, TouchPoint::Started, 0.0f, 0.0f ), mEllipseRadius(), mAngle( 0.0f ), + mDeviceClass( Device::Class::NONE ), + mDeviceSubclass( Device::Subclass::NONE ), mPressure( 1.0f ), - mRadius( 0.0f ) + mRadius( 0.0f ), + mMouseButton( MouseButton::INVALID ) { } @@ -37,8 +41,11 @@ Point::Point( const TouchPoint& touchPoint ) : mTouchPoint( touchPoint ), mEllipseRadius(), mAngle( 0.0f ), + mDeviceClass( Device::Class::NONE ), + mDeviceSubclass( Device::Subclass::NONE ), mPressure( 1.0f ), - mRadius( 0.0f ) + mRadius( 0.0f ), + mMouseButton( MouseButton::INVALID ) { } @@ -142,6 +149,37 @@ const TouchPoint& Point::GetTouchPoint() const return mTouchPoint; } +void Point::SetDeviceClass( Device::Class::Type deviceClass ) +{ + mDeviceClass = deviceClass; +} + +void Point::SetDeviceSubclass( Device::Subclass::Type deviceSubclass ) +{ + mDeviceSubclass = deviceSubclass; +} + +Device::Class::Type Point::GetDeviceClass() const +{ + return mDeviceClass; +} + +Device::Subclass::Type Point::GetDeviceSubclass() const +{ + return mDeviceSubclass; +} + +MouseButton::Type Point::GetMouseButton() const +{ + return mMouseButton; +} + +void Point::SetMouseButton(MouseButton::Type button) +{ + mMouseButton = button; +} + + } // namespace Integration } // namespace Dali