Commit 6f37619bd437b8510461adacde1d5fb2211cd03c

Authored by Adeel Kazmi
1 parent 386c24d2

Using new Devel API with depth index to register visuals

Change-Id: I0a763c685579514190af214572c1082a64264fa5
examples/transitions/shadow-button-impl.cpp
@@ -353,26 +353,22 @@ void ShadowButton::ResetVisual( @@ -353,26 +353,22 @@ void ShadowButton::ResetVisual(
353 { 353 {
354 case Demo::ShadowButton::Property::BACKGROUND_VISUAL: 354 case Demo::ShadowButton::Property::BACKGROUND_VISUAL:
355 { 355 {
356 - DevelControl::RegisterVisual( *this, index, visual );  
357 - visual.SetDepthIndex(0.0f); 356 + DevelControl::RegisterVisual( *this, index, visual, 0.0f );
358 break; 357 break;
359 } 358 }
360 case Demo::ShadowButton::Property::CHECKBOX_BG_VISUAL: 359 case Demo::ShadowButton::Property::CHECKBOX_BG_VISUAL:
361 { 360 {
362 - DevelControl::RegisterVisual( *this, index, visual );  
363 - visual.SetDepthIndex(1.0f); 361 + DevelControl::RegisterVisual( *this, index, visual, 1.0f );
364 break; 362 break;
365 } 363 }
366 case Demo::ShadowButton::Property::CHECKBOX_FG_VISUAL: 364 case Demo::ShadowButton::Property::CHECKBOX_FG_VISUAL:
367 { 365 {
368 - DevelControl::RegisterVisual( *this, index, visual, mCheckState );  
369 - visual.SetDepthIndex(2.0f); 366 + DevelControl::RegisterVisual( *this, index, visual, mCheckState, 2.0f );
370 break; 367 break;
371 } 368 }
372 case Demo::ShadowButton::Property::LABEL_VISUAL: 369 case Demo::ShadowButton::Property::LABEL_VISUAL:
373 { 370 {
374 - DevelControl::RegisterVisual( *this, index, visual );  
375 - visual.SetDepthIndex(1.0f); 371 + DevelControl::RegisterVisual( *this, index, visual, 1.0f );
376 break; 372 break;
377 } 373 }
378 } 374 }