#define DALI_INTERNAL_ACTOR_GESTURE_DATA_H
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 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.
namespace Dali
{
-
namespace Internal
{
-
/**
* Holds gesture specific data for an Actor
*/
class ActorGestureData
{
public:
-
/**
* Constructor
*/
* @note A raw pointer to the detector is stored, so the detector MUST remove itself when it is
* destroyed using RemoveGestureDetector()
*/
- void AddGestureDetector( GestureDetector& detector );
+ void AddGestureDetector(GestureDetector& detector);
/**
* Removes a previously added gesture detector from the data. If no more gesture detectors of
* gesture.
* @param[in] detector The detector to remove.
*/
- void RemoveGestureDetector( GestureDetector& detector );
+ void RemoveGestureDetector(GestureDetector& detector);
/**
* Queries whether the actor requires the gesture type.
* @param[in] type The gesture type.
* @return true if the gesture is required, false otherwise.
*/
- inline bool IsGestureRequred( Gesture::Type type ) const
+ inline bool IsGestureRequired(GestureType::Value type) const
{
return type & gesturesRequired;
}
* @param[in] type The container type required
* @pre Ensure IsGestureRequired() is used to check if the container is actually available.
*/
- GestureDetectorContainer& GetGestureDetectorContainer( Gesture::Type type );
+ GestureDetectorContainer& GetGestureDetectorContainer(GestureType::Value type);
private:
-
/**
* Helper to retrieve the appropriate container type.
* @param[in] type The container type required.
*/
- inline GestureDetectorContainer*& GetContainerPtr( Gesture::Type type );
+ inline GestureDetectorContainer*& GetContainerPtr(GestureType::Value type);
private:
-
- Gesture::Type gesturesRequired; ///< Stores which gestures are required
+ GestureType::Value gesturesRequired; ///< Stores which gestures are required
GestureDetectorContainer* panDetectors; ///< Pointer to a container of pan-detectors
GestureDetectorContainer* pinchDetectors; ///< Pointer to a container of pinch-detectors
} // namespace Dali
#endif // DALI_INTERNAL_ACTOR_GESTURE_DATA_H
-