Merge "Remove obsolete and non functional SizeChanged signal from actor" into tizen
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / effects-view / effects-view.cpp
1 /*
2  * Copyright (c) 2014 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 // EXTERNAL INCLUDES
19
20 // CLASS HEADER
21 #include <dali-toolkit/public-api/controls/effects-view/effects-view.h>
22
23 // INTERNAL INCLUDES
24 #include <dali-toolkit/internal/controls/effects-view/effects-view-impl.h>
25
26 namespace Dali
27 {
28
29 namespace Toolkit
30 {
31
32 EffectsView EffectsView::New()
33 {
34   return Internal::EffectsView::New();
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 void EffectsView::SetType( EffectsView::EffectType type )
65 {
66   GetImpl(*this).SetType( type );
67 }
68
69 EffectsView::EffectType EffectsView::GetType() const
70 {
71   return GetImpl(*this).GetType();
72 }
73
74 void EffectsView::Enable()
75 {
76   GetImpl(*this).Enable();
77 }
78
79 void EffectsView::Disable()
80 {
81   GetImpl(*this).Disable();
82 }
83
84 void EffectsView::Refresh()
85 {
86   GetImpl(*this).Refresh();
87 }
88
89 void EffectsView::SetRefreshOnDemand( bool onDemand )
90 {
91   GetImpl(*this).SetRefreshOnDemand( onDemand );
92 }
93
94 void EffectsView::SetPixelFormat( Pixel::Format pixelFormat )
95 {
96   GetImpl(*this).SetPixelFormat( pixelFormat );
97 }
98
99 void EffectsView::SetOutputImage( FrameBufferImage image )
100 {
101   GetImpl(*this).SetOutputImage( image );
102 }
103
104 FrameBufferImage EffectsView::GetOutputImage()
105 {
106   return GetImpl(*this).GetOutputImage();
107 }
108
109 Property::Index EffectsView::GetEffectSizePropertyIndex() const
110 {
111   return GetImpl(*this).GetEffectSizePropertyIndex();
112 }
113
114 Property::Index EffectsView::GetEffectStrengthPropertyIndex() const
115 {
116   return GetImpl(*this).GetEffectStrengthPropertyIndex();
117 }
118
119 Property::Index EffectsView::GetEffectOffsetPropertyIndex() const
120 {
121   return GetImpl(*this).GetEffectOffsetPropertyIndex();
122 }
123
124 Property::Index EffectsView::GetEffectColorPropertyIndex() const
125 {
126   return GetImpl(*this).GetEffectColorPropertyIndex();
127 }
128
129 void EffectsView::SetBackgroundColor( const Vector4& color )
130 {
131   GetImpl(*this).SetBackgroundColor(color);
132 }
133
134 Vector4 EffectsView::GetBackgroundColor() const
135 {
136   return GetImpl(*this).GetBackgroundColor();
137 }
138
139
140 EffectsView::EffectsView( Internal::EffectsView& implementation )
141 : Control( implementation )
142 {
143 }
144
145 EffectsView::EffectsView( Dali::Internal::CustomActor* internal )
146 : Control( internal )
147 {
148   VerifyCustomActorPointer<Internal::EffectsView>(internal);
149 }
150
151
152 } //namespace Toolkit
153
154 } //namespace Dali