1 #ifndef DALI_INTERNAL_TIZEN_PICTURE_IMPL_TIZEN_H
2 #define DALI_INTERNAL_TIZEN_PICTURE_IMPL_TIZEN_H
5 * Copyright (c) 2022 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
25 #include <dali/public-api/object/base-object.h>
28 #include <dali/devel-api/adaptor-framework/canvas-renderer/canvas-renderer-picture.h>
29 #include <dali/internal/canvas-renderer/common/picture-impl.h>
38 * Dali internal Picture.
40 class PictureTizen : public Dali::Internal::Adaptor::Picture
44 * @brief Creates a Picture object.
45 * @return A pointer to a newly allocated picture
47 static PictureTizen* New();
50 * @copydoc Dali::CanvasRenderer::Picture::Load()
52 bool Load(const std::string& url) override;
55 * @copydoc Dali::CanvasRenderer::Picture::SetSize()
57 bool SetSize(Vector2 size) override;
60 * @copydoc Dali::CanvasRenderer::Picture::GetSize()
62 Vector2 GetSize() const override;
65 PictureTizen(const PictureTizen&) = delete;
66 PictureTizen& operator=(PictureTizen&) = delete;
67 PictureTizen(PictureTizen&&) = delete;
68 PictureTizen& operator=(PictureTizen&&) = delete;
78 ~PictureTizen() override;
82 * @brief Initializes member data.
88 tvg::Picture* mTvgPicture;
92 } // namespace Adaptor
94 } // namespace Internal
98 #endif // DALI_INTERNAL_TIZEN_PICTURE_IMPL_TIZEN_H