X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=base%2Fdali-toolkit%2Fpublic-api%2Fbuilder%2Fbuilder.h;fp=optional%2Fdali-toolkit%2Fpublic-api%2Fbuilder%2Fbuilder.h;h=723b6754fd30232e112a096421a0caab17e27bd2;hp=2d6709332c46b32bfeccd91c27e0524896b2c97c;hb=022b76df6f53c2860f2684ef1ffee81af1805e2e;hpb=00ef589046a32c53d20de1c61af7cc69524e51dc diff --git a/optional/dali-toolkit/public-api/builder/builder.h b/base/dali-toolkit/public-api/builder/builder.h similarity index 95% rename from optional/dali-toolkit/public-api/builder/builder.h rename to base/dali-toolkit/public-api/builder/builder.h index 2d67093..723b675 100644 --- a/optional/dali-toolkit/public-api/builder/builder.h +++ b/base/dali-toolkit/public-api/builder/builder.h @@ -140,7 +140,9 @@ typedef std::map PropertyValueMap; * @brief Adds or modifies a user defined constant to all future style template or animation expansions * * e.g. - * builder.AddConstant( "IMAGE_DIRECTORY", "/usr/share/images" ); + * @code + * builder.AddConstant( "IMAGE_DIRECTORY", "/usr/share/images" ); + * @endcode * * @pre The Builder has been initialized. * @param key The constant name to add or update @@ -152,9 +154,11 @@ typedef std::map PropertyValueMap; * @brief Gets all currently defined constants. * * e.g. - * PropertyValueMap map = builder.GetConstants(); // get copy of current constants - * map["IMAGE_DIRECTORY"] = "/usr/share/images"; // make modification - * builder.AddConstants( map ); // write back changes + * @code + * PropertyValueMap map = builder.GetConstants(); // get copy of current constants + * map["IMAGE_DIRECTORY"] = "/usr/share/images"; // make modification + * builder.AddConstants( map ); // write back changes + * @endcode * * @pre The Builder has been initialized. * @return A reference to the currently defined constants. @@ -165,9 +169,11 @@ typedef std::map PropertyValueMap; * @brief Gets a currently defined constant, or returns Property::INVALID * * e.g. - * PropertyValueMap map = builder.GetConstants(); // get copy of current constants - * map["IMAGE_DIRECTORY"] = "/usr/share/images"; // make modification - * builder.AddConstants( map ); // write back changes + * @code + * PropertyValueMap map = builder.GetConstants(); // get copy of current constants + * map["IMAGE_DIRECTORY"] = "/usr/share/images"; // make modification + * builder.AddConstants( map ); // write back changes + * @endcode * * @pre The Builder has been initialized. * @param key The constant name to search for. @@ -292,8 +298,10 @@ typedef std::map PropertyValueMap; * @pre Preconditions have been met for creating dali objects ie Images, Actors etc * @param styleName The name of the set of style properties to set on the handle object. * @param handle Then handle of the object on which to set the properties. + * + * @return Return true if the style was found */ - void ApplyStyle( const std::string& styleName, Handle& handle ); + bool ApplyStyle( const std::string& styleName, Handle& handle ); /** * Add the actor tree in the "stage" section to the actor toActor.