Add Property::EXTENTS type
[platform/core/uifw/dali-core.git] / dali / public-api / object / property-value.h
index 5a4abed..5f2fa8e 100644 (file)
@@ -39,6 +39,7 @@ struct Vector3;
 struct Vector4;
 class Matrix3;
 class Matrix;
+struct Extents;
 
 /**
  * @brief A value-type representing a property value.
@@ -177,6 +178,14 @@ public:
   Value( Property::Map& mapValue );
 
   /**
+   * @brief Creates an extents property value.
+   *
+   * @SINCE_1_2.62
+   * @param[in] extentsValue A collection of 4 uint16_t values
+   */
+  Value( const Extents& extentsValue );
+
+  /**
    * @brief Explicitly sets a type and initialize it.
    *
    * @SINCE_1_0.0
@@ -390,6 +399,16 @@ public:
   Property::Map* GetMap() const;
 
   /**
+   * @brief Retrieves an extents.
+   *
+   * @SINCE_1_2.62
+   * @param[out] extentsValue Extents, a collection of 4 uint16_t
+   * @return @c true if the value is successfully retrieved, @c false if the type is not convertible
+   * @pre GetType() is a type convertible to Extents.
+   */
+  bool Get( Extents& extentsValue ) const;
+
+  /**
    * @brief Output to stream.
    * @SINCE_1_0.0
    */