#define DALI_TOOLKIT_SLIDER_H
/*
- * Copyright (c) 2019 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;
class DALI_TOOLKIT_API Slider : public Control
{
public:
-
// Properties
/**
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
};
/**
};
public:
-
/**
* @brief Creates the Slider control.
* @SINCE_1_1.39
* @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) noexcept;
/**
* @brief Assignment operator.
* @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) noexcept;
/**
* @brief Destructor.
* @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.
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] internal A pointer to the internal CustomActor
*/
- explicit DALI_INTERNAL Slider( Dali::Internal::CustomActor* internal );
+ explicit DALI_INTERNAL Slider(Dali::Internal::CustomActor* internal);
/// @endcond
};