Moved Gesture::State and -::Type to gesture-enumerations.h.
[platform/core/uifw/dali-demo.git] / examples / image-view-svg / image-view-svg-example.cpp
index 05eae9a..fa3f1cb 100755 (executable)
@@ -153,7 +153,7 @@ public:
   // Callback of pan gesture, for moving the actors
   void OnPanGesture( Actor actor, const PanGesture& gesture )
   {
-    if( gesture.GetState() == Gesture::Continuing )
+    if( gesture.GetState() == GestureState::CONTINUING )
     {
       for( unsigned int i = 0; i < NUM_IMAGES_DISPLAYED; i++ )
       {
@@ -169,8 +169,8 @@ public:
     {
       // Only scale the image when we start or continue pinching
 
-      case Gesture::Started:
-      case Gesture::Continuing:
+      case GestureState::STARTED:
+      case GestureState::CONTINUING:
       {
         float scale = std::max( gesture.GetScale(), MIN_SCALE / mScale );
         scale = std::min( MAX_SCALE / mScale, scale );
@@ -182,7 +182,7 @@ public:
         break;
       }
 
-      case Gesture::Finished:
+      case GestureState::FINISHED:
       {
         // Resize the image when pinching is complete, this will rasterize the SVG to the new size
 
@@ -197,9 +197,9 @@ public:
         break;
       }
 
-      case Gesture::Cancelled:
-      case Gesture::Clear:
-      case Gesture::Possible:
+      case GestureState::CANCELLED:
+      case GestureState::CLEAR:
+      case GestureState::POSSIBLE:
         break;
     }
   }