/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
Actor VectorBasedRenderer::Render( Text::ViewInterface& view,
+ Actor textControl,
+ Property::Index animatablePropertyIndex,
float& alignmentOffset,
int /*depth*/ )
{
UnparentAndReset( mImpl->mActor );
mImpl->mActor = Actor::New();
- mImpl->mActor.SetParentOrigin( ParentOrigin::CENTER );
- mImpl->mActor.SetSize( view.GetControlSize() );
- mImpl->mActor.SetColor( Color::WHITE );
+ mImpl->mActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+ mImpl->mActor.SetProperty( Actor::Property::SIZE, Vector2( view.GetControlSize() ) );
+ mImpl->mActor.SetProperty( Actor::Property::COLOR, Color::WHITE );
#if defined(DEBUG_ENABLED)
- mImpl->mActor.SetName( "Text renderable actor" );
+ mImpl->mActor.SetProperty( Dali::Actor::Property::NAME, "Text renderable actor" );
#endif
Length numberOfGlyphs = view.GetNumberOfGlyphs();