X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisual-factory%2Fvisual-factory.h;h=25c17ccf517920d5643e244cdbe50c6f2abd95ab;hp=636147ddd1604ac8d9c9ff12daaab1ecec70afe0;hb=8b9e1eb2a98b0cbfb30286e097fc03e9c5e6410d;hpb=11ed6421771d05113ae1a6510167d8c2557ac20e diff --git a/dali-toolkit/devel-api/visual-factory/visual-factory.h b/dali-toolkit/devel-api/visual-factory/visual-factory.h index 636147d..25c17cc 100644 --- a/dali-toolkit/devel-api/visual-factory/visual-factory.h +++ b/dali-toolkit/devel-api/visual-factory/visual-factory.h @@ -123,49 +123,6 @@ private: }; - -/** - * @brief Template to allow discard old visual, get new one and set it on stage if possible - * - * @tparam ParameterType0 The type of first argument passed to the CreateVisual() - * @tparam ParameterType1 The type of second argument passed to the CreateVisual() - * @SINCE_1_0.39 - * @param[in] actor Actor for which the visual will be replaced - * @param[in,out] visual The visual to be replaced - * @param[in] param0 First template based argument passed to the visual factory - * @param[in] param1 Second template based argument passed to the visual factory - */ -template< class ParameterType0, class ParameterType1 > -void InitializeVisual( Actor& actor, Visual::Base& visual, ParameterType0& param0, ParameterType1& param1 ) -{ - visual.RemoveAndReset( actor ); - visual = Toolkit::VisualFactory::Get().CreateVisual( param0, param1 ); - if( visual && actor && actor.OnStage() ) - { - visual.SetOnStage( actor ); - } -} - -/** - * @brief Template to allow discard old visual, get new one and set it on stage if possible - * - * @tparam ParameterType The type of argument passed to the CreateVisual() - * @SINCE_1_0.39 - * @param[in] actor Actor for which the visual will be replaced - * @param[in,out] visual The visual to be replaced - * @param[in] param Template based argument passed to the visual factory - */ -template< class ParameterType > -void InitializeVisual( Actor& actor, Visual::Base& visual, ParameterType& param ) -{ - visual.RemoveAndReset( actor ); - visual = Toolkit::VisualFactory::Get().CreateVisual( param ); - if( visual && actor && actor.OnStage() ) - { - visual.SetOnStage( actor ); - } -} - } // namespace Toolkit } // namespace Dali