[dali_1.4.41] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / visuals / animated-vector-image / animated-vector-image-visual.cpp
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.h>
20
21 // EXTERNAL INCLUDES
22 #include <dali/public-api/common/stage.h>
23 #include <dali/devel-api/rendering/renderer-devel.h>
24 #include <dali/integration-api/debug.h>
25
26 // INTERNAL INCLUDES
27 #include <dali-toolkit/public-api/visuals/image-visual-properties.h>
28 #include <dali-toolkit/public-api/visuals/visual-properties.h>
29 #include <dali-toolkit/devel-api/visuals/image-visual-properties-devel.h>
30 #include <dali-toolkit/devel-api/visuals/animated-vector-image-visual-signals-devel.h>
31 #include <dali-toolkit/internal/visuals/image-visual-shader-factory.h>
32 #include <dali-toolkit/internal/visuals/visual-factory-cache.h>
33 #include <dali-toolkit/internal/visuals/visual-string-constants.h>
34 #include <dali-toolkit/internal/visuals/visual-base-data-impl.h>
35
36 namespace Dali
37 {
38
39 namespace Toolkit
40 {
41
42 namespace Internal
43 {
44
45 namespace
46 {
47
48 constexpr auto LOOP_FOREVER = -1;
49
50 const Dali::Vector4 FULL_TEXTURE_RECT( 0.f, 0.f, 1.f, 1.f );
51
52 // Flags for re-sending data to the rasterize thread
53 enum Flags
54 {
55   RESEND_PLAY_RANGE    = 1 << 0,
56   RESEND_LOOP_COUNT    = 1 << 1,
57   RESEND_STOP_BEHAVIOR = 1 << 2,
58   RESEND_LOOPING_MODE  = 1 << 3
59 };
60
61 // stop behavior
62 DALI_ENUM_TO_STRING_TABLE_BEGIN( STOP_BEHAVIOR )
63 DALI_ENUM_TO_STRING_WITH_SCOPE( Dali::Toolkit::DevelImageVisual::StopBehavior, CURRENT_FRAME )
64 DALI_ENUM_TO_STRING_WITH_SCOPE( Dali::Toolkit::DevelImageVisual::StopBehavior, FIRST_FRAME )
65 DALI_ENUM_TO_STRING_WITH_SCOPE( Dali::Toolkit::DevelImageVisual::StopBehavior, LAST_FRAME )
66 DALI_ENUM_TO_STRING_TABLE_END( STOP_BEHAVIOR )
67
68 // looping mode
69 DALI_ENUM_TO_STRING_TABLE_BEGIN( LOOPING_MODE )
70 DALI_ENUM_TO_STRING_WITH_SCOPE( Dali::Toolkit::DevelImageVisual::LoopingMode, RESTART )
71 DALI_ENUM_TO_STRING_WITH_SCOPE( Dali::Toolkit::DevelImageVisual::LoopingMode, AUTO_REVERSE )
72 DALI_ENUM_TO_STRING_TABLE_END( LOOPING_MODE )
73
74 #if defined(DEBUG_ENABLED)
75 Debug::Filter* gVectorAnimationLogFilter = Debug::Filter::New( Debug::NoLogging, false, "LOG_VECTOR_ANIMATION" );
76 #endif
77
78 } // unnamed namespace
79
80 AnimatedVectorImageVisualPtr AnimatedVectorImageVisual::New( VisualFactoryCache& factoryCache, ImageVisualShaderFactory& shaderFactory, const VisualUrl& imageUrl, const Property::Map& properties )
81 {
82   AnimatedVectorImageVisualPtr visual( new AnimatedVectorImageVisual( factoryCache, shaderFactory, imageUrl ) );
83   visual->SetProperties( properties );
84
85   return visual;
86 }
87
88 AnimatedVectorImageVisualPtr AnimatedVectorImageVisual::New( VisualFactoryCache& factoryCache, ImageVisualShaderFactory& shaderFactory, const VisualUrl& imageUrl )
89 {
90   AnimatedVectorImageVisualPtr visual( new AnimatedVectorImageVisual( factoryCache, shaderFactory, imageUrl ) );
91
92   return visual;
93 }
94
95 AnimatedVectorImageVisual::AnimatedVectorImageVisual( VisualFactoryCache& factoryCache, ImageVisualShaderFactory& shaderFactory, const VisualUrl& imageUrl )
96 : Visual::Base( factoryCache, Visual::FittingMode::FILL ),
97   mImageVisualShaderFactory( shaderFactory ),
98   mUrl( imageUrl ),
99   mVectorRasterizeThread( imageUrl.GetUrl() ),
100   mVisualSize(),
101   mVisualScale( Vector2::ONE ),
102   mPlacementActor(),
103   mLoopCount( LOOP_FOREVER ),
104   mStartFrame( 0 ),
105   mEndFrame( 0 ),
106   mResendFlag( 0 ),
107   mActionStatus( DevelAnimatedVectorImageVisual::Action::STOP ),
108   mStopBehavior( DevelImageVisual::StopBehavior::CURRENT_FRAME ),
109   mLoopingMode( DevelImageVisual::LoopingMode::RESTART ),
110   mRendererAdded( false )
111 {
112   // the rasterized image is with pre-multiplied alpha format
113   mImpl->mFlags |= Impl::IS_PREMULTIPLIED_ALPHA;
114
115   mVectorRasterizeThread.UploadCompletedSignal().Connect( this, &AnimatedVectorImageVisual::OnUploadCompleted );
116   mVectorRasterizeThread.SetAnimationFinishedCallback( new EventThreadCallback( MakeCallback( this, &AnimatedVectorImageVisual::OnAnimationFinished ) ) );
117
118   mVectorRasterizeThread.Start();
119 }
120
121 AnimatedVectorImageVisual::~AnimatedVectorImageVisual()
122 {
123 }
124
125 void AnimatedVectorImageVisual::GetNaturalSize( Vector2& naturalSize )
126 {
127   if( mVisualSize != Vector2::ZERO )
128   {
129     naturalSize = mVisualSize;
130   }
131   else
132   {
133     uint32_t width, height;
134     mVectorRasterizeThread.GetDefaultSize( width, height );
135     naturalSize.x = width;
136     naturalSize.y = height;
137   }
138
139   DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "AnimatedVectorImageVisual::GetNaturalSize: w = %f, h = %f [%p]\n", naturalSize.width, naturalSize.height, this );
140 }
141
142 void AnimatedVectorImageVisual::DoCreatePropertyMap( Property::Map& map ) const
143 {
144   map.Clear();
145   map.Insert( Toolkit::Visual::Property::TYPE, Toolkit::DevelVisual::ANIMATED_VECTOR_IMAGE );
146   if( mUrl.IsValid() )
147   {
148     map.Insert( Toolkit::ImageVisual::Property::URL, mUrl.GetUrl() );
149   }
150   map.Insert( Toolkit::DevelImageVisual::Property::LOOP_COUNT, mLoopCount );
151
152   Property::Array playRange;
153   playRange.PushBack( mStartFrame );
154   playRange.PushBack( mEndFrame );
155   map.Insert( Toolkit::DevelImageVisual::Property::PLAY_RANGE, playRange );
156
157   map.Insert( Toolkit::DevelImageVisual::Property::PLAY_STATE, static_cast< int >( mVectorRasterizeThread.GetPlayState() ) );
158   map.Insert( Toolkit::DevelImageVisual::Property::CURRENT_FRAME_NUMBER, static_cast< int32_t >( mVectorRasterizeThread.GetCurrentFrameNumber() ) );
159   map.Insert( Toolkit::DevelImageVisual::Property::TOTAL_FRAME_NUMBER, static_cast< int32_t >( mVectorRasterizeThread.GetTotalFrameNumber() ) );
160
161   map.Insert( Toolkit::DevelImageVisual::Property::STOP_BEHAVIOR, mStopBehavior );
162   map.Insert( Toolkit::DevelImageVisual::Property::LOOPING_MODE, mLoopingMode );
163 }
164
165 void AnimatedVectorImageVisual::DoCreateInstancePropertyMap( Property::Map& map ) const
166 {
167   // Do nothing
168 }
169
170 void AnimatedVectorImageVisual::DoSetProperties( const Property::Map& propertyMap )
171 {
172   // url already passed in from constructor
173   for( Property::Map::SizeType iter = 0; iter < propertyMap.Count(); ++iter )
174   {
175     KeyValuePair keyValue = propertyMap.GetKeyValue( iter );
176     if( keyValue.first.type == Property::Key::INDEX )
177     {
178       DoSetProperty( keyValue.first.indexKey, keyValue.second );
179     }
180     else
181     {
182        if( keyValue.first == LOOP_COUNT_NAME )
183        {
184           DoSetProperty( Toolkit::DevelImageVisual::Property::LOOP_COUNT, keyValue.second );
185        }
186        else if( keyValue.first == PLAY_RANGE_NAME )
187        {
188           DoSetProperty( Toolkit::DevelImageVisual::Property::PLAY_RANGE, keyValue.second );
189        }
190        else if( keyValue.first == STOP_BEHAVIOR_NAME )
191        {
192           DoSetProperty( Toolkit::DevelImageVisual::Property::STOP_BEHAVIOR, keyValue.second );
193        }
194        else if( keyValue.first == LOOPING_MODE_NAME )
195        {
196           DoSetProperty( Toolkit::DevelImageVisual::Property::LOOPING_MODE, keyValue.second );
197        }
198     }
199   }
200 }
201
202 void AnimatedVectorImageVisual::DoSetProperty( Property::Index index, const Property::Value& value )
203 {
204   switch(index)
205   {
206     case Toolkit::DevelImageVisual::Property::LOOP_COUNT:
207     {
208       int32_t loopCount;
209       if( value.Get( loopCount ) )
210       {
211         mLoopCount = loopCount;
212         mResendFlag |= RESEND_LOOP_COUNT;
213       }
214       break;
215     }
216     case Toolkit::DevelImageVisual::Property::PLAY_RANGE:
217     {
218       Property::Array* array = value.GetArray();
219       if( array )
220       {
221         size_t count = array->Count();
222         if( count >= 2 )
223         {
224           int startFrame, endFrame;
225           int totalFrame = mVectorRasterizeThread.GetTotalFrameNumber();
226           array->GetElementAt( 0 ).Get( startFrame );
227           array->GetElementAt( 1 ).Get( endFrame );
228
229           if( startFrame >= 0 && startFrame < totalFrame && endFrame >= 0 && endFrame < totalFrame )
230           {
231             mStartFrame = startFrame;
232             mEndFrame = endFrame;
233             mResendFlag |= RESEND_PLAY_RANGE;
234           }
235           else
236           {
237             DALI_LOG_ERROR( "Invalid play range [%d, %d / %d]\n", startFrame, endFrame, totalFrame );
238           }
239         }
240       }
241       break;
242     }
243     case Toolkit::DevelImageVisual::Property::STOP_BEHAVIOR:
244     {
245       int32_t stopBehavior = mStopBehavior;
246       if( Scripting::GetEnumerationProperty( value, STOP_BEHAVIOR_TABLE, STOP_BEHAVIOR_TABLE_COUNT, stopBehavior ) )
247       {
248         mStopBehavior = DevelImageVisual::StopBehavior::Type( stopBehavior );
249         mResendFlag |= RESEND_STOP_BEHAVIOR;
250       }
251       break;
252     }
253     case Toolkit::DevelImageVisual::Property::LOOPING_MODE:
254     {
255       int32_t loopingMode = mLoopingMode;
256       if( Scripting::GetEnumerationProperty( value, LOOPING_MODE_TABLE, LOOPING_MODE_TABLE_COUNT, loopingMode ) )
257       {
258         mLoopingMode = DevelImageVisual::LoopingMode::Type( loopingMode );
259         mResendFlag |= RESEND_LOOPING_MODE;
260       }
261       break;
262     }
263   }
264 }
265
266 void AnimatedVectorImageVisual::DoSetOnStage( Actor& actor )
267 {
268   Shader shader;
269
270   if( mImpl->mCustomShader )
271   {
272     shader = Shader::New( mImpl->mCustomShader->mVertexShader.empty() ? mImageVisualShaderFactory.GetVertexShaderSource() : mImpl->mCustomShader->mVertexShader,
273                           mImpl->mCustomShader->mFragmentShader.empty() ? mImageVisualShaderFactory.GetFragmentShaderSource() : mImpl->mCustomShader->mFragmentShader,
274                           mImpl->mCustomShader->mHints );
275
276     shader.RegisterProperty( PIXEL_AREA_UNIFORM_NAME, FULL_TEXTURE_RECT );
277   }
278   else
279   {
280     shader = mImageVisualShaderFactory.GetShader( mFactoryCache, false, true );
281   }
282
283   Geometry geometry = mFactoryCache.GetGeometry( VisualFactoryCache::QUAD_GEOMETRY );
284
285   mImpl->mRenderer = Renderer::New( geometry, shader );
286
287   TextureSet textureSet = TextureSet::New();
288   mImpl->mRenderer.SetTextures( textureSet );
289
290   // Register transform properties
291   mImpl->mTransform.RegisterUniforms( mImpl->mRenderer, Direction::LEFT_TO_RIGHT );
292
293   // Defer the rasterisation task until we get given a size (by Size Negotiation algorithm)
294
295   // Hold the weak handle of the placement actor and delay the adding of renderer until the rasterization is finished.
296   mPlacementActor = actor;
297
298   mVectorRasterizeThread.SetRenderer( mImpl->mRenderer );
299
300   // Add property notification for scaling & size
301   mScaleNotification = actor.AddPropertyNotification( Actor::Property::WORLD_SCALE, StepCondition( 0.1f, 1.0f ) );
302   mScaleNotification.NotifySignal().Connect( this, &AnimatedVectorImageVisual::OnScaleNotification );
303
304   mSizeNotification = actor.AddPropertyNotification( Actor::Property::SIZE, StepCondition( 3.0f ) );
305   mSizeNotification.NotifySignal().Connect( this, &AnimatedVectorImageVisual::OnSizeNotification );
306
307   DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "AnimatedVectorImageVisual::DoSetOnStage [%p]\n", this );
308 }
309
310 void AnimatedVectorImageVisual::DoSetOffStage( Actor& actor )
311 {
312   mVectorRasterizeThread.PauseAnimation();
313
314   mActionStatus = DevelAnimatedVectorImageVisual::Action::PAUSE;
315
316   if( mImpl->mRenderer )
317   {
318     mImpl->mRenderer.SetProperty( DevelRenderer::Property::RENDERING_BEHAVIOR, DevelRenderer::Rendering::IF_REQUIRED );
319
320     actor.RemoveRenderer( mImpl->mRenderer );
321     mImpl->mRenderer.Reset();
322
323     mRendererAdded = false;
324   }
325
326   // Remove property notification
327   actor.RemovePropertyNotification( mScaleNotification );
328   actor.RemovePropertyNotification( mSizeNotification );
329
330   mPlacementActor.Reset();
331
332   // Reset the visual size to zero so that when adding the actor back to stage the rasterization is forced
333   mVisualSize = Vector2::ZERO;
334   mVisualScale = Vector2::ONE;
335
336   DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "AnimatedVectorImageVisual::DoSetOffStage [%p]\n", this );
337 }
338
339 void AnimatedVectorImageVisual::OnSetTransform()
340 {
341   Vector2 visualSize = mImpl->mTransform.GetVisualSize( mImpl->mControlSize );
342
343   if( IsOnStage() && visualSize != mVisualSize )
344   {
345     DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "AnimatedVectorImageVisual::OnSetTransform: width = %f, height = %f [%p]\n", visualSize.width, visualSize.height, this );
346
347     mVisualSize = visualSize;
348
349     SetVectorImageSize();
350
351     SendAnimationData();
352
353     if( mActionStatus == DevelAnimatedVectorImageVisual::Action::PLAY )
354     {
355       mVectorRasterizeThread.PlayAnimation();
356
357       mImpl->mRenderer.SetProperty( DevelRenderer::Property::RENDERING_BEHAVIOR, DevelRenderer::Rendering::CONTINUOUSLY );
358     }
359     else
360     {
361       // Render one frame
362       mVectorRasterizeThread.RenderFrame();
363     }
364   }
365 }
366
367 void AnimatedVectorImageVisual::OnDoAction( const Property::Index actionId, const Property::Value& attributes )
368 {
369   // Check if action is valid for this visual type and perform action if possible
370   switch( actionId )
371   {
372     case DevelAnimatedVectorImageVisual::Action::PLAY:
373     {
374       if( IsOnStage() && mVisualSize != Vector2::ZERO )
375       {
376         mVectorRasterizeThread.PlayAnimation();
377
378         mImpl->mRenderer.SetProperty( DevelRenderer::Property::RENDERING_BEHAVIOR, DevelRenderer::Rendering::CONTINUOUSLY );
379       }
380       mActionStatus = DevelAnimatedVectorImageVisual::Action::PLAY;
381       break;
382     }
383     case DevelAnimatedVectorImageVisual::Action::PAUSE:
384     {
385       mVectorRasterizeThread.PauseAnimation();
386
387       if( mImpl->mRenderer )
388       {
389         mImpl->mRenderer.SetProperty( DevelRenderer::Property::RENDERING_BEHAVIOR, DevelRenderer::Rendering::IF_REQUIRED );
390       }
391
392       mActionStatus = DevelAnimatedVectorImageVisual::Action::PAUSE;
393       break;
394     }
395     case DevelAnimatedVectorImageVisual::Action::STOP:
396     {
397       if( mVectorRasterizeThread.GetPlayState() != DevelImageVisual::PlayState::STOPPED )
398       {
399         mVectorRasterizeThread.StopAnimation();
400       }
401
402       if( mImpl->mRenderer )
403       {
404         mImpl->mRenderer.SetProperty( DevelRenderer::Property::RENDERING_BEHAVIOR, DevelRenderer::Rendering::IF_REQUIRED );
405       }
406
407       mActionStatus = DevelAnimatedVectorImageVisual::Action::STOP;
408       break;
409     }
410     case DevelAnimatedVectorImageVisual::Action::JUMP_TO:
411     {
412       int32_t frameNumber;
413       if( attributes.Get( frameNumber ) )
414       {
415         mVectorRasterizeThread.SetCurrentFrameNumber( frameNumber );
416
417         if( IsOnStage() && mVectorRasterizeThread.GetPlayState() != DevelImageVisual::PlayState::PLAYING )
418         {
419           mVectorRasterizeThread.RenderFrame();
420           Stage::GetCurrent().KeepRendering( 0.0f );    // Trigger rendering
421         }
422       }
423       break;
424     }
425     case DevelAnimatedVectorImageVisual::Action::UPDATE_PROPERTY:
426     {
427       Property::Map* map = attributes.GetMap();
428       if( map )
429       {
430         DoSetProperties( *map );
431
432         SendAnimationData();
433       }
434       break;
435     }
436   }
437 }
438
439 void AnimatedVectorImageVisual::OnUploadCompleted()
440 {
441   // If weak handle is holding a placement actor, it is the time to add the renderer to actor.
442   Actor actor = mPlacementActor.GetHandle();
443   if( actor && !mRendererAdded )
444   {
445     actor.AddRenderer( mImpl->mRenderer );
446     mRendererAdded = true;
447   }
448
449   ResourceReady( Toolkit::Visual::ResourceStatus::READY );
450
451   DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "AnimatedVectorImageVisual::OnUploadCompleted: Renderer is added [%p]\n", this );
452 }
453
454 void AnimatedVectorImageVisual::OnAnimationFinished()
455 {
456   DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "AnimatedVectorImageVisual::OnAnimationFinished: action state = %d [%p]\n", mActionStatus, this );
457
458   if( mActionStatus != DevelAnimatedVectorImageVisual::Action::STOP )
459   {
460     mActionStatus = DevelAnimatedVectorImageVisual::Action::STOP;
461
462     if( mImpl->mEventObserver )
463     {
464       mImpl->mEventObserver->NotifyVisualEvent( *this, DevelAnimatedVectorImageVisual::Signal::ANIMATION_FINISHED );
465     }
466   }
467
468   if( mImpl->mRenderer )
469   {
470     mImpl->mRenderer.SetProperty( DevelRenderer::Property::RENDERING_BEHAVIOR, DevelRenderer::Rendering::IF_REQUIRED );
471   }
472 }
473
474 void AnimatedVectorImageVisual::SendAnimationData()
475 {
476   if( mResendFlag )
477   {
478     bool isPlaying = false;
479     if( mVectorRasterizeThread.GetPlayState() == DevelImageVisual::PlayState::PLAYING )
480     {
481       mVectorRasterizeThread.PauseAnimation();
482       isPlaying = true;
483     }
484
485     if( mResendFlag & RESEND_LOOP_COUNT )
486     {
487       mVectorRasterizeThread.SetLoopCount( mLoopCount );
488     }
489
490     if( mResendFlag & RESEND_PLAY_RANGE )
491     {
492       mVectorRasterizeThread.SetPlayRange( mStartFrame, mEndFrame );
493     }
494
495     if( mResendFlag & RESEND_STOP_BEHAVIOR )
496     {
497       mVectorRasterizeThread.SetStopBehavior( mStopBehavior );
498     }
499
500     if( mResendFlag & RESEND_LOOPING_MODE )
501     {
502       mVectorRasterizeThread.SetLoopingMode( mLoopingMode );
503     }
504
505     if( IsOnStage() )
506     {
507       if( isPlaying )
508       {
509         mVectorRasterizeThread.PlayAnimation();
510       }
511       else
512       {
513         mVectorRasterizeThread.RenderFrame();
514         Stage::GetCurrent().KeepRendering( 0.0f );
515       }
516     }
517
518     mResendFlag = 0;
519   }
520 }
521
522 void AnimatedVectorImageVisual::SetVectorImageSize()
523 {
524   uint32_t width = static_cast< uint32_t >( mVisualSize.width * mVisualScale.width );
525   uint32_t height = static_cast< uint32_t >( mVisualSize.height * mVisualScale.height );
526
527   mVectorRasterizeThread.SetSize( width, height );
528
529   if( IsOnStage() && mVectorRasterizeThread.GetPlayState() != DevelImageVisual::PlayState::PLAYING )
530   {
531     mVectorRasterizeThread.RenderFrame();
532     Stage::GetCurrent().KeepRendering( 0.0f );    // Trigger rendering
533   }
534 }
535
536 void AnimatedVectorImageVisual::OnScaleNotification( PropertyNotification& source )
537 {
538   Actor actor = mPlacementActor.GetHandle();
539   if( actor )
540   {
541     Vector3 scale = actor.GetProperty< Vector3 >( Actor::Property::WORLD_SCALE );
542     mVisualScale.width = scale.width;
543     mVisualScale.height = scale.height;
544
545     DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "AnimatedVectorImageVisual::OnScaleNotification: scale = %f, %f [%p]\n", mVisualScale.width, mVisualScale.height, this );
546
547     SetVectorImageSize();
548   }
549 }
550
551 void AnimatedVectorImageVisual::OnSizeNotification( PropertyNotification& source )
552 {
553   Actor actor = mPlacementActor.GetHandle();
554   if( actor )
555   {
556     Vector3 size = actor.GetCurrentSize();
557     mVisualSize.width = size.width;
558     mVisualSize.height = size.height;
559
560     DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "AnimatedVectorImageVisual::OnSizeNotification: size = %f, %f [%p]\n", mVisualSize.width, mVisualSize.height, this );
561
562     SetVectorImageSize();
563   }
564 }
565
566 } // namespace Internal
567
568 } // namespace Toolkit
569
570 } // namespace Dali