X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fbuilder%2Fstyle.h;h=441f568fb0045e30657d29e969f2e6488561bbd7;hb=078278a2ea58db1f07114513bf21783eb689f63a;hp=bd26a6dc33c9db856df86649fc2a7d172dfd799c;hpb=c67661e5069476a5ce720a31bb0b06e6c4be793e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/builder/style.h b/dali-toolkit/internal/builder/style.h index bd26a6d..441f568 100644 --- a/dali-toolkit/internal/builder/style.h +++ b/dali-toolkit/internal/builder/style.h @@ -55,16 +55,41 @@ public: * through sub-states. * * @param[in] handle The handle to apply the visuals to + * @param[in] instancedProperties The maps from which to get instanced properties */ - void ApplyVisualsAndPropertiesRecursively( Handle handle ) const; + void ApplyVisualsAndPropertiesRecursively( Handle handle, + const Dictionary& instancedProperties ) const; /** * Apply the visuals of the style to the control pointed at by * handle. * * @param[in] handle The handle to apply the visuals to + * @param[in] instancedProperties The maps from which to get instanced properties */ - void ApplyVisuals( Handle handle ) const; + void ApplyVisuals( Handle handle, + const Dictionary& instancedProperties ) const; + + /** + * Apply the properties from the visualMaps and the instancedProperties + * to the control pointed at by handle. + * + * @param[in] handle The handle to apply the properties to + * @param[in] visualMaps The visual maps from which to get the styled properties + * @param[in] instancedProperties The maps from which to get instanced properties + */ + static void ApplyVisuals( Handle handle, + const Dictionary& visualMaps, + const Dictionary& instancedProperties ); + + /** + * Apply the properties from the visualMap and optional instancedProperties + * to the control pointed at by handle. + */ + static void ApplyVisual( Handle handle, + const std::string& visualName, + const Property::Map& visualMap, + const Property::Map* instancedProperties ); /** * Apply the properties of the style to the control pointed at by