X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fnpatch-loader.h;h=d1df30287f5af8cb2ca8a491fd89623ae2a94acd;hb=fa0f04dfba6f98062c5bfdd59fb95865b98cffbf;hp=0d9a1c2b43dbce8a4aebc9a90222c628707757c9;hpb=84c98859f482a168f4cc5f4d84b3a08c39b8902c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/npatch-loader.h b/dali-toolkit/internal/visuals/npatch-loader.h index 0d9a1c2..d1df302 100644 --- a/dali-toolkit/internal/visuals/npatch-loader.h +++ b/dali-toolkit/internal/visuals/npatch-loader.h @@ -62,6 +62,7 @@ public: std::size_t hash; ///< Hash code for the Url uint32_t croppedWidth; ///< Width of the cropped middle part of N-patch uint32_t croppedHeight; ///< Height of the cropped middle part of N-patch + Rect< int > border; ///< The size of the border }; public: @@ -80,9 +81,10 @@ public: * @brief Retrieve a texture matching the n-patch url. * * @param [in] url to retrieve + * @param [in] border The border size of the image * @return id of the texture. */ - std::size_t Load( const std::string& url ); + std::size_t Load( const std::string& url, const Rect< int >& border ); /** * @brief Retrieve N patch data matching to an id