#define DALI_EXTENTS_H
/*
- * Copyright (c) 2017 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.
* @brief Structure describing the a collection of uint16_t.
* @SINCE_1_2.62
*/
-struct DALI_EXPORT_API Extents
+struct DALI_CORE_API Extents
{
/**
* @brief Default constructor which provides an initialized Dali::Extents( 0u, 0u, 0u, 0u ).
* @SINCE_1_2.62
* @param[in] copy A reference to the copied Extents
*/
- Extents( const Extents& copy ) = default;
+ Extents(const Extents& copy) = default;
+
+ /**
+ * @brief Move constructor.
+ * @SINCE_2_2.17
+ * @param[in] move A reference to the moved Extents
+ */
+ Extents(Extents&& move) = default;
/**
* @brief Constructor.
* @param[in] top Top extent
* @param[in] bottom Bottom extent
*/
- Extents( uint16_t start, uint16_t end, uint16_t top, uint16_t bottom );
+ Extents(uint16_t start, uint16_t end, uint16_t top, uint16_t bottom);
/**
* @brief Copy Assignment operator.
* @param[in] copy A reference to the copied Extents
* @return Itself
*/
- Extents& operator=( const Extents& copy ) = default;
+ Extents& operator=(const Extents& copy) = default;
+
+ /**
+ * @brief Move Assignment operator.
+ * @SINCE_2_2.17
+ * @param[in] move A reference to the moved Extents
+ * @return Itself
+ */
+ Extents& operator=(Extents&& move) = default;
/**
* @brief Assignment operator.
* @param[in] array Array of uint16_t
* @return Itself
*/
- Extents& operator=( const uint16_t* array );
+ Extents& operator=(const uint16_t* array);
/**
* @brief Equality operator.
* @param[in] rhs The Extents to test against
* @return True if the extents are equal
*/
- bool operator==( const Extents &rhs ) const;
+ bool operator==(const Extents& rhs) const;
/**
* @brief Inequality operator.
* @param[in] rhs The Extents to test against
* @return True if the extents are not equal
*/
- bool operator!=( const Extents &rhs ) const;
+ bool operator!=(const Extents& rhs) const;
public:
- uint16_t start; ///< The start extent. @SINCE_1_2.62
- uint16_t end; ///< The end extent. @SINCE_1_2.62
- uint16_t top; ///< The top extent. @SINCE_1_2.62
- uint16_t bottom; ///< The bottom extent. @SINCE_1_2.62
-
+ uint16_t start; ///< The start extent. @SINCE_1_2.62
+ uint16_t end; ///< The end extent. @SINCE_1_2.62
+ uint16_t top; ///< The top extent. @SINCE_1_2.62
+ uint16_t bottom; ///< The bottom extent. @SINCE_1_2.62
};
/**
* @param[in] extents The Extents to output
* @return The output stream operator
*/
-DALI_EXPORT_API std::ostream& operator<<( std::ostream& stream, const Extents& extents );
+DALI_CORE_API std::ostream& operator<<(std::ostream& stream, const Extents& extents);
/**
* @}