X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Futility%2Fnpatch-utilities.h;h=c4f055c80b18a94f2500d77d7c2829f1ffe0de7d;hp=c85e6cdb6b50baea03f0e6ee77785f1eeae8851b;hb=1d82abb8a1a514ce0af63004706135fb7883f89b;hpb=a645dd0d6b1199282c3950b9787b813ff1c28631 diff --git a/dali-toolkit/devel-api/utility/npatch-utilities.h b/dali-toolkit/devel-api/utility/npatch-utilities.h index c85e6cd..c4f055c 100644 --- a/dali-toolkit/devel-api/utility/npatch-utilities.h +++ b/dali-toolkit/devel-api/utility/npatch-utilities.h @@ -19,26 +19,23 @@ */ // EXTERNAL INCLUDES +#include #include #include -#include // INTERNAL INCLUDES #include namespace Dali { - namespace Toolkit { - namespace NPatchUtility { - /** * The list that includes stretch pixel ranges */ -using StretchRanges = Dali::Vector< Uint16Pair >; +using StretchRanges = Dali::Vector; /** * @brief Get the offset of the red channel for the format. @@ -47,7 +44,7 @@ using StretchRanges = Dali::Vector< Uint16Pair >; * @param[out] byteOffset The byte offset of the red channel. * @param[out] bitMask The bit mask of the red channel. */ -DALI_TOOLKIT_API void GetRedOffsetAndMask( Dali::Pixel::Format pixelFormat, int& byteOffset, int& bitMask ); +DALI_TOOLKIT_API void GetRedOffsetAndMask(Dali::Pixel::Format pixelFormat, int& byteOffset, int& bitMask); /** * @brief Read the borders of the buffer and determine the child area and stretch borders. @@ -56,7 +53,7 @@ DALI_TOOLKIT_API void GetRedOffsetAndMask( Dali::Pixel::Format pixelFormat, int& * @param[out] stretchPixelsX The horizontal stretchable pixels in the cropped image space. * @param[out] stretchPixelsY The vertical stretchable pixels in the cropped image space. */ -DALI_TOOLKIT_API void ParseBorders( Devel::PixelBuffer& pixelBuffer, StretchRanges& stretchPixelsX, StretchRanges& stretchPixelsY ); +DALI_TOOLKIT_API void ParseBorders(Devel::PixelBuffer& pixelBuffer, StretchRanges& stretchPixelsX, StretchRanges& stretchPixelsY); /** * @brief Helper method to determine if the filename indicates that the image has a 9 patch or n patch border. @@ -64,7 +61,7 @@ DALI_TOOLKIT_API void ParseBorders( Devel::PixelBuffer& pixelBuffer, StretchRang * @param [in] url The URL of the image file. * @return true if it is a 9 patch or n patch image */ -DALI_TOOLKIT_API bool IsNinePatchUrl( const std::string& url ); +DALI_TOOLKIT_API bool IsNinePatchUrl(const std::string& url); } // namespace NPatchUtility