// Creates a default view with a default tool bar.
// The view is added to the stage.
Toolkit::ToolBar toolBar;
- Toolkit::Control view;
Layer content = DemoHelper::CreateView( app,
- view,
+ mBackground,
toolBar,
"",
TOOLBAR_IMAGE,
content.Add( bubbleRoot );
// Add the background image actor to stage
- view.SetBackgroundImage( mBackgroundImage );
- mBackgroundActor = ImageActor::DownCast( view.GetBackgroundActor() );
+ mBackground.SetBackgroundImage( mBackgroundImage );
// Set up the timer to emit bubble regularly when the finger is touched down but not moved
mTimerForBubbleEmission = Timer::New( mTimerInterval );
mTimerForBubbleEmission.TickSignal().Connect(this, &BubbleEffectExample::OnTimerTick);
// Connect the callback to the touch signal on the background
- mBackgroundActor.TouchedSignal().Connect( this, &BubbleEffectExample::OnTouch );
+ mBackground.TouchedSignal().Connect( this, &BubbleEffectExample::OnTouch );
}
mBubbleEmitter.SetBackground( mBackgroundImage, mHSVDelta );
- mBackgroundActor.SetImage( mBackgroundImage );
+ mBackground.SetBackgroundImage( mBackgroundImage );
}
else if( button == mChangeBubbleShapeButton )
{
Application& mApp;
Image mBackgroundImage;
- ImageActor mBackgroundActor;
+ Dali::Toolkit::Control mBackground;
Toolkit::BubbleEmitter mBubbleEmitter;
Vector3 mHSVDelta;