[dali_1.0.39] Merge branch 'tizen'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / super-blur-view / super-blur-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/public-api/controls/super-blur-view/super-blur-view.h>
20
21 // INTERNAL INCLUDES
22 #include <dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.h>
23
24 namespace Dali
25 {
26
27 namespace Toolkit
28 {
29
30 SuperBlurView::SuperBlurView()
31 {
32 }
33
34 SuperBlurView SuperBlurView::New( unsigned int blurLevels )
35 {
36   return Internal::SuperBlurView::New( blurLevels );
37 }
38
39 SuperBlurView::SuperBlurView( const SuperBlurView& handle )
40 : Control( handle )
41 {
42 }
43
44 SuperBlurView& SuperBlurView::operator=( const SuperBlurView& rhs )
45 {
46   if( &rhs != this )
47   {
48     Control::operator=(rhs);
49   }
50   return *this;
51 }
52
53 SuperBlurView::~SuperBlurView()
54 {
55 }
56
57 SuperBlurView SuperBlurView::DownCast( BaseHandle handle )
58 {
59   return Control::DownCast<SuperBlurView, Internal::SuperBlurView>( handle );
60 }
61
62 SuperBlurView::SuperBlurView(Internal::SuperBlurView& implementation)
63 : Control( implementation )
64 {
65 }
66
67 SuperBlurView::SuperBlurView(Dali::Internal::CustomActor* internal)
68 : Control( internal )
69 {
70   VerifyCustomActorPointer<Internal::SuperBlurView>( internal );
71 }
72
73 void SuperBlurView::SetImage(Image inputImage)
74 {
75   GetImpl(*this).SetImage( inputImage );
76 }
77
78 Property::Index SuperBlurView::GetBlurStrengthPropertyIndex() const
79 {
80   return GetImpl(*this).GetBlurStrengthPropertyIndex();
81 }
82
83 void SuperBlurView::SetBlurStrength( float blurStrength )
84 {
85   GetImpl(*this).SetBlurStrength( blurStrength );
86 }
87
88 float SuperBlurView::GetCurrentBlurStrength() const
89 {
90   return GetImpl(*this).GetCurrentBlurStrength();
91 }
92
93 SuperBlurView::SuperBlurViewSignal& SuperBlurView::BlurFinishedSignal()
94 {
95   return GetImpl(*this).BlurFinishedSignal();
96 }
97
98 Image SuperBlurView::GetBlurredImage( unsigned int level )
99 {
100   return GetImpl(*this).GetBlurredImage( level );
101 }
102 } // namespace Toolkit
103
104 } // namespace Dali