2 * Copyright (c) 2014 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.
21 #include <dali-toolkit/public-api/controls/effects-view/effects-view.h>
24 #include <dali-toolkit/internal/controls/effects-view/effects-view-impl.h>
32 EffectsView EffectsView::New()
34 return Internal::EffectsView::New();
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 void EffectsView::SetType( EffectsView::EffectType type )
66 GetImpl(*this).SetType( type );
69 EffectsView::EffectType EffectsView::GetType() const
71 return GetImpl(*this).GetType();
74 void EffectsView::Enable()
76 GetImpl(*this).Enable();
79 void EffectsView::Disable()
81 GetImpl(*this).Disable();
84 void EffectsView::Refresh()
86 GetImpl(*this).Refresh();
89 void EffectsView::SetRefreshOnDemand( bool onDemand )
91 GetImpl(*this).SetRefreshOnDemand( onDemand );
94 void EffectsView::SetPixelFormat( Pixel::Format pixelFormat )
96 GetImpl(*this).SetPixelFormat( pixelFormat );
99 void EffectsView::SetOutputImage( FrameBufferImage image )
101 GetImpl(*this).SetOutputImage( image );
104 FrameBufferImage EffectsView::GetOutputImage()
106 return GetImpl(*this).GetOutputImage();
109 Property::Index EffectsView::GetEffectSizePropertyIndex() const
111 return GetImpl(*this).GetEffectSizePropertyIndex();
114 Property::Index EffectsView::GetEffectStrengthPropertyIndex() const
116 return GetImpl(*this).GetEffectStrengthPropertyIndex();
119 Property::Index EffectsView::GetEffectOffsetPropertyIndex() const
121 return GetImpl(*this).GetEffectOffsetPropertyIndex();
124 Property::Index EffectsView::GetEffectColorPropertyIndex() const
126 return GetImpl(*this).GetEffectColorPropertyIndex();
129 void EffectsView::SetBackgroundColor( const Vector4& color )
131 GetImpl(*this).SetBackgroundColor(color);
134 Vector4 EffectsView::GetBackgroundColor() const
136 return GetImpl(*this).GetBackgroundColor();
140 EffectsView::EffectsView( Internal::EffectsView& implementation )
141 : Control( implementation )
145 EffectsView::EffectsView( Dali::Internal::CustomActor* internal )
146 : Control( internal )
148 VerifyCustomActorPointer<Internal::EffectsView>(internal);
152 } //namespace Toolkit