Merge "Fix for cursor. Avoid the jump of the grab handle when there is a mix of...
[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()
31 {
32   return Internal::EffectsView::New();
33 }
34
35 EffectsView::EffectsView()
36 {
37 }
38
39 EffectsView::EffectsView( const EffectsView& handle )
40 : Control( handle )
41 {
42 }
43
44 EffectsView& EffectsView::operator=( const EffectsView& rhs )
45 {
46   if( &rhs != this )
47   {
48     Control::operator=(rhs);
49   }
50   return *this;
51 }
52
53 EffectsView EffectsView::DownCast( BaseHandle handle )
54 {
55   return Control::DownCast<EffectsView, Internal::EffectsView>(handle);
56 }
57
58 EffectsView::~EffectsView()
59 {
60 }
61
62 void EffectsView::SetType( EffectsView::EffectType type )
63 {
64   GetImpl(*this).SetType( type );
65 }
66
67 EffectsView::EffectType EffectsView::GetType() const
68 {
69   return GetImpl(*this).GetType();
70 }
71
72 void EffectsView::Enable()
73 {
74   GetImpl(*this).Enable();
75 }
76
77 void EffectsView::Disable()
78 {
79   GetImpl(*this).Disable();
80 }
81
82 void EffectsView::Refresh()
83 {
84   GetImpl(*this).Refresh();
85 }
86
87 void EffectsView::SetRefreshOnDemand( bool onDemand )
88 {
89   GetImpl(*this).SetRefreshOnDemand( onDemand );
90 }
91
92 void EffectsView::SetPixelFormat( Pixel::Format pixelFormat )
93 {
94   GetImpl(*this).SetPixelFormat( pixelFormat );
95 }
96
97 void EffectsView::SetOutputImage( FrameBufferImage image )
98 {
99   GetImpl(*this).SetOutputImage( image );
100 }
101
102 FrameBufferImage EffectsView::GetOutputImage()
103 {
104   return GetImpl(*this).GetOutputImage();
105 }
106
107 Property::Index EffectsView::GetEffectSizePropertyIndex() const
108 {
109   return GetImpl(*this).GetEffectSizePropertyIndex();
110 }
111
112 Property::Index EffectsView::GetEffectStrengthPropertyIndex() const
113 {
114   return GetImpl(*this).GetEffectStrengthPropertyIndex();
115 }
116
117 Property::Index EffectsView::GetEffectOffsetPropertyIndex() const
118 {
119   return GetImpl(*this).GetEffectOffsetPropertyIndex();
120 }
121
122 Property::Index EffectsView::GetEffectColorPropertyIndex() const
123 {
124   return GetImpl(*this).GetEffectColorPropertyIndex();
125 }
126
127 void EffectsView::SetBackgroundColor( const Vector4& color )
128 {
129   GetImpl(*this).SetBackgroundColor(color);
130 }
131
132 Vector4 EffectsView::GetBackgroundColor() const
133 {
134   return GetImpl(*this).GetBackgroundColor();
135 }
136
137
138 EffectsView::EffectsView( Internal::EffectsView& implementation )
139 : Control( implementation )
140 {
141 }
142
143 EffectsView::EffectsView( Dali::Internal::CustomActor* internal )
144 : Control( internal )
145 {
146   VerifyCustomActorPointer<Internal::EffectsView>(internal);
147 }
148
149
150 } //namespace Toolkit
151
152 } //namespace Dali