Refactoring Gestures Class
[platform/core/uifw/dali-toolkit.git] / docs / content / example-code / properties.cpp
index bbf5ae0..e8f4d56 100644 (file)
@@ -95,7 +95,7 @@ public:
    * param[in] touch The touch-event
    * return Set to true if the signal was consumed correctly
    */
-  bool OnTouched( Actor actor, const TouchData& touch )
+  bool OnTouched( Actor actor, const TouchEvent& touch )
   {
     int touchedCount = 0;
 
@@ -113,7 +113,7 @@ public:
     valueText << touchedCount;
     mTagText.SetProperty( TextLabel::Property::TEXT, valueText.str() );
 
-    return true; // Consumed
+    return true; // Consumed meaning any gestures will be cancelled
   }
   // C++ EXAMPLE END