X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fnpatch%2Fnpatch-visual.h;h=b3d2815eaeda692f0410cd2996741ac3862fd008;hp=07918ee7621801b7f878e5d4105736d83ffe4e19;hb=25b212f44160ea19465962203f604cdbc6623871;hpb=f4c1e7f52d49c3ce033b9ee4c3c7414b06a22d45 diff --git a/dali-toolkit/internal/visuals/npatch/npatch-visual.h b/dali-toolkit/internal/visuals/npatch/npatch-visual.h index 07918ee..b3d2815 100644 --- a/dali-toolkit/internal/visuals/npatch/npatch-visual.h +++ b/dali-toolkit/internal/visuals/npatch/npatch-visual.h @@ -58,32 +58,22 @@ class NPatchVisual: public Visual::Base public: /** - * @brief Create a new n-patch visual. - * - * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object - * @return A smart-pointer to the newly allocated visual. - */ - static NPatchVisualPtr New( VisualFactoryCache& factoryCache ); - - /** * @brief Create an N-patch visual using an image URL. * * The visual will load the image synchronously when the associated actor is put on stage, and destroy the image when it is off stage * * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object * @param[in] imageUrl The URL to 9 patch image resource to use - * @param[in] borderOnly A Flag to indicate if the image should omit the centre of the n-patch and only render the border */ - static NPatchVisualPtr New( VisualFactoryCache& factoryCache, const std::string& imageUrl, bool borderOnly = false ); + static NPatchVisualPtr New( VisualFactoryCache& factoryCache, const std::string& imageUrl ); /** * @brief Create an N-patch visual with a NinePatchImage resource. * * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object * @param[in] image The NinePatchImage to use - * @param[in] borderOnly A Flag to indicate if the image should omit the centre of the n-patch and only render the border */ - static NPatchVisualPtr New( VisualFactoryCache& factoryCache, NinePatchImage image, bool borderOnly = false ); + static NPatchVisualPtr New( VisualFactoryCache& factoryCache, NinePatchImage image ); public: // from Visual @@ -112,10 +102,9 @@ protected: /** * @brief Constructor. * - * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object - * @param[in] borderOnly A Flag to indicate if the image should omit the centre of the n-patch and only render the border + * @param[in] factoryCache Reference to the VisualFactoryCache object */ - NPatchVisual( VisualFactoryCache& factoryCache, bool borderOnly = false ); + NPatchVisual( VisualFactoryCache& factoryCache ); /** * @brief A reference counted object may only be deleted by calling Unreference(). @@ -123,9 +112,9 @@ protected: virtual ~NPatchVisual(); /** - * @copydoc Visual::Base::DoInitialize + * @copydoc Visual::Base::DoSetProperties */ - virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap ); + virtual void DoSetProperties( const Property::Map& propertyMap ); /** * @copydoc Visual::Base::DoSetOnStage @@ -137,6 +126,11 @@ protected: */ virtual void DoSetOffStage( Actor& actor ); + /** + * @copydoc Visual::Base::OnSetTransform + */ + virtual void OnSetTransform(); + private: /**