X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fobject%2Fproperty-value.h;h=fa66e05bd8cfe9493d3599f5e8dbaf14eeeec9c5;hb=649ec06daecb510fb84fe4642a6af957f127e7ab;hp=5a4abedb5b9270d8e84030cee003c412dc35e169;hpb=810916ea11828926b21bc73ea363d52c0a540d7b;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/object/property-value.h b/dali/public-api/object/property-value.h index 5a4abed..fa66e05 100644 --- a/dali/public-api/object/property-value.h +++ b/dali/public-api/object/property-value.h @@ -2,7 +2,7 @@ #define __DALI_PROPERTY_VALUE_H__ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -39,12 +39,13 @@ struct Vector3; struct Vector4; class Matrix3; class Matrix; +struct Extents; /** * @brief A value-type representing a property value. * @SINCE_1_0.0 */ -class DALI_IMPORT_API Property::Value +class DALI_CORE_API Property::Value { public: @@ -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 */ @@ -410,7 +429,7 @@ private: * @param[in] value The value to insert * @return The output stream operator */ -DALI_IMPORT_API std::ostream& operator<<( std::ostream& ouputStream, const Property::Value& value ); +DALI_CORE_API std::ostream& operator<<( std::ostream& ouputStream, const Property::Value& value ); /** * @}