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