X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fevents%2Ftouch-point.h;h=e6f099b31b253bfa743a4ffd756331bcbfe733a2;hb=646f736e77b085c86e982c0d1d4b895c2a431330;hp=ccd5652ab3f6c84d87579730f126181f9449a12b;hpb=125ec6872f317edb3a6e2fd4707896877e74c42c;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/events/touch-point.h b/dali/public-api/events/touch-point.h index ccd5652..e6f099b 100644 --- a/dali/public-api/events/touch-point.h +++ b/dali/public-api/events/touch-point.h @@ -2,7 +2,7 @@ #define __DALI_TOUCH_POINT_H__ /* - * Copyright (c) 2015 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. @@ -18,7 +18,11 @@ * */ +// EXTERNAL INCLUDES +#include // uint32_t + // INTERNAL INCLUDES +#include #include #include @@ -32,13 +36,15 @@ namespace Dali /** * @brief A TouchPoint represents a point on the screen that is currently being touched * or where touch has stopped. + * @SINCE_1_0.0 */ -struct DALI_IMPORT_API TouchPoint +struct DALI_CORE_API TouchPoint { // Enumerations /** - * @brief Touch state + * @brief Enumeration for Touch state. + * @SINCE_1_0.0 */ enum State { @@ -58,29 +64,32 @@ struct DALI_IMPORT_API TouchPoint // Construction & Destruction /** - * @brief Constructor + * @brief Constructor. * - * @param[in] id The touch device ID. - * @param[in] state The state. - * @param[in] screenX The X co-ordinate relative to the screen's origin. - * @param[in] screenY The Y co-ordinate relative to the screen's origin. + * @SINCE_1_0.0 + * @param[in] id The touch device ID + * @param[in] state The state + * @param[in] screenX The X co-ordinate relative to the screen's origin + * @param[in] screenY The Y co-ordinate relative to the screen's origin */ - TouchPoint(int id, State state, float screenX, float screenY); + TouchPoint(int32_t id, State state, float screenX, float screenY); /** - * @brief Constructor + * @brief Constructor. * - * @param[in] id The touch device ID. - * @param[in] state The state. - * @param[in] screenX The X co-ordinate relative to the screen's origin. - * @param[in] screenY The Y co-ordinate relative to the screen's origin. - * @param[in] localX The X co-ordinate relative to the top-left (0.0, 0.0, 0.5) of the actor. - * @param[in] localY The Y co-ordinate relative to the top-left (0.0, 0.0, 0.5) of the actor. + * @SINCE_1_0.0 + * @param[in] id The touch device ID + * @param[in] state The state + * @param[in] screenX The X co-ordinate relative to the screen's origin + * @param[in] screenY The Y co-ordinate relative to the screen's origin + * @param[in] localX The X co-ordinate relative to the top-left (0.0, 0.0, 0.5) of the actor + * @param[in] localY The Y co-ordinate relative to the top-left (0.0, 0.0, 0.5) of the actor */ - TouchPoint(int id, State state, float screenX, float screenY, float localX, float localY); + TouchPoint(int32_t id, State state, float screenX, float screenY, float localX, float localY); /** - * @brief Destructor + * @brief Destructor. + * @SINCE_1_0.0 */ ~TouchPoint(); @@ -89,7 +98,7 @@ struct DALI_IMPORT_API TouchPoint /** * @brief Each touch point has a unique device ID which specifies the touch device for that point. */ - int deviceId; + int32_t deviceId; /** * @brief State of the point. @@ -118,9 +127,9 @@ struct DALI_IMPORT_API TouchPoint Vector2 screen; }; -typedef std::vector TouchPointContainer; ///< Container of touch points. -typedef TouchPointContainer::iterator TouchPointContainerIterator; ///< Iterator for Dali::TouchPointContainer -typedef TouchPointContainer::const_iterator TouchPointContainerConstIterator; ///< Const iterator for Dali::TouchPointContainer +typedef std::vector TouchPointContainer; ///< Container of touch points. @SINCE_1_0.0 +typedef TouchPointContainer::iterator TouchPointContainerIterator; ///< Iterator for Dali::TouchPointContainer @SINCE_1_0.0 +typedef TouchPointContainer::const_iterator TouchPointContainerConstIterator; ///< Const iterator for Dali::TouchPointContainer @SINCE_1_0.0 /** * @}