#define DALI_TOOLKIT_BUTTON_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 Button;
class DALI_TOOLKIT_API Button : public Control
{
public:
-
/**
* @brief Enumeration for the start and end property ranges for this control.
* @SINCE_1_0.0
enum PropertyRange
{
PROPERTY_START_INDEX = Control::CONTROL_PROPERTY_END_INDEX + 1, ///< @SINCE_1_0.0
- PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000 ///< Reserve property indices @SINCE_1_0.0
+ PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000 ///< Reserve property indices @SINCE_1_0.0
};
/**
};
public:
-
/**
* @brief Creates an uninitialized Button.
*
* @SINCE_1_0.0
* @param[in] button Handle to an object
*/
- Button( const Button& button );
+ Button(const Button& button);
+
+ /**
+ * @brief Move constructor
+ * @SINCE_1_9.23
+ *
+ * @param[in] rhs A reference to the moved handle
+ */
+ Button(Button&& rhs);
/**
* @brief Assignment operator.
* @param[in] button Handle to an object
* @return A reference to this
*/
- Button& operator=( const Button& button );
+ Button& operator=(const Button& button);
+
+ /**
+ * @brief Move assignment
+ * @SINCE_1_9.23
+ *
+ * @param[in] rhs A reference to the moved handle
+ * @return A reference to this
+ */
+ Button& operator=(Button&& rhs);
/**
* @brief Downcasts a handle to Button handle.
* @param[in] handle Handle to an object
* @return A handle to a Button or an uninitialized handle
*/
- static Button DownCast( BaseHandle handle );
+ static Button DownCast(BaseHandle handle);
/**
* @brief Destructor.
~Button();
public: //Signals
-
/**
* @brief Button signal type.
* @SINCE_1_0.0
*/
- typedef Signal< bool ( Button ) > ButtonSignalType;
+ typedef Signal<bool(Button)> ButtonSignalType;
/**
* @brief This signal is emitted when the button is touched.
ButtonSignalType& StateChangedSignal();
public: // Not intended for application developers
-
/// @cond internal
/**
* @brief Creates a handle using the Toolkit::Internal implementation.
* @SINCE_1_0.0
* @param[in] implementation The Control implementation
*/
- DALI_INTERNAL Button( Internal::Button& implementation );
+ DALI_INTERNAL Button(Internal::Button& implementation);
/**
* @brief Allows the creation of this Control from an Internal::CustomActor pointer.
* @SINCE_1_0.0
* @param[in] internal A pointer to the internal CustomActor
*/
- DALI_INTERNAL Button( Dali::Internal::CustomActor* internal );
+ DALI_INTERNAL Button(Dali::Internal::CustomActor* internal);
/// @endcond
};