1 #ifndef DALI_INTERNAL_UBUNTU_GRADIENT_IMPL_UBUNTU_H
2 #define DALI_INTERNAL_UBUNTU_GRADIENT_IMPL_UBUNTU_H
5 * Copyright (c) 2021 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-gradient.h>
29 #include <dali/devel-api/adaptor-framework/canvas-renderer.h>
30 #include <dali/internal/canvas-renderer/common/gradient-impl.h>
31 #include <dali/internal/canvas-renderer/ubuntu/canvas-renderer-impl-ubuntu.h>
40 * Dali internal Gradient.
42 class GradientUbuntu : public Dali::Internal::Adaptor::Gradient
46 * @brief Creates a Gradient object.
47 * @return A pointer to a newly allocated Gradient
49 static GradientUbuntu* New();
52 * @copydoc Dali::CanvasRenderer::Gradient::SetColorStops()
54 bool SetColorStops(Dali::CanvasRenderer::Gradient::ColorStops& colorStops) override;
57 * @copydoc Dali::CanvasRenderer::Gradient::GetColorStops()
59 Dali::CanvasRenderer::Gradient::ColorStops GetColorStops() const override;
62 * @copydoc Dali::CanvasRenderer::Gradient::SetSpread()
64 bool SetSpread(Dali::CanvasRenderer::Gradient::Spread spread) override;
67 * @copydoc Dali::CanvasRenderer::Gradient::GetSpread()
69 Dali::CanvasRenderer::Gradient::Spread GetSpread() const override;
72 * @copydoc Internal::Adaptor::Gradient::GetObject()
74 void SetObject(const void* object) override;
77 * @copydoc Internal::Adaptor::Gradient::SetObject()
79 void* GetObject() const override;
82 * @copydoc Internal::Adaptor::Gradient::SetChanged()
84 void SetChanged(bool changed) override;
87 * @copydoc Internal::Adaptor::Gradient::GetChanged()
89 bool GetChanged() const override;
91 GradientUbuntu(const Gradient&) = delete;
92 GradientUbuntu& operator=(Gradient&) = delete;
93 GradientUbuntu(Gradient&&) = delete;
94 GradientUbuntu& operator=(Gradient&&) = delete;
105 virtual ~GradientUbuntu() override;
109 #ifdef THORVG_SUPPORT
114 } // namespace Adaptor
116 } // namespace Internal
120 #endif // DALI_INTERNAL_UBUNTU_GRADIENT_IMPL_UBUNTU_H