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