[Tizen] Not execute the remove callback
[platform/core/uifw/dali-core.git] / dali / internal / event / events / multi-point-event-util.cpp
index e475c2f..0d3942d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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
 {
-
 #if defined(DEBUG_ENABLED)
 
 static bool HIERARCHY_GEOMETRY(true);
@@ -37,78 +35,78 @@ static bool HIERARCHY_TOUCH_REQUIRED(true);
 static bool HIERARCHY_HOVER_REQUIRED(true);
 static bool HIERARCHY_HITTABLE(true);
 
-static const Debug::LogLevel HIERARCHY_DEBUG_LOG_LEVEL( Debug::Verbose );
+static const Debug::LogLevel HIERARCHY_DEBUG_LOG_LEVEL(Debug::Verbose);
 
-void PrintChildren( Debug::Filter* logFilter, Dali::Actor actor, int level )
+void PrintChildren(Debug::Filter* logFilter, Dali::Actor actor, int level)
 {
   std::ostringstream output;
 
-  for ( int t = 0; t < level; ++t )
+  for(int t = 0; t < level; ++t)
   {
     output << " | ";
   }
 
-  output << actor.GetProperty< std::string >( Dali::Actor::Property::NAME ) << "(" << actor.GetTypeName() << ", " << actor.GetObjectPtr() << ")";
+  output << actor.GetProperty<std::string>(Dali::Actor::Property::NAME) << "(" << actor.GetTypeName() << ", " << actor.GetObjectPtr() << ")";
 
-  if ( HIERARCHY_GEOMETRY )
+  if(HIERARCHY_GEOMETRY)
   {
-    output << " Pos: " << actor.GetCurrentProperty< Vector3 >( Dali::Actor::Property::WORLD_POSITION ) << " Size: " << actor.GetCurrentProperty< Vector3 >( Dali::Actor::Property::SIZE ) << " Scale: " << actor.GetCurrentProperty< Vector3 >( Dali::Actor::Property::WORLD_SCALE );
+    output << " Pos: " << actor.GetCurrentProperty<Vector3>(Dali::Actor::Property::WORLD_POSITION) << " Size: " << actor.GetCurrentProperty<Vector3>(Dali::Actor::Property::SIZE) << " Scale: " << actor.GetCurrentProperty<Vector3>(Dali::Actor::Property::WORLD_SCALE);
   }
 
-  if ( HIERARCHY_SENSITIVITY )
+  if(HIERARCHY_SENSITIVITY)
   {
-    output << " Sensitivity: " << ( IsActuallySensitive( &GetImplementation( actor ) ) ? "True " : "False " );
+    output << " Sensitivity: " << (IsActuallySensitive(&GetImplementation(actor)) ? "True " : "False ");
   }
 
-  if ( HIERARCHY_TOUCH_REQUIRED )
+  if(HIERARCHY_TOUCH_REQUIRED)
   {
-    output << " TouchRequired: " << ( GetImplementation(actor).GetTouchRequired() ? "True " : "False " );
+    output << " TouchRequired: " << (GetImplementation(actor).GetTouchRequired() ? "True " : "False ");
   }
 
-  if ( HIERARCHY_HOVER_REQUIRED )
+  if(HIERARCHY_HOVER_REQUIRED)
   {
-    output << " HoverRequired: " << ( GetImplementation(actor).GetHoverRequired() ? "True " : "False " );
+    output << " HoverRequired: " << (GetImplementation(actor).GetHoverRequired() ? "True " : "False ");
   }
 
-  if ( HIERARCHY_HITTABLE )
+  if(HIERARCHY_HITTABLE)
   {
-    output << " Hittable: " << ( GetImplementation(actor).IsHittable() ? "True " : "False " );
+    output << " Hittable: " << (GetImplementation(actor).IsHittable() ? "True " : "False ");
   }
 
   output << std::endl;
 
-  if( logFilter )
+  if(logFilter)
   {
-    DALI_LOG_INFO( logFilter, HIERARCHY_DEBUG_LOG_LEVEL, output.str().c_str() );
+    DALI_LOG_INFO(logFilter, HIERARCHY_DEBUG_LOG_LEVEL, output.str().c_str());
   }
 
   ++level;
-  unsigned int numChildren=actor.GetChildCount();
-  for ( unsigned int i=0; i<numChildren; ++i )
+  unsigned int numChildren = actor.GetChildCount();
+  for(unsigned int i = 0; i < numChildren; ++i)
   {
-    PrintChildren( logFilter, actor.GetChildAt(i), level );
+    PrintChildren(logFilter, actor.GetChildAt(i), level);
   }
   --level;
 }
 
-void PrintHierarchy( Debug::Filter* logFilter )
+void PrintHierarchy(Debug::Filter* logFilter)
 {
-  if ( logFilter && logFilter->IsEnabledFor( HIERARCHY_DEBUG_LOG_LEVEL ) )
+  if(logFilter && logFilter->IsEnabledFor(HIERARCHY_DEBUG_LOG_LEVEL))
   {
-    PrintChildren( logFilter, Dali::Stage().GetCurrent().GetRootLayer(), 0 );
+    PrintChildren(logFilter, Dali::Stage().GetCurrent().GetRootLayer(), 0);
   }
 }
 
 #endif // defined(DEBUG_ENABLED)
 
-bool IsActuallySensitive( Actor* actor )
+bool IsActuallySensitive(Actor* actor)
 {
   bool sensitive = true;
 
-  while ( actor && sensitive )
+  while(actor && sensitive)
   {
     sensitive = actor->IsSensitive();
-    actor = actor->GetParent();
+    actor     = actor->GetParent();
   }
 
   return sensitive;
@@ -117,4 +115,3 @@ bool IsActuallySensitive( Actor* actor )
 } // namespace Internal
 
 } // namespace Dali
-