X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-url.h;h=8caf71691f8fc659c9b9790f6e95989194712860;hb=HEAD;hp=47aadd9527f837c4edba981f18cafef06419d381;hpb=b3bc00de03dc8de81a784051e22dc10083ebea64;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/visual-url.h b/dali-toolkit/internal/visuals/visual-url.h index 47aadd9..8caf716 100644 --- a/dali-toolkit/internal/visuals/visual-url.h +++ b/dali-toolkit/internal/visuals/visual-url.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_VISUAL_URL_H /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2024 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,10 @@ * limitations under the License. */ +// EXTERNAL INCLUDES +#include #include +#include namespace Dali { @@ -102,6 +105,12 @@ public: const std::string& GetUrl() const; /** + * Get the ellipsed URL. + * @return The ellipsed url + */ + std::string GetEllipsedUrl() const; + + /** * Get the hash value of full URL * @return The hash value of url */ @@ -141,6 +150,11 @@ public: std::string GetLocation() const; /** + * @return the location part of the url without extension + */ + std::string GetLocationWithoutExtension() const; + + /** * Helper to create a URL of type TEXTURE * @param location the location of the texture * @return the Url @@ -149,10 +163,11 @@ public: /** * Helper to create a URL of type BUFFER - * @param location the location of the texture + * @param[in] location the location of the texture + * @param[in] extension the extension of url * @return the Url */ - static std::string CreateBufferUrl(const std::string& location); + static std::string CreateBufferUrl(const std::string& location, const std::string_view& extension); /** * Helper to get a ProtocolType from url @@ -168,6 +183,13 @@ public: */ static std::string GetLocation(const std::string& url); + /** + * Helper to get a location from url without extension + * @param[in] url the location of the texture + * @return the location without extension + */ + static std::string GetLocationWithoutExtension(const std::string& url); + private: std::string mUrl; Type mType;