From: Adeel Kazmi Date: Mon, 5 Jun 2017 15:47:20 +0000 (+0100) Subject: Using new Devel API with depth index to register visuals X-Git-Tag: submit/tizen/20170607.061735^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f37619bd437b8510461adacde1d5fb2211cd03c;p=platform%2Fcore%2Fuifw%2Fdali-demo.git Using new Devel API with depth index to register visuals Change-Id: I0a763c685579514190af214572c1082a64264fa5 --- diff --git a/examples/transitions/shadow-button-impl.cpp b/examples/transitions/shadow-button-impl.cpp index edcfbecc..403a3553 100644 --- a/examples/transitions/shadow-button-impl.cpp +++ b/examples/transitions/shadow-button-impl.cpp @@ -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; } }