2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
20 #include <dali-toolkit/public-api/controls/effects-view/effects-view.h>
23 #include <dali-toolkit/internal/controls/effects-view/effects-view-impl.h>
31 EffectsView EffectsView::New()
33 return Internal::EffectsView::New();
36 EffectsView::EffectsView()
40 EffectsView::EffectsView( const EffectsView& handle )
45 EffectsView& EffectsView::operator=( const EffectsView& rhs )
49 Control::operator=(rhs);
54 EffectsView EffectsView::DownCast( BaseHandle handle )
56 return Control::DownCast<EffectsView, Internal::EffectsView>(handle);
59 EffectsView::~EffectsView()
63 void EffectsView::SetType( EffectsView::EffectType type )
65 GetImpl(*this).SetType( type );
68 EffectsView::EffectType EffectsView::GetType() const
70 return GetImpl(*this).GetType();
73 void EffectsView::Enable()
75 GetImpl(*this).Enable();
78 void EffectsView::Disable()
80 GetImpl(*this).Disable();
83 void EffectsView::Refresh()
85 GetImpl(*this).Refresh();
88 void EffectsView::SetRefreshOnDemand( bool onDemand )
90 GetImpl(*this).SetRefreshOnDemand( onDemand );
93 void EffectsView::SetPixelFormat( Pixel::Format pixelFormat )
95 GetImpl(*this).SetPixelFormat( pixelFormat );
98 void EffectsView::SetOutputImage( FrameBufferImage image )
100 GetImpl(*this).SetOutputImage( image );
103 FrameBufferImage EffectsView::GetOutputImage()
105 return GetImpl(*this).GetOutputImage();
108 Property::Index EffectsView::GetEffectSizePropertyIndex() const
110 return GetImpl(*this).GetEffectSizePropertyIndex();
113 Property::Index EffectsView::GetEffectStrengthPropertyIndex() const
115 return GetImpl(*this).GetEffectStrengthPropertyIndex();
118 Property::Index EffectsView::GetEffectOffsetPropertyIndex() const
120 return GetImpl(*this).GetEffectOffsetPropertyIndex();
123 Property::Index EffectsView::GetEffectColorPropertyIndex() const
125 return GetImpl(*this).GetEffectColorPropertyIndex();
128 void EffectsView::SetBackgroundColor( const Vector4& color )
130 GetImpl(*this).SetBackgroundColor(color);
133 Vector4 EffectsView::GetBackgroundColor() const
135 return GetImpl(*this).GetBackgroundColor();
139 EffectsView::EffectsView( Internal::EffectsView& implementation )
140 : Control( implementation )
144 EffectsView::EffectsView( Dali::Internal::CustomActor* internal )
145 : Control( internal )
147 VerifyCustomActorPointer<Internal::EffectsView>(internal);
151 } //namespace Toolkit