X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=blobdiff_plain;f=dali%2Fpublic-api%2Fobject%2Fproperty.h;h=60236e9cf979a8cfb10fa6762246bad3ba16af24;hp=54bf2ec82b4954bc8760cb6b8aa67bde1059335e;hb=646f736e77b085c86e982c0d1d4b895c2a431330;hpb=b41db98148be41ef5928f4335e985bf62252dde7 diff --git a/dali/public-api/object/property.h b/dali/public-api/object/property.h index 54bf2ec..60236e9 100644 --- a/dali/public-api/object/property.h +++ b/dali/public-api/object/property.h @@ -21,6 +21,7 @@ // EXTERNAL INCLUDES #include #include +#include // int32_t // INTERNAL INCLUDES #include @@ -45,11 +46,11 @@ struct DALI_CORE_API Property * @brief A valid property index is zero or greater. * @SINCE_1_0.0 */ - typedef int Index; + typedef int32_t Index; - static const int INVALID_INDEX; ///< -1 is not a valid property index - static const int INVALID_KEY; ///< -1 is not a valid property key - static const int INVALID_COMPONENT_INDEX; ///< -1 is not a valid property index + static const int32_t INVALID_INDEX; ///< -1 is not a valid property index + static const int32_t INVALID_KEY; ///< -1 is not a valid property key + static const int32_t INVALID_COMPONENT_INDEX; ///< -1 is not a valid property index typedef Dali::Vector< Index > IndexContainer; ///< A vector of property indices @SINCE_1_0.0 @@ -128,7 +129,7 @@ struct DALI_CORE_API Property * @param[in] propertyIndex The index of a property. * @param[in] componentIndex Index to a sub component of a property, for use with Vector2, Vector3 and Vector4. -1 for main property (default is -1) */ - Property( Handle& object, Property::Index propertyIndex, int componentIndex ); + Property( Handle& object, Property::Index propertyIndex, int32_t componentIndex ); /** * @brief Creates a Property instance. @@ -151,7 +152,7 @@ struct DALI_CORE_API Property * @note This performs a property index query and is therefore slower than * constructing a Property directly with the index. */ - Property( Handle& object, const std::string& propertyName, int componentIndex ); + Property( Handle& object, const std::string& propertyName, int32_t componentIndex ); /** * @brief Non-virtual destructor; Property is not intended as a base class. @@ -163,7 +164,7 @@ struct DALI_CORE_API Property Index propertyIndex; ///< The index of a property provided by object. - int componentIndex; ///< Index of a property sub component, for use with Vector2, Vector3 and Vector4, -1 if using main property + int32_t componentIndex; ///< Index of a property sub component, for use with Vector2, Vector3 and Vector4, -1 if using main property }; /**