1 #ifndef DALI_INTERNAL_UBUNTU_LINEAR_GRADIENT_IMPL_UBUNTU_H
2 #define DALI_INTERNAL_UBUNTU_LINEAR_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>
26 #include <dali/public-api/object/weak-handle.h>
29 #include <dali/devel-api/adaptor-framework/canvas-renderer-linear-gradient.h>
30 #include <dali/internal/canvas-renderer/common/linear-gradient-impl.h>
39 * Dali internal LinearGradient.
41 class LinearGradientUbuntu : public Dali::Internal::Adaptor::LinearGradient
45 * @brief Creates a LinearGradient object.
46 * @return A pointer to a newly allocated drawablegroup
48 static LinearGradientUbuntu* New();
51 * @copydoc Dali::CanvasRenderer::LinearGradient::SetBounds()
53 bool SetBounds(Vector2 firstPoint, Vector2 secondPoint) override;
56 * @copydoc Dali::CanvasRenderer::LinearGradient::SetBounds()
58 bool GetBounds(Vector2& firstPoint, Vector2& secondPoint) const override;
61 LinearGradientUbuntu(const LinearGradientUbuntu&) = delete;
62 LinearGradientUbuntu& operator=(LinearGradientUbuntu&) = delete;
63 LinearGradientUbuntu(LinearGradientUbuntu&&) = delete;
64 LinearGradientUbuntu& operator=(LinearGradientUbuntu&&) = delete;
69 LinearGradientUbuntu();
74 virtual ~LinearGradientUbuntu() override;
78 * @brief Initializes member data.
84 tvg::LinearGradient* mTvgLinearGradient;
88 } // namespace Adaptor
90 } // namespace Internal
94 #endif // DALI_INTERNAL_UBUNTU_LINEAR_GRADIENT_IMPL_UBUNTU_H