*
* The first point is the primary point that's used for hit-testing.
* @SINCE_1_1.37
- * @note Should not use this in a TouchData container as it is just a handle and the internal object can change.
+ * @note As this is a handle to an internal object, it should not be copied (or used in a container) as all that will do is copy the handle to the same object.
+ * The internal object can change which may not be what an application writer expects.
+ * If data does need to be stored in the application, then only the required data should be saved (retrieved using the methods of this class).
+ *
+ * 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
{
TouchData();
/**
- * @brief Copy constructor
+ * @brief Copy constructor.
*
* @SINCE_1_1.37
- * @param[in] other The TouchData to copy from.
+ * @param[in] other The TouchData to copy from
*/
TouchData( const TouchData& other );
/**
- * @brief Destructor
+ * @brief Destructor.
*
* @SINCE_1_1.37
*/
// Operators
/**
- * @brief Assignment Operator
+ * @brief Assignment Operator.
*
* @SINCE_1_1.37
- * @param[in] other The TouchData to copy from.
+ * @param[in] other The TouchData to copy from
+ * @return A reference to this
*/
TouchData& operator=( const TouchData& other );
* @brief Returns the time (in ms) that the touch event occurred.
*
* @SINCE_1_1.37
- * @return The time (in ms) that the touch event occurred.
+ * @return The time (in ms) that the touch event occurred
*/
unsigned long GetTime() const;
* @brief Returns the total number of points in this TouchData.
*
* @SINCE_1_1.37
- * @return Total number of Points.
+ * @return Total number of Points
*/
std::size_t GetPointCount() const;
* point. This is returned by this method.
*
* @SINCE_1_1.37
- * @param[in] point The point required.
- * @return The Device ID of this point.
+ * @param[in] point The point required
+ * @return The Device ID of this point
* @note If point is greater than GetPointCount() then this method will return -1.
*/
int32_t GetDeviceId( std::size_t point ) const;
* @brief Retrieves the State of the point specified.
*
* @SINCE_1_1.37
- * @param[in] point The point required.
- * @return The state of the point specified.
+ * @param[in] point The point required
+ * @return The state of the point specified
* @note If point is greater than GetPointCount() then this method will return PointState::FINISHED.
* @see State
*/
PointState::Type GetState( std::size_t point ) const;
/**
- * @brief Retrieve the actor that was underneath the point specified.
+ * @brief Retrieves the actor that was underneath the point specified.
*
* @SINCE_1_1.37
- * @param[in] point The point required.
- * @return The actor that was underneath the point specified.
+ * @param[in] point The point required
+ * @return The actor that was underneath the point specified
* @note If point is greater than GetPointCount() then this method will return an empty handle.
*/
Actor GetHitActor( std::size_t point ) const;
/**
- * @brief Retrieve the co-ordinates relative to the top-left of the hit-actor at the point specified.
+ * @brief Retrieves the co-ordinates relative to the top-left of the hit-actor at the point specified.
*
* @SINCE_1_1.37
- * @param[in] point The point required.
- * @return The co-ordinates relative to the top-left of the hit-actor of the point specified.
+ * @param[in] point The point required
+ * @return The co-ordinates relative to the top-left of the hit-actor of the point specified
*
* @note The top-left of an actor is (0.0, 0.0, 0.5).
* @note If you require the local coordinates of another actor (e.g the parent of the hit actor),
* @brief Retrieves the co-ordinates relative to the top-left of the screen of the point specified.
*
* @SINCE_1_1.37
- * @param[in] point The point required.
- * @return The co-ordinates relative to the top-left of the screen of the point specified.
+ * @param[in] point The point required
+ * @return The co-ordinates relative to the top-left of the screen of the point specified
* @note If point is greater than GetPointCount() then this method will return Vector2::ZERO.
*/
const Vector2& GetScreenPosition( std::size_t point ) const;
/**
- * @brief Retrieve the radius of the press point.
+ * @brief Retrieves the radius of the press point.
*
* This is the average of both the horizontal and vertical radii of the press point.
*
* @SINCE_1_1.39
- * @param[in] point The point required.
- * @return The radius of the press point.
+ * @param[in] point The point required
+ * @return The radius of the press point
* @note If point is greater than GetPointCount() then this method will return 0.0f.
*/
float GetRadius( std::size_t point ) const;
/**
- * @brief Retrieve BOTH the horizontal and the vertical radii of the press point.
+ * @brief Retrieves BOTH the horizontal and the vertical radii of the press point.
*
* @SINCE_1_1.39
- * @param[in] point The point required.
- * @return The horizontal and vertical radii of the press point.
+ * @param[in] point The point required
+ * @return The horizontal and vertical radii of the press point
* @note If point is greater than GetPointCount() then this method will return Vector2::ZERO.
*/
const Vector2& GetEllipseRadius( std::size_t point ) const;
/**
- * @brief Retrieve the touch pressure.
+ * @brief Retrieves the touch pressure.
*
* The pressure range starts at 0.0f.
* Normal pressure is defined as 1.0f.
* A value greater than 1.0f means more pressure than normal has been applied.
*
* @SINCE_1_1.39
- * @param[in] point The point required.
- * @return The touch pressure.
+ * @param[in] point The point required
+ * @return The touch pressure
* @note If point is greater than GetPointCount() then this method will return 1.0f.
*/
float GetPressure( std::size_t point ) const;
/**
- * @brief Retrieve the angle of the press point relative to the Y-Axis.
+ * @brief Retrieves the angle of the press point relative to the Y-Axis.
*
* @SINCE_1_1.39
- * @param[in] point The point required.
- * @return The angle of the press point.
+ * @param[in] point The point required
+ * @return The angle of the press point
* @note If point is greater than GetPointCount() then this method will return Degree().
*/
Degree GetAngle( std::size_t point ) const;
* @brief This constructor is used internally to Create an initialized TouchData handle.
*
* @SINCE_1_1.37
- * @param [in] touchData A pointer to a newly allocated Dali resource
+ * @param[in] touchData A pointer to a newly allocated Dali resource
*/
explicit DALI_INTERNAL TouchData( Internal::TouchData* touchData );
/// @endcond