2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include <dali-toolkit/devel-api/controls/bloom-view/bloom-view.h>
22 #include <dali-toolkit/internal/controls/bloom-view/bloom-view-impl.h>
30 BloomView::BloomView()
34 BloomView::~BloomView()
38 BloomView::BloomView(const BloomView& handle)
43 BloomView& BloomView::operator=(const BloomView& rhs)
47 Control::operator=(rhs);
52 BloomView BloomView::New()
54 return Internal::BloomView::New();
57 BloomView BloomView::New( const unsigned int numSamples, const float blurBellCurveWidth, const Pixel::Format renderTargetPixelFormat,
58 const float downsampleWidthScale, const float downsampleHeightScale)
60 return Internal::BloomView::New( numSamples, blurBellCurveWidth, renderTargetPixelFormat,
61 downsampleWidthScale, downsampleHeightScale);
64 BloomView::BloomView( Internal::BloomView& implementation )
65 : Control( implementation )
69 BloomView::BloomView( Dali::Internal::CustomActor* internal )
72 VerifyCustomActorPointer<Internal::BloomView>(internal);
75 BloomView BloomView::DownCast( BaseHandle handle )
77 return Control::DownCast<BloomView, Internal::BloomView>(handle);
80 void BloomView::Activate()
82 GetImpl(*this).Activate();
85 void BloomView::Deactivate()
87 GetImpl(*this).Deactivate();
90 Property::Index BloomView::GetBloomThresholdPropertyIndex() const
92 return GetImpl(*this).GetBloomThresholdPropertyIndex();
95 Property::Index BloomView::GetBlurStrengthPropertyIndex() const
97 return GetImpl(*this).GetBlurStrengthPropertyIndex();
100 Property::Index BloomView::GetBloomIntensityPropertyIndex() const
102 return GetImpl(*this).GetBloomIntensityPropertyIndex();
105 Property::Index BloomView::GetBloomSaturationPropertyIndex() const
107 return GetImpl(*this).GetBloomSaturationPropertyIndex();
110 Property::Index BloomView::GetImageIntensityPropertyIndex() const
112 return GetImpl(*this).GetImageIntensityPropertyIndex();
115 Property::Index BloomView::GetImageSaturationPropertyIndex() const
117 return GetImpl(*this).GetImageSaturationPropertyIndex();
120 } // namespace Toolkit