2 * Copyright (c) 2022 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-toolkit/devel-api/controls/effects-view/effects-view.h>
22 #include <dali-toolkit/internal/controls/effects-view/effects-view-impl.h>
28 EffectsView EffectsView::New(EffectType type)
30 EffectsView effectsView = Internal::EffectsView::New();
31 GetImpl(effectsView).SetType(type);
35 EffectsView::EffectsView()
39 EffectsView::EffectsView(const EffectsView& handle) = default;
41 EffectsView& EffectsView::operator=(const EffectsView& handle) = default;
43 EffectsView::EffectsView(EffectsView&& handle) = default;
45 EffectsView& EffectsView::operator=(EffectsView&& handle) = default;
47 EffectsView EffectsView::DownCast(BaseHandle handle)
49 return Control::DownCast<EffectsView, Internal::EffectsView>(handle);
52 EffectsView::~EffectsView()
56 EffectsView::EffectType EffectsView::GetType() const
58 return GetImpl(*this).GetType();
61 void EffectsView::Refresh()
63 GetImpl(*this).Refresh();
66 void EffectsView::SetRefreshOnDemand(bool onDemand)
68 GetImpl(*this).SetRefreshOnDemand(onDemand);
71 void EffectsView::SetPixelFormat(Pixel::Format pixelFormat)
73 GetImpl(*this).SetPixelFormat(pixelFormat);
76 void EffectsView::SetBackgroundColor(const Vector4& color)
78 GetImpl(*this).SetBackgroundColor(color);
81 Vector4 EffectsView::GetBackgroundColor() const
83 return GetImpl(*this).GetBackgroundColor();
86 EffectsView::EffectsView(Internal::EffectsView& implementation)
87 : Control(implementation)
91 EffectsView::EffectsView(Dali::Internal::CustomActor* internal)
94 VerifyCustomActorPointer<Internal::EffectsView>(internal);