{
}
-void Cluster::OnSizeSet( const Vector3& targetSize )
+void Cluster::OnControlSizeSet( const Vector3& targetSize )
{
mClusterSize = targetSize;
GetImpl(mClusterStyle).SetClusterSize(targetSize);
private: // From Control
/**
- * @copydoc Control::OnInitialize()
+ * @copydoc Demo::Control::OnInitialize()
*/
virtual void OnInitialize();
/**
*
- * @copydoc CustomActorImpl::OnSizeSet( const Vector3& targetSize )
+ * @copydoc Demo::Control::OnControlSizeSet( const Vector3& targetSize )
*/
- virtual void OnSizeSet( const Vector3& targetSize );
+ virtual void OnControlSizeSet( const Vector3& targetSize );
protected:
// Tool bar
Dali::Image image = Dali::ResourceImage::New( toolbarImagePath );
+ Dali::ImageActor toolBarBackground = Dali::ImageActor::New( image );
+ toolBarBackground.SetName( "TOOLBAR_BACKGROUND" );
+ toolBarBackground.SetResizePolicy( Dali::ResizePolicy::FILL_TO_PARENT, Dali::Dimension::ALL_DIMENSIONS );
toolBar = Dali::Toolkit::ToolBar::New();
toolBar.SetName( "TOOLBAR" );
- toolBar.SetBackgroundImage( image );
+ toolBar.SetBackground( toolBarBackground );
toolBar.SetParentOrigin( Dali::ParentOrigin::TOP_CENTER );
toolBar.SetAnchorPoint( Dali::AnchorPoint::TOP_CENTER );
toolBar.SetResizePolicy( Dali::ResizePolicy::FILL_TO_PARENT, Dali::Dimension::ALL_DIMENSIONS );
+ toolBarBackground.SetSortModifier(1.0f);
// Add the tool bar to the too bar layer.
toolBarLayer.Add( toolBar );