Change RegisterGlCallback function name of GlView
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / slider / slider.h
index 851efe8..f5be0d7 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_TOOLKIT_SLIDER_H__
-#define __DALI_TOOLKIT_SLIDER_H__
+#ifndef DALI_TOOLKIT_SLIDER_H
+#define DALI_TOOLKIT_SLIDER_H
 
 /*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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.
 
 namespace Dali
 {
-
 namespace Toolkit
 {
-
 namespace Internal DALI_INTERNAL
 {
 class Slider;
@@ -37,7 +35,7 @@ class Slider;
  */
 
 /**
- * @brief Slider is a control to enable sliding an indicator between two values
+ * @brief Slider is a control to enable sliding an indicator between two values.
  *
  * Signals
  * | %Signal Name      | Method                        |
@@ -47,121 +45,120 @@ class Slider;
  * | slidingFinished   | @ref SlidingFinishedSignal()  |
  * @SINCE_1_1.39
  */
-class DALI_IMPORT_API Slider : public Control
+class DALI_TOOLKIT_API Slider : public Control
 {
 public:
-
   // Properties
 
   /**
-   * @brief The start and end property ranges for this control.
+   * @brief Enumeration for the start and end property ranges for this control.
    * @SINCE_1_1.39
    */
   enum PropertyRange
   {
     PROPERTY_START_INDEX = Control::CONTROL_PROPERTY_END_INDEX + 1, ///< @SINCE_1_1.39
-    PROPERTY_END_INDEX =   PROPERTY_START_INDEX + 1000              ///< Reserve property indices @SINCE_1_1.39
+    PROPERTY_END_INDEX   = PROPERTY_START_INDEX + 1000              ///< Reserve property indices @SINCE_1_1.39
   };
 
   /**
-   * @brief An enumeration of properties belonging to the Slider class.
+   * @brief Enumeration for the instance of properties belonging to the Slider class.
    * @SINCE_1_1.39
    */
   struct Property
   {
     /**
-     * @brief An enumeration of properties belonging to the Slider class.
+     * @brief Enumeration for the instance of properties belonging to the Slider class.
      * @SINCE_1_1.39
      */
     enum
     {
 
       /**
-       * @brief name "lowerBound", type float
+       * @brief name "lowerBound", type float.
        * @SINCE_1_1.39
        */
       LOWER_BOUND = PROPERTY_START_INDEX,
 
       /**
-       * @brief name "upperBound", type float
+       * @brief name "upperBound", type float.
        * @SINCE_1_1.39
        */
       UPPER_BOUND,
 
       /**
-       * @brief name "value", type float
+       * @brief name "value", type float.
        * @SINCE_1_1.39
        */
       VALUE,
 
       /**
-       * @brief name "trackVisual", type string if it is a url, map otherwise
+       * @brief name "trackVisual", type string if it is a url, map otherwise.
        * @SINCE_1_1.39
        */
       TRACK_VISUAL,
 
       /**
-       * @brief name "handleVisual", type string if it is a url, map otherwise
+       * @brief name "handleVisual", type string if it is a url, map otherwise.
        * @SINCE_1_1.39
        */
       HANDLE_VISUAL,
 
       /**
-       * @brief name "progressVisual", type string if it is a url, map otherwise
+       * @brief name "progressVisual", type string if it is a url, map otherwise.
        * @SINCE_1_1.39
        */
       PROGRESS_VISUAL,
 
       /**
-       * @brief name "popupVisual", type string if it is a url, map otherwise
+       * @brief name "popupVisual", type string if it is a url, map otherwise.
        * @SINCE_1_1.39
        */
       POPUP_VISUAL,
 
       /**
-       * @brief name "popupArrowVisual", type string if it is a url, map otherwise
+       * @brief name "popupArrowVisual", type string if it is a url, map otherwise.
        * @SINCE_1_1.39
        */
       POPUP_ARROW_VISUAL,
 
       /**
-       * @brief name "disabledColor", type Vector4
+       * @brief name "disabledColor", type Vector4.
        * @SINCE_1_1.39
        */
       DISABLED_COLOR,
 
       /**
-       * @brief name "valuePrecision", type int
+       * @brief name "valuePrecision", type int.
        * @SINCE_1_1.39
        */
       VALUE_PRECISION,
 
       /**
-       * @brief name "showPopup", type bool
+       * @brief name "showPopup", type bool.
        * @SINCE_1_1.39
        */
       SHOW_POPUP,
 
       /**
-       * @brief name "showValue", type bool
+       * @brief name "showValue", type bool.
        * @SINCE_1_1.39
        */
       SHOW_VALUE,
 
       /**
-       * @brief name "marks", type Property::Array<float>
+       * @brief name "marks", type Property::Array<float>.
        * @SINCE_1_1.39
        */
       MARKS,
 
       /**
-       * @brief name "snapToMarks", type bool
+       * @brief name "snapToMarks", type bool.
        * @SINCE_1_1.39
        */
       SNAP_TO_MARKS,
 
       /**
-       * @brief name "markTolerance", type float
+       * @brief name "markTolerance", type float.
        * @SINCE_1_1.39
        */
       MARK_TOLERANCE,
@@ -169,7 +166,6 @@ public:
   };
 
 public:
-
   /**
    * @brief Creates the Slider control.
    * @SINCE_1_1.39
@@ -190,7 +186,15 @@ public:
    * @SINCE_1_1.39
    * @param[in] handle Handle to an object
    */
-  Slider( const Slider& handle );
+  Slider(const Slider& handle);
+
+  /**
+   * @brief Move constructor
+   * @SINCE_1_9.23
+   *
+   * @param[in] rhs A reference to the moved handle
+   */
+  Slider(Slider&& rhs);
 
   /**
    * @brief Assignment operator.
@@ -200,7 +204,16 @@ public:
    * @param[in] handle Handle to an object
    * @return A reference to this
    */
-  Slider& operator=( const Slider& handle );
+  Slider& operator=(const Slider& handle);
+
+  /**
+   * @brief Move assignment
+   * @SINCE_1_9.23
+   *
+   * @param[in] rhs A reference to the moved handle
+   * @return A reference to this
+   */
+  Slider& operator=(Slider&& rhs);
 
   /**
    * @brief Destructor.
@@ -211,29 +224,28 @@ public:
   ~Slider();
 
   /**
-   * @brief Downcast an Object handle to Slider.
+   * @brief Downcasts an Object handle to Slider.
    *
-   * If handle points to a Slider the
-   * downcast produces valid handle. If not the returned handle is left uninitialized.
+   * If handle points to a Slider, the downcast produces valid handle.
+   * If not, the returned handle is left uninitialized.
    * @SINCE_1_1.39
    * @param[in] handle Handle to an object
    * @return handle to a Slider or an uninitialized handle
    */
-  static Slider DownCast( BaseHandle handle );
-
-public:  // Signals
+  static Slider DownCast(BaseHandle handle);
 
+public: // Signals
   /**
    * @brief Value changed signal type.
    * @SINCE_1_1.39
    */
-  typedef Signal< bool ( Slider, float ) > ValueChangedSignalType;
+  typedef Signal<bool(Slider, float)> ValueChangedSignalType;
 
   /**
    * @brief Mark reached signal type.
    * @SINCE_1_1.39
    */
-  typedef Signal< bool ( Slider, int ) > MarkReachedSignalType;
+  typedef Signal<bool(Slider, int)> MarkReachedSignalType;
 
   /**
    * @brief Signal emitted when the slider value changes.
@@ -272,13 +284,12 @@ public:  // Signals
   MarkReachedSignalType& MarkReachedSignal();
 
 public: // Not intended for application developers
-
   /// @cond internal
   /**
    * @brief Creates a handle using the Toolkit::Internal implementation.
    *
    * @SINCE_1_1.39
-   * @param[in]  implementation  The Control implementation
+   * @param[in] implementation The Control implementation
    */
   DALI_INTERNAL Slider(Internal::Slider& implementation);
 
@@ -286,9 +297,9 @@ public: // Not intended for application developers
    * @brief Allows the creation of this Control from an Internal::CustomActor pointer.
    *
    * @SINCE_1_1.39
-   * @param[in]  internal  A pointer to the internal CustomActor
+   * @param[in] internal A pointer to the internal CustomActor
    */
-  explicit DALI_INTERNAL Slider( Dali::Internal::CustomActor* internal );
+  explicit DALI_INTERNAL Slider(Dali::Internal::CustomActor* internal);
   /// @endcond
 };
 
@@ -299,4 +310,4 @@ public: // Not intended for application developers
 
 } // namespace Dali
 
-#endif // __DALI_TOOLKIT_SLIDER_H__
+#endif // DALI_TOOLKIT_SLIDER_H