X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fevents%2Ftouch-data.h;h=d395427ebe6881fbc75c0096c77fc1b67373ddb4;hb=db9a4df3f86a7cc95b73329c780ccb38ca2f1b49;hp=2208ee78d81a5a625d0658e2a01553c60df6ca70;hpb=b371d834b097c58b8202b08baaf15ca9dc8d6324;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/events/touch-data.h b/dali/public-api/events/touch-data.h old mode 100644 new mode 100755 index 2208ee7..d395427 --- a/dali/public-api/events/touch-data.h +++ b/dali/public-api/events/touch-data.h @@ -2,7 +2,7 @@ #define __DALI_TOUCH_DATA_H__ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -23,9 +23,11 @@ // INTERNAL INCLUDES #include +#include #include #include #include +#include namespace Dali { @@ -57,7 +59,7 @@ struct Vector2; * * Should not use this in a TouchData container as it is just a handle and the internal object can change. */ -class DALI_IMPORT_API TouchData : public BaseHandle +class DALI_CORE_API TouchData : public BaseHandle { public: @@ -220,6 +222,37 @@ public: */ Degree GetAngle( std::size_t point ) const; + /** + * @brief Get the device class type the mouse/touch event originated from. + * + * The device class type is classification type of the input device of event received. + * @SINCE_1_2.60 + * @param[in] point The point required + * @return The type of the device class + */ + Device::Class::Type GetDeviceClass( std::size_t point ) const; + + /** + * @brief Get the device subclass type the mouse/touch event originated from. + * + * The device subclass type is subclassification type of the input device of event received. + * @SINCE_1_2.60 + * @param[in] point The point required + * @return The type of the device subclass + */ + Device::Subclass::Type GetDeviceSubclass( std::size_t point ) const; + + + /** + * @brief Get mouse device's button value (ex: right/left button) + * + * @SINCE_1_3_31 + * @param[in] point The point required + * @return The mouse button value + */ + MouseButton::Type GetMouseButton( std::size_t point ) const; + + public: // Not intended for application developers /// @cond internal