X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fimage-atlas-manager.h;h=d2630c186730eaf136958502664b7218f92baefe;hp=3c2f52cddc908525cf1b58f913a2b14b986b7864;hb=48000ec3ab1ca2d1f8001d192112e32357bb1dfc;hpb=9ddd5fea6278d06b8874988498c7c4c6508750ba diff --git a/dali-toolkit/internal/visuals/image-atlas-manager.h b/dali-toolkit/internal/visuals/image-atlas-manager.h index 3c2f52c..d2630c1 100644 --- a/dali-toolkit/internal/visuals/image-atlas-manager.h +++ b/dali-toolkit/internal/visuals/image-atlas-manager.h @@ -25,6 +25,7 @@ // INTERNAL INCLUDES #include +#include namespace Dali { @@ -51,6 +52,15 @@ public: ImageAtlasManager(); /** + * @brief Check whether the image of url could be Atlas or not. + * + * @param [in] url The URL of the resource image file to use. + * @param [in] size The width and height to fit the loaded image to. + * @return True if the image could be Atlas. + */ + bool CheckAtlasAvailable(const VisualUrl& url, const ImageDimensions& size) const; + + /** * @brief Add an image to the atlas. * * @note To make the atlasing efficient, an valid size should be provided. @@ -67,7 +77,7 @@ public: * @return The texture set containing the image. */ TextureSet Add(Vector4& textureRect, - const std::string& url, + const VisualUrl& url, ImageDimensions& size, FittingMode::Type fittingMode = FittingMode::DEFAULT, bool orientationCorrection = true,