Merge "(ItemView) Store initial value in constraints to apply weight correctly" into...
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / bloom-view / bloom-view.h
index 42fe6f0..51c3ab1 100644 (file)
@@ -1,27 +1,28 @@
 #ifndef __DALI_TOOLKIT_BLOOM_VIEW_H__
 #define __DALI_TOOLKIT_BLOOM_VIEW_H__
 
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
+/*
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/public-api/controls/control.h>
 #include <dali-toolkit/public-api/controls/gaussian-blur-view/gaussian-blur-view.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 namespace Toolkit
@@ -87,7 +88,7 @@ class BloomView;
  *  Stage::GetCurrent().Remove(bloomView);\n
  *  bloomView.Deactivate();\n
  */
-class BloomView : public Control
+class DALI_IMPORT_API BloomView : public Control
 {
 public:
 
@@ -108,9 +109,11 @@ public:
   BloomView& operator=(const BloomView& ZoomView);
 
   /**
-   * Virtual destructor.
+   * @brief Destructor
+   *
+   * This is non-virtual since derived Handle types must not contain data or virtual methods.
    */
-  virtual ~BloomView();
+  ~BloomView();
 
   /**
    * Downcast an Object handle to BloomView. If handle points to a BloomView the
@@ -191,42 +194,42 @@ public:
    * This property represents a value such that pixels brighter than this threshold will be bloomed. Values are normalised, i.e. RGB 0.0 = 0, 1.0 = 255.  Default 0.25.
    * @return The property index that can be used with e.g. AnimateTo( ... )
    */
-  Property::Index GetBloomThresholdPropertyIndex() const;
+  Dali::Property::Index GetBloomThresholdPropertyIndex() const;
 
   /**
    * Get the property index that controls the strength of the blur applied to the bloom. Useful for animating this property.
    * This property represents a value in the range [0.0 - 1.0] where 0.0 is no blur and 1.0 is full blur. Default 1.0.
    * @return The property index that can be used with e.g. AnimateTo( ... )
    */
-  Property::Index GetBlurStrengthPropertyIndex() const;
+  Dali::Property::Index GetBlurStrengthPropertyIndex() const;
 
   /**
    * Get the property index that controls the intensity of the child actor render texture used during compositing. Useful for animating this property.
    * This property represents a multiplier on the intensity of the bloom texture. Default 1.0.
    * @return The property index that can be used with e.g. AnimateTo( ... )
    */
-  Property::Index GetBloomIntensityPropertyIndex() const;
+  Dali::Property::Index GetBloomIntensityPropertyIndex() const;
 
   /**
    * Get the property index that controls the saturation of the child actor render texture used during compositing. Useful for animating this property.
    * This property represents a multiplier on the saturation of the bloom texture. Default 1.0.
    * @return The property index that can be used with e.g. AnimateTo( ... )
    */
-  Property::Index GetBloomSaturationPropertyIndex() const;
+  Dali::Property::Index GetBloomSaturationPropertyIndex() const;
 
   /**
    * Get the property index that controls the intensity of the child actor render texture used during compositing. Useful for animating this property.
    * This property represents a multiplier on the intensity of the image texture. Default 1.0.
    * @return The property index that can be used with e.g. AnimateTo( ... )
    */
-  Property::Index GetImageIntensityPropertyIndex() const;
+  Dali::Property::Index GetImageIntensityPropertyIndex() const;
 
   /**
    * Get the property index that controls the saturation of the child actor render texture used during compositing. Useful for animating this property.
    * This property represents a multiplier on the saturation of the image texture. Default 1.0.
    * @return The property index that can be used with e.g. AnimateTo( ... )
    */
-  Property::Index GetImageSaturationPropertyIndex() const;
+  Dali::Property::Index GetImageSaturationPropertyIndex() const;
 
 public:
 
@@ -234,15 +237,13 @@ public:
    * Creates a handle using the Toolkit::Internal implementation.
    * @param[in]  implementation  The UI Control implementation.
    */
-  BloomView( Internal::BloomView& implementation );
+  DALI_INTERNAL BloomView( Internal::BloomView& implementation );
 
   /**
    * Allows the creation of this UI Control from an Internal::CustomActor pointer.
    * @param[in]  internal  A pointer to the internal CustomActor.
    */
-  BloomView( Dali::Internal::CustomActor* internal );
-
-private:
+  explicit DALI_INTERNAL BloomView( Dali::Internal::CustomActor* internal );
 
 };