X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fnpatch%2Fnpatch-visual.h;h=901211d23739048aed086ef71e1303478a4edd13;hb=6fa08daf440e496896babb230e404aae7e77a5bb;hp=22b60d500b34925cdcfdb5eb3a2c02474c2bf148;hpb=e2fbffea1d7c5d3df04b025247c1a77377a3f0c3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/npatch/npatch-visual.h b/dali-toolkit/internal/visuals/npatch/npatch-visual.h index 22b60d5..901211d 100644 --- a/dali-toolkit/internal/visuals/npatch/npatch-visual.h +++ b/dali-toolkit/internal/visuals/npatch/npatch-visual.h @@ -29,6 +29,7 @@ // INTERNAL INCLUDES #include +#include namespace Dali { @@ -50,7 +51,8 @@ typedef IntrusivePtr< NPatchVisual > NPatchVisualPtr; * | %Property Name | Type | * |--------------------------|------------------| * | url | STRING | - * | borderOnly | BOOLEAN + * | borderOnly | BOOLEAN | + * | border | RECTANGLE | * */ class NPatchVisual: public Visual::Base @@ -67,7 +69,7 @@ public: * @param[in] properties A Property::Map containing settings for this visual * @return A smart-pointer to the newly allocated visual. */ - static NPatchVisualPtr New( VisualFactoryCache& factoryCache, const std::string& imageUrl, const Property::Map& properties ); + static NPatchVisualPtr New( VisualFactoryCache& factoryCache, const VisualUrl& imageUrl, const Property::Map& properties ); /** * @brief Create an N-patch visual using an image URL. @@ -78,7 +80,7 @@ public: * @param[in] imageUrl The URL to 9 patch image resource to use * @return A smart-pointer to the newly allocated visual. */ - static NPatchVisualPtr New( VisualFactoryCache& factoryCache, const std::string& imageUrl ); + static NPatchVisualPtr New( VisualFactoryCache& factoryCache, const VisualUrl& imageUrl ); /** * @brief Create an N-patch visual with a NinePatchImage resource. @@ -201,10 +203,10 @@ private: private: NPatchLoader& mLoader; ///< reference to N patch loader for fast access - std::string mImageUrl; ///< The url to the N patch to load + VisualUrl mImageUrl; ///< The url to the N patch to load std::size_t mId; ///< id of the N patch (from loader/cache) bool mBorderOnly; ///< if only border is desired - + Rect< int > mBorder; ///< The size of the border }; } // namespace Internal