X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fevents%2Fpoint.h;h=9b33ed3c78cf92e57d573cf8e46486820ce5ae07;hb=f329cb924a9525c4e268872c993d66fbec822b97;hp=3b05f5c42f5d2d4bd4e2cfb7197ecbc4a669bd9d;hpb=3d64028b759662e0f0d6aa159755066a3b83a281;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/events/point.h b/dali/integration-api/events/point.h old mode 100644 new mode 100755 index 3b05f5c..9b33ed3 --- a/dali/integration-api/events/point.h +++ b/dali/integration-api/events/point.h @@ -2,7 +2,7 @@ #define __DALI_INTEGRATION_POINT_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,6 +23,8 @@ #include #include #include +#include +#include namespace Dali { @@ -33,7 +35,7 @@ namespace Integration /** * @brief A Point represents a point on the screen that is currently being touched or where touch has stopped. */ -struct DALI_IMPORT_API Point +struct DALI_CORE_API Point { /** * @brief Default Constructor @@ -106,6 +108,18 @@ struct DALI_IMPORT_API Point void SetAngle( Degree angle ); /** + * @brief Sets the class of the device for the event + * @param[in] deviceClass The class of the device. + */ + void SetDeviceClass( Device::Class::Type deviceClass ); + + /** + * @brief Sets the subclass of the device for the event + * @param[in] deviceSubclass The subclass of the device. + */ + void SetDeviceSubclass( Device::Subclass::Type deviceSubclass ); + + /** * @brief Retrieve the Unique Device ID of the point. * @return The Unique Device ID of the point. */ @@ -153,6 +167,30 @@ struct DALI_IMPORT_API Point */ Degree GetAngle() const; + /** + * @brief Retrieve the class of the device for the event. + * @return The class of the device + */ + Device::Class::Type GetDeviceClass() const; + + /** + * @brief Retrieve the subclass of the device for the event. + * @return The subclass of the device + */ + Device::Subclass::Type GetDeviceSubclass() const; + + /** + * @brief Get Mouse Button value. (ex: right/left button) + * @return The mouse button value. + */ + MouseButton::Type GetMouseButton() const; + + /** + * @brief Set Mouse Button value. (ex: right/left button) + */ + void SetMouseButton(MouseButton::Type button); + + public: // Not intended for Integration API developers /** @@ -192,8 +230,11 @@ private: TouchPoint mTouchPoint; ///< Stores screen position, device Id, local & screen positions and the hit-actor. @see TouchPoint Vector2 mEllipseRadius; ///< Radius of both the horizontal and vertical radius (useful if an ellipse). Degree mAngle; ///< The angle of the press point, relative to the Y-Axis. + Device::Class::Type mDeviceClass; + Device::Subclass::Type mDeviceSubclass; float mPressure; ///< The touch pressure. float mRadius; ///< Radius of the press point, an average of the ellipse radius. + MouseButton::Type mMouseButton; /// < mouse button value. }; } // namespace Integration