2 * Copyright (c) 2015 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>
30 EffectsView EffectsView::New( EffectType type )
32 EffectsView effectsView = Internal::EffectsView::New();
33 GetImpl(effectsView).SetType( type );
37 EffectsView::EffectsView()
41 EffectsView::EffectsView( const EffectsView& handle )
46 EffectsView& EffectsView::operator=( const EffectsView& rhs )
50 Control::operator=(rhs);
55 EffectsView EffectsView::DownCast( BaseHandle handle )
57 return Control::DownCast<EffectsView, Internal::EffectsView>(handle);
60 EffectsView::~EffectsView()
64 EffectsView::EffectType EffectsView::GetType() const
66 return GetImpl(*this).GetType();
69 void EffectsView::Refresh()
71 GetImpl(*this).Refresh();
74 void EffectsView::SetRefreshOnDemand( bool onDemand )
76 GetImpl(*this).SetRefreshOnDemand( onDemand );
79 void EffectsView::SetPixelFormat( Pixel::Format pixelFormat )
81 GetImpl(*this).SetPixelFormat( pixelFormat );
84 void EffectsView::SetBackgroundColor( const Vector4& color )
86 GetImpl(*this).SetBackgroundColor(color);
89 Vector4 EffectsView::GetBackgroundColor() const
91 return GetImpl(*this).GetBackgroundColor();
95 EffectsView::EffectsView( Internal::EffectsView& implementation )
96 : Control( implementation )
100 EffectsView::EffectsView( Dali::Internal::CustomActor* internal )
101 : Control( internal )
103 VerifyCustomActorPointer<Internal::EffectsView>(internal);
107 } //namespace Toolkit