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 353 {
354 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 357 break;
359 358 }
360 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 362 break;
365 363 }
366 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 367 break;
371 368 }
372 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 372 break;
377 373 }
378 374 }
... ...