2 * Copyright (c) 2021 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>
26 VectorAnimationRenderer VectorAnimationRenderer::New()
28 Internal::Adaptor::VectorAnimationRendererPtr animationRenderer = Internal::Adaptor::VectorAnimationRenderer::New();
29 return VectorAnimationRenderer(animationRenderer.Get());
32 VectorAnimationRenderer::VectorAnimationRenderer()
36 VectorAnimationRenderer::~VectorAnimationRenderer()
40 VectorAnimationRenderer::VectorAnimationRenderer(Internal::Adaptor::VectorAnimationRenderer* internal)
41 : BaseHandle(internal)
45 VectorAnimationRenderer::VectorAnimationRenderer(const VectorAnimationRenderer& handle)
50 VectorAnimationRenderer& VectorAnimationRenderer::operator=(const VectorAnimationRenderer& rhs)
52 BaseHandle::operator=(rhs);
56 void VectorAnimationRenderer::Finalize()
58 GetImplementation(*this).Finalize();
61 bool VectorAnimationRenderer::Load(const std::string& url)
63 return GetImplementation(*this).Load(url);
66 void VectorAnimationRenderer::SetRenderer(Renderer renderer)
68 GetImplementation(*this).SetRenderer(renderer);
71 void VectorAnimationRenderer::SetSize(uint32_t width, uint32_t height)
73 GetImplementation(*this).SetSize(width, height);
76 bool VectorAnimationRenderer::Render(uint32_t frameNumber)
78 return GetImplementation(*this).Render(frameNumber);
81 uint32_t VectorAnimationRenderer::GetTotalFrameNumber() const
83 return GetImplementation(*this).GetTotalFrameNumber();
86 float VectorAnimationRenderer::GetFrameRate() const
88 return GetImplementation(*this).GetFrameRate();
91 void VectorAnimationRenderer::GetDefaultSize(uint32_t& width, uint32_t& height) const
93 GetImplementation(*this).GetDefaultSize(width, height);
96 void VectorAnimationRenderer::GetLayerInfo(Property::Map& map) const
98 GetImplementation(*this).GetLayerInfo(map);
101 bool VectorAnimationRenderer::GetMarkerInfo(const std::string& marker, uint32_t& startFrame, uint32_t& endFrame) const
103 return GetImplementation(*this).GetMarkerInfo(marker, startFrame, endFrame);
106 void VectorAnimationRenderer::IgnoreRenderedFrame()
108 GetImplementation(*this).IgnoreRenderedFrame();
111 VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
113 return GetImplementation(*this).UploadCompletedSignal();