X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fobject%2Ftype-registry.h;h=97fe8f03fb94a139a4dc983206684b36effe34c8;hb=b51494d57860c874def71664c637ac63a74389f4;hp=8c25a20a3d09de12eb46c5d8ffa84be990b9ff6a;hpb=078a5eebcf26d61076abde02f25b087c06419f67;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/object/type-registry.h b/dali/public-api/object/type-registry.h index 8c25a20..97fe8f0 100644 --- a/dali/public-api/object/type-registry.h +++ b/dali/public-api/object/type-registry.h @@ -2,7 +2,7 @@ #define __DALI_TYPE_REGISTRY_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2015 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. @@ -222,7 +222,7 @@ public: * @param [in] name The signal name * @param [in] func The signal connector function */ - SignalConnectorType( TypeRegistration& typeRegistration, const std::string& name, TypeInfo::SignalConnectorFunctionV2 func ); + SignalConnectorType( TypeRegistration& typeRegistration, const std::string& name, TypeInfo::SignalConnectorFunction func ); }; /** @@ -279,6 +279,30 @@ public: TypeInfo::SetPropertyFunction setFunc, TypeInfo::GetPropertyFunction getFunc ); }; +/** + * @brief Register an animatable property for the given type. + */ +class DALI_IMPORT_API AnimatablePropertyRegistration +{ +public: + + /** + * @brief This constructor registers the animatable property with the registered type. + * + * This constructor is for scene-graph only properties where the + * value of the property can be retrieved and set via specified + * functions. + * + * @param [in] registered The TypeRegistration object + * @param [in] name The name of the property + * @param [in] index The property index. Must be a value between ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX and ANIMATABLE_PROPERTY_REGISTRATION_MAX_INDEX inclusive. + * @param [in] type The property value type. + * + * @pre "registered" must be registered with the TypeRegistry. + */ + AnimatablePropertyRegistration( TypeRegistration& registered, const std::string& name, Property::Index index, Property::Type type ); +}; + } // namespace Dali #endif // header