2 * Copyright (c) 2020 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)
44 EffectsView& EffectsView::operator=(const EffectsView& rhs)
48 Control::operator=(rhs);
53 EffectsView EffectsView::DownCast(BaseHandle handle)
55 return Control::DownCast<EffectsView, Internal::EffectsView>(handle);
58 EffectsView::~EffectsView()
62 EffectsView::EffectType EffectsView::GetType() const
64 return GetImpl(*this).GetType();
67 void EffectsView::Refresh()
69 GetImpl(*this).Refresh();
72 void EffectsView::SetRefreshOnDemand(bool onDemand)
74 GetImpl(*this).SetRefreshOnDemand(onDemand);
77 void EffectsView::SetPixelFormat(Pixel::Format pixelFormat)
79 GetImpl(*this).SetPixelFormat(pixelFormat);
82 void EffectsView::SetBackgroundColor(const Vector4& color)
84 GetImpl(*this).SetBackgroundColor(color);
87 Vector4 EffectsView::GetBackgroundColor() const
89 return GetImpl(*this).GetBackgroundColor();
92 EffectsView::EffectsView(Internal::EffectsView& implementation)
93 : Control(implementation)
97 EffectsView::EffectsView(Dali::Internal::CustomActor* internal)
100 VerifyCustomActorPointer<Internal::EffectsView>(internal);
103 } //namespace Toolkit