2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <dali/devel-api/adaptor-framework/vector-animation-renderer.h>
22 #include <dali/internal/vector-animation/common/vector-animation-renderer-impl.h>
27 VectorAnimationRenderer VectorAnimationRenderer::New( const std::string& url )
29 Internal::Adaptor::VectorAnimationRendererPtr animationRenderer = Internal::Adaptor::VectorAnimationRenderer::New();
30 if( animationRenderer )
32 animationRenderer->Initialize( url );
35 return VectorAnimationRenderer( animationRenderer.Get() );
38 VectorAnimationRenderer::VectorAnimationRenderer()
42 VectorAnimationRenderer::~VectorAnimationRenderer()
46 VectorAnimationRenderer::VectorAnimationRenderer( Internal::Adaptor::VectorAnimationRenderer* internal )
47 : BaseHandle( internal )
51 VectorAnimationRenderer::VectorAnimationRenderer( const VectorAnimationRenderer& handle )
52 : BaseHandle( handle )
56 VectorAnimationRenderer& VectorAnimationRenderer::operator=( const VectorAnimationRenderer& rhs )
58 BaseHandle::operator=( rhs );
62 void VectorAnimationRenderer::Finalize()
64 GetImplementation( *this ).Finalize();
67 void VectorAnimationRenderer::SetRenderer( Renderer renderer )
69 GetImplementation( *this ).SetRenderer( renderer );
72 void VectorAnimationRenderer::SetSize( uint32_t width, uint32_t height )
74 GetImplementation( *this ).SetSize( width, height );
77 bool VectorAnimationRenderer::Render( uint32_t frameNumber )
79 return GetImplementation( *this ).Render( frameNumber );
82 uint32_t VectorAnimationRenderer::GetTotalFrameNumber() const
84 return GetImplementation( *this ).GetTotalFrameNumber();
87 float VectorAnimationRenderer::GetFrameRate() const
89 return GetImplementation( *this ).GetFrameRate();
92 void VectorAnimationRenderer::GetDefaultSize( uint32_t& width, uint32_t& height ) const
94 GetImplementation( *this ).GetDefaultSize( width, height );
97 void VectorAnimationRenderer::GetLayerInfo( Property::Map& map ) const
99 GetImplementation( *this ).GetLayerInfo( map );
102 VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
104 return GetImplementation( *this ).UploadCompletedSignal();