X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fevents%2Ftouch-data-impl.h;h=19e56a282367096925830a120e8775908123da1a;hb=f329cb924a9525c4e268872c993d66fbec822b97;hp=5221db0d1dff1ec1f520db9889076ebf9b721d37;hpb=3d64028b759662e0f0d6aa159755066a3b83a281;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/events/touch-data-impl.h b/dali/internal/event/events/touch-data-impl.h old mode 100644 new mode 100755 index 5221db0..19e56a2 --- a/dali/internal/event/events/touch-data-impl.h +++ b/dali/internal/event/events/touch-data-impl.h @@ -2,7 +2,7 @@ #define __DALI_INTERNAL_TOUCH_DATA_H__ /* - * 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. @@ -158,6 +158,28 @@ public: */ void AddPoint( const Integration::Point& point ); + /** + * @brief Get the device class the mouse/touch event originated from + * + * @return The device class + */ + Device::Class::Type GetDeviceClass( std::size_t point ) const; + + /** + * @brief Get the device subclass the mouse/touch event originated from + * + * @return The device subclass + */ + Device::Subclass::Type GetDeviceSubclass( std::size_t point ) const; + + /** + * @brief Get mouse's button value (ex: right/left button) + * + * @return The value of mouse button + */ + MouseButton::Type GetMouseButton( std::size_t point ) const; + + private: /// Undefined Copy constructor @@ -166,6 +188,8 @@ private: /// Undefined TouchData& operator=( const TouchData& other ); +private: + std::vector< Integration::Point > mPoints; ///< Container of the points for this touch event. unsigned long mTime; ///< The time (in ms) that the touch event occurred. };