2 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
8 // http://floralicense.org/license/
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.
18 #include <dali-toolkit/public-api/controls/bloom-view/bloom-view.h>
21 #include <dali-toolkit/internal/controls/bloom-view/bloom-view-impl.h>
29 BloomView::BloomView()
33 BloomView::~BloomView()
37 BloomView::BloomView(const BloomView& handle)
42 BloomView& BloomView::operator=(const BloomView& rhs)
46 Control::operator=(rhs);
51 BloomView BloomView::New()
53 return Internal::BloomView::New();
56 BloomView BloomView::New( const unsigned int numSamples, const float blurBellCurveWidth, const Pixel::Format renderTargetPixelFormat,
57 const float downsampleWidthScale, const float downsampleHeightScale)
59 return Internal::BloomView::New( numSamples, blurBellCurveWidth, renderTargetPixelFormat,
60 downsampleWidthScale, downsampleHeightScale);
63 BloomView::BloomView( Internal::BloomView& implementation )
64 : Control( implementation )
68 BloomView::BloomView( Dali::Internal::CustomActor* internal )
71 VerifyCustomActorPointer<Internal::BloomView>(internal);
74 BloomView BloomView::DownCast( BaseHandle handle )
76 return Control::DownCast<BloomView, Internal::BloomView>(handle);
79 void BloomView::Add(Actor child)
81 GetImpl(*this).Add(child);
84 void BloomView::Remove(Actor child)
86 GetImpl(*this).Remove(child);
89 void BloomView::Activate()
91 GetImpl(*this).Activate();
94 void BloomView::Deactivate()
96 GetImpl(*this).Deactivate();
99 Property::Index BloomView::GetBloomThresholdPropertyIndex() const
101 return GetImpl(*this).GetBloomThresholdPropertyIndex();
104 Property::Index BloomView::GetBlurStrengthPropertyIndex() const
106 return GetImpl(*this).GetBlurStrengthPropertyIndex();
109 Property::Index BloomView::GetBloomIntensityPropertyIndex() const
111 return GetImpl(*this).GetBloomIntensityPropertyIndex();
114 Property::Index BloomView::GetBloomSaturationPropertyIndex() const
116 return GetImpl(*this).GetBloomSaturationPropertyIndex();
119 Property::Index BloomView::GetImageIntensityPropertyIndex() const
121 return GetImpl(*this).GetImageIntensityPropertyIndex();
124 Property::Index BloomView::GetImageSaturationPropertyIndex() const
126 return GetImpl(*this).GetImageSaturationPropertyIndex();
129 } // namespace Toolkit