Add 'ExclusiveArch: armv7l' limit build to arm architecture
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / bloom-view / bloom-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/bloom-view/bloom-view.h>
19
20 // INTERNAL INCLUDES
21 #include <dali-toolkit/internal/controls/bloom-view/bloom-view-impl.h>
22
23 namespace Dali
24 {
25
26 namespace Toolkit
27 {
28
29 BloomView::BloomView()
30 {
31 }
32
33 BloomView::~BloomView()
34 {
35 }
36
37 BloomView::BloomView(const BloomView& handle)
38   : Control( handle )
39 {
40 }
41
42 BloomView& BloomView::operator=(const BloomView& rhs)
43 {
44   if( &rhs != this )
45   {
46     Control::operator=(rhs);
47   }
48   return *this;
49 }
50
51 BloomView BloomView::New()
52 {
53   return Internal::BloomView::New();
54 }
55
56 BloomView BloomView::New( const unsigned int numSamples, const float blurBellCurveWidth, const Pixel::Format renderTargetPixelFormat,
57                                         const float downsampleWidthScale, const float downsampleHeightScale)
58 {
59   return Internal::BloomView::New( numSamples, blurBellCurveWidth, renderTargetPixelFormat,
60                                            downsampleWidthScale, downsampleHeightScale);
61 }
62
63 BloomView::BloomView( Internal::BloomView& implementation )
64 : Control( implementation )
65 {
66 }
67
68 BloomView::BloomView( Dali::Internal::CustomActor* internal )
69 : Control( internal )
70 {
71   VerifyCustomActorPointer<Internal::BloomView>(internal);
72 }
73
74 BloomView BloomView::DownCast( BaseHandle handle )
75 {
76   return Control::DownCast<BloomView, Internal::BloomView>(handle);
77 }
78
79 void BloomView::Add(Actor child)
80 {
81   GetImpl(*this).Add(child);
82 }
83
84 void BloomView::Remove(Actor child)
85 {
86   GetImpl(*this).Remove(child);
87 }
88
89 void BloomView::Activate()
90 {
91   GetImpl(*this).Activate();
92 }
93
94 void BloomView::Deactivate()
95 {
96   GetImpl(*this).Deactivate();
97 }
98
99 Property::Index BloomView::GetBloomThresholdPropertyIndex() const
100 {
101   return GetImpl(*this).GetBloomThresholdPropertyIndex();
102 }
103
104 Property::Index BloomView::GetBlurStrengthPropertyIndex() const
105 {
106   return GetImpl(*this).GetBlurStrengthPropertyIndex();
107 }
108
109 Property::Index BloomView::GetBloomIntensityPropertyIndex() const
110 {
111   return GetImpl(*this).GetBloomIntensityPropertyIndex();
112 }
113
114 Property::Index BloomView::GetBloomSaturationPropertyIndex() const
115 {
116   return GetImpl(*this).GetBloomSaturationPropertyIndex();
117 }
118
119 Property::Index BloomView::GetImageIntensityPropertyIndex() const
120 {
121   return GetImpl(*this).GetImageIntensityPropertyIndex();
122 }
123
124 Property::Index BloomView::GetImageSaturationPropertyIndex() const
125 {
126   return GetImpl(*this).GetImageSaturationPropertyIndex();
127 }
128
129 } // namespace Toolkit
130
131 } // namespace Dali