Split dali-toolkit into Base & Optional
[platform/core/uifw/dali-toolkit.git] / optional / dali-toolkit / public-api / controls / effects-view / effects-view.cpp
1 //
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://floralicense.org/license/
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 // EXTERNAL INCLUDES
18
19 // CLASS HEADER
20 #include <dali-toolkit/public-api/controls/effects-view/effects-view.h>
21
22 // INTERNAL INCLUDES
23 #include <dali-toolkit/internal/controls/effects-view/effects-view-impl.h>
24
25 namespace Dali
26 {
27
28 namespace Toolkit
29 {
30
31 EffectsView EffectsView::New()
32 {
33   return Internal::EffectsView::New();
34 }
35
36 EffectsView::EffectsView()
37 {
38 }
39
40 EffectsView::EffectsView( const EffectsView& handle )
41 : Control( handle )
42 {
43 }
44
45 EffectsView& EffectsView::operator=( const EffectsView& rhs )
46 {
47   if( &rhs != this )
48   {
49     Control::operator=(rhs);
50   }
51   return *this;
52 }
53
54 EffectsView EffectsView::DownCast( BaseHandle handle )
55 {
56   return Control::DownCast<EffectsView, Internal::EffectsView>(handle);
57 }
58
59 EffectsView::~EffectsView()
60 {
61 }
62
63 void EffectsView::SetType( EffectsView::EffectType type )
64 {
65   GetImpl(*this).SetType( type );
66 }
67
68 EffectsView::EffectType EffectsView::GetType() const
69 {
70   return GetImpl(*this).GetType();
71 }
72
73 void EffectsView::Enable()
74 {
75   GetImpl(*this).Enable();
76 }
77
78 void EffectsView::Disable()
79 {
80   GetImpl(*this).Disable();
81 }
82
83 void EffectsView::Refresh()
84 {
85   GetImpl(*this).Refresh();
86 }
87
88 void EffectsView::SetRefreshOnDemand( bool onDemand )
89 {
90   GetImpl(*this).SetRefreshOnDemand( onDemand );
91 }
92
93 void EffectsView::SetPixelFormat( Pixel::Format pixelFormat )
94 {
95   GetImpl(*this).SetPixelFormat( pixelFormat );
96 }
97
98 void EffectsView::SetOutputImage( FrameBufferImage image )
99 {
100   GetImpl(*this).SetOutputImage( image );
101 }
102
103 FrameBufferImage EffectsView::GetOutputImage()
104 {
105   return GetImpl(*this).GetOutputImage();
106 }
107
108 Property::Index EffectsView::GetEffectSizePropertyIndex() const
109 {
110   return GetImpl(*this).GetEffectSizePropertyIndex();
111 }
112
113 Property::Index EffectsView::GetEffectStrengthPropertyIndex() const
114 {
115   return GetImpl(*this).GetEffectStrengthPropertyIndex();
116 }
117
118 Property::Index EffectsView::GetEffectOffsetPropertyIndex() const
119 {
120   return GetImpl(*this).GetEffectOffsetPropertyIndex();
121 }
122
123 Property::Index EffectsView::GetEffectColorPropertyIndex() const
124 {
125   return GetImpl(*this).GetEffectColorPropertyIndex();
126 }
127
128 void EffectsView::SetBackgroundColor( const Vector4& color )
129 {
130   GetImpl(*this).SetBackgroundColor(color);
131 }
132
133 Vector4 EffectsView::GetBackgroundColor() const
134 {
135   return GetImpl(*this).GetBackgroundColor();
136 }
137
138
139 EffectsView::EffectsView( Internal::EffectsView& implementation )
140 : Control( implementation )
141 {
142 }
143
144 EffectsView::EffectsView( Dali::Internal::CustomActor* internal )
145 : Control( internal )
146 {
147   VerifyCustomActorPointer<Internal::EffectsView>(internal);
148 }
149
150
151 } //namespace Toolkit
152
153 } //namespace Dali