Using new Devel API with depth index to register visuals 85/132485/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 5 Jun 2017 15:47:20 +0000 (16:47 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 5 Jun 2017 15:47:20 +0000 (16:47 +0100)
Change-Id: I0a763c685579514190af214572c1082a64264fa5

examples/transitions/shadow-button-impl.cpp

index edcfbeccdeeffaae4f6ea1130135130696d60aad..403a35537bff9003ac7f507c62dca669ddf35c69 100644 (file)
@@ -353,26 +353,22 @@ void ShadowButton::ResetVisual(
     {
       case Demo::ShadowButton::Property::BACKGROUND_VISUAL:
       {
-        DevelControl::RegisterVisual( *this, index, visual );
-        visual.SetDepthIndex(0.0f);
+        DevelControl::RegisterVisual( *this, index, visual, 0.0f );
         break;
       }
       case Demo::ShadowButton::Property::CHECKBOX_BG_VISUAL:
       {
-        DevelControl::RegisterVisual( *this, index, visual );
-        visual.SetDepthIndex(1.0f);
+        DevelControl::RegisterVisual( *this, index, visual, 1.0f );
         break;
       }
       case Demo::ShadowButton::Property::CHECKBOX_FG_VISUAL:
       {
-        DevelControl::RegisterVisual( *this, index, visual, mCheckState );
-        visual.SetDepthIndex(2.0f);
+        DevelControl::RegisterVisual( *this, index, visual, mCheckState, 2.0f );
         break;
       }
       case Demo::ShadowButton::Property::LABEL_VISUAL:
       {
-        DevelControl::RegisterVisual( *this, index, visual );
-        visual.SetDepthIndex(1.0f);
+        DevelControl::RegisterVisual( *this, index, visual, 1.0f );
         break;
       }
     }