X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fevents%2Ftouch-event.h;h=f4adbf8fefc7ce68c077a563d3279669019aa9a4;hb=646f736e77b085c86e982c0d1d4b895c2a431330;hp=0d7688054a8ae39ce48855fe3964e71faa309a73;hpb=f09cea89519b3a7bdee3266b1bd26f97150d95cc;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/events/touch-event.h b/dali/public-api/events/touch-event.h index 0d76880..f4adbf8 100644 --- a/dali/public-api/events/touch-event.h +++ b/dali/public-api/events/touch-event.h @@ -2,7 +2,7 @@ #define __DALI_TOUCH_EVENT_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. @@ -30,38 +30,44 @@ namespace Dali */ /** + * @DEPRECATED_1_1.37 Use TouchData instead + * * @brief Touch events are a collection of touch points at a specific moment in time. * * When a multi-touch event occurs, each touch point represents the points that are currently being * touched or the points where a touch has stopped. * @SINCE_1_0.0 */ -struct DALI_IMPORT_API TouchEvent +struct DALI_CORE_API TouchEvent { // Construction & Destruction /** - * @brief Default constructor + * @DEPRECATED_1_1.37 + * @brief Default constructor. * @SINCE_1_0.0 */ - TouchEvent(); + TouchEvent() DALI_DEPRECATED_API; /** - * @brief Constructor + * @DEPRECATED_1_1.37 + * @brief Constructor. * @SINCE_1_0.0 - * @param[in] time The time the event occurred + * @param[in] time The time the event occurred */ - TouchEvent(unsigned long time); + TouchEvent(unsigned long time) DALI_DEPRECATED_API; /** - * @brief Destructor + * @DEPRECATED_1_1.37 + * @brief Destructor. * @SINCE_1_0.0 */ - ~TouchEvent(); + ~TouchEvent() DALI_DEPRECATED_API; // Data /** + * @DEPRECATED_1_1.37 * @brief This is a container of points for this touch event. * * The first point in the set is always the @@ -70,6 +76,7 @@ struct DALI_IMPORT_API TouchEvent TouchPointContainer points; /** + * @DEPRECATED_1_1.37 * @brief The time (in ms) that the touch event occurred. */ unsigned long time; @@ -77,25 +84,27 @@ struct DALI_IMPORT_API TouchEvent // Convenience Methods /** + * @DEPRECATED_1_1.37 * @brief Returns the total number of points in this TouchEvent. * * @SINCE_1_0.0 - * @return Total number of Points. + * @return Total number of Points */ - unsigned int GetPointCount() const; + uint32_t GetPointCount() const DALI_DEPRECATED_API; /** + * @DEPRECATED_1_1.37 * @brief Returns a touch point at the index requested. * * The first point in the set is always the primary * touch point (i.e. the first point touched in a multi-touch event). * @SINCE_1_0.0 - * @param[in] point The index of the required Point. + * @param[in] point The index of the required Point * @return Point requested * @note "point" should be less than the value returned by GetPointCount(). * If out of range, then program asserts. */ - const TouchPoint& GetPoint(unsigned int point) const; + const TouchPoint& GetPoint( uint32_t point ) const DALI_DEPRECATED_API; }; /**