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()
32 return Internal::EffectsView::New();
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 void EffectsView::SetType( EffectsView::EffectType type )
64 GetImpl(*this).SetType( type );
67 EffectsView::EffectType EffectsView::GetType() const
69 return GetImpl(*this).GetType();
72 void EffectsView::Enable()
74 GetImpl(*this).Enable();
77 void EffectsView::Disable()
79 GetImpl(*this).Disable();
82 void EffectsView::Refresh()
84 GetImpl(*this).Refresh();
87 void EffectsView::SetRefreshOnDemand( bool onDemand )
89 GetImpl(*this).SetRefreshOnDemand( onDemand );
92 void EffectsView::SetPixelFormat( Pixel::Format pixelFormat )
94 GetImpl(*this).SetPixelFormat( pixelFormat );
97 void EffectsView::SetOutputImage( FrameBufferImage image )
99 GetImpl(*this).SetOutputImage( image );
102 FrameBufferImage EffectsView::GetOutputImage()
104 return GetImpl(*this).GetOutputImage();
107 Property::Index EffectsView::GetEffectSizePropertyIndex() const
109 return GetImpl(*this).GetEffectSizePropertyIndex();
112 Property::Index EffectsView::GetEffectStrengthPropertyIndex() const
114 return GetImpl(*this).GetEffectStrengthPropertyIndex();
117 Property::Index EffectsView::GetEffectOffsetPropertyIndex() const
119 return GetImpl(*this).GetEffectOffsetPropertyIndex();
122 Property::Index EffectsView::GetEffectColorPropertyIndex() const
124 return GetImpl(*this).GetEffectColorPropertyIndex();
127 void EffectsView::SetBackgroundColor( const Vector4& color )
129 GetImpl(*this).SetBackgroundColor(color);
132 Vector4 EffectsView::GetBackgroundColor() const
134 return GetImpl(*this).GetBackgroundColor();
138 EffectsView::EffectsView( Internal::EffectsView& implementation )
139 : Control( implementation )
143 EffectsView::EffectsView( Dali::Internal::CustomActor* internal )
144 : Control( internal )
146 VerifyCustomActorPointer<Internal::EffectsView>(internal);
150 } //namespace Toolkit