Stop using ImageActor in EffectsView and ImageFilters
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / devel-api / controls / effects-view / effects-view.cpp
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali-toolkit/devel-api/controls/effects-view/effects-view.h>
20
21 // INTERNAL INCLUDES
22 #include <dali-toolkit/internal/controls/effects-view/effects-view-impl.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 EffectsView EffectsView::New( EffectType type )
31 {
32   EffectsView effectsView = Internal::EffectsView::New();
33   GetImpl(effectsView).SetType( type );
34   return effectsView;
35 }
36
37 EffectsView::EffectsView()
38 {
39 }
40
41 EffectsView::EffectsView( const EffectsView& handle )
42 : Control( handle )
43 {
44 }
45
46 EffectsView& EffectsView::operator=( const EffectsView& rhs )
47 {
48   if( &rhs != this )
49   {
50     Control::operator=(rhs);
51   }
52   return *this;
53 }
54
55 EffectsView EffectsView::DownCast( BaseHandle handle )
56 {
57   return Control::DownCast<EffectsView, Internal::EffectsView>(handle);
58 }
59
60 EffectsView::~EffectsView()
61 {
62 }
63
64 EffectsView::EffectType EffectsView::GetType() const
65 {
66   return GetImpl(*this).GetType();
67 }
68
69 void EffectsView::Refresh()
70 {
71   GetImpl(*this).Refresh();
72 }
73
74 void EffectsView::SetRefreshOnDemand( bool onDemand )
75 {
76   GetImpl(*this).SetRefreshOnDemand( onDemand );
77 }
78
79 void EffectsView::SetPixelFormat( Pixel::Format pixelFormat )
80 {
81   GetImpl(*this).SetPixelFormat( pixelFormat );
82 }
83
84 void EffectsView::SetBackgroundColor( const Vector4& color )
85 {
86   GetImpl(*this).SetBackgroundColor(color);
87 }
88
89 Vector4 EffectsView::GetBackgroundColor() const
90 {
91   return GetImpl(*this).GetBackgroundColor();
92 }
93
94
95 EffectsView::EffectsView( Internal::EffectsView& implementation )
96 : Control( implementation )
97 {
98 }
99
100 EffectsView::EffectsView( Dali::Internal::CustomActor* internal )
101 : Control( internal )
102 {
103   VerifyCustomActorPointer<Internal::EffectsView>(internal);
104 }
105
106
107 } //namespace Toolkit
108
109 } //namespace Dali