// INTERNAL INCLUDES
#include <dali/integration-api/debug.h>
+#include <dali/internal/event/events/actor-gesture-data.h>
#include <dali/internal/event/events/gesture-event-processor.h>
#include <dali/internal/event/common/thread-local-storage.h>
#include <dali/internal/event/common/stage-impl.h>
namespace Internal
{
-namespace
-{
-const std::string INVALID_PROPERTY; // Empty string for invalid calls
-}
-
GestureDetector::GestureDetector(Gesture::Type type)
: mType(type),
mGestureEventProcessor(ThreadLocalStorage::Get().GetGestureEventProcessor())
{
Actor* actor( *iter );
actor->RemoveObserver( *this );
- actor->RemoveGestureDetector( *this );
+ actor->GetGestureData().RemoveGestureDetector( *this );
}
mAttachedActors.clear();
actor.AddObserver(*this);
// Add the detector to the actor (so the actor knows it requires this gesture when going through hit-test algorithm)
- actor.AddGestureDetector( *this );
+ actor.GetGestureData().AddGestureDetector( *this );
// Notification for derived classes
OnActorAttach(actor);
// We no longer need to observe the actor's destruction
actor.RemoveObserver(*this);
- // Remove detector from actor (so it is set to no longer requiring this gesture when going through the hit-test algorithm)
- actor.RemoveGestureDetector( *this );
+ // Remove detector from actor-gesture-data
+ actor.GetGestureData().RemoveGestureDetector( *this );
mAttachedActors.erase(match);
// We no longer need to observe the actor's destruction
actor->RemoveObserver(*this);
- // Remove detector from actor (so it is set to no longer requiring this gesture when going through the hit-test algorithm)
- actor->RemoveGestureDetector( *this );
+ // Remove detector from actor-gesture-data
+ actor->GetGestureData().RemoveGestureDetector( *this );
// Notification for derived classes
OnActorDetach(*actor);
}
}
-bool GestureDetector::IsSceneObjectRemovable() const
-{
- return false;
-}
-
unsigned int GestureDetector::GetDefaultPropertyCount() const
{
return 0;
{
}
-const std::string& GestureDetector::GetDefaultPropertyName( Property::Index index ) const
+const char* GestureDetector::GetDefaultPropertyName( Property::Index index ) const
{
- return INVALID_PROPERTY;
+ return NULL;
}
Property::Index GestureDetector::GetDefaultPropertyIndex(const std::string& name) const