X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-url.h;h=a772bd109456c445a67b8a4a53694fb184128530;hb=f4b327350bf7873847f8f08bb27d11361f60f759;hp=827dfce7989b3387270e6d54b2f5ea1e53016515;hpb=6ea2f17f49c9c694a24d951160a7389c844d7889;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 827dfce..a772bd1 100644 --- a/dali-toolkit/internal/visuals/visual-url.h +++ b/dali-toolkit/internal/visuals/visual-url.h @@ -38,8 +38,7 @@ public: SVG, GIF, WEBP, - JSON, - RIVE + JSON }; enum ProtocolType @@ -56,8 +55,16 @@ public: VisualUrl(); /** + * Default Destructor. + * Delete an external texture if if protocolType is TEXTURE. + */ + ~VisualUrl(); + + /** * Constructor. * Determines type of visual and whether the url is local or remote + * Notify that it is using an external texture if if protocolType is TEXTURE. + * * @param[in] url The URL to store and resolve */ VisualUrl(const std::string& url); @@ -115,6 +122,19 @@ public: */ static std::string CreateTextureUrl(const std::string& location); + /** + * Helper to get a ProtocolType from url + * @param url the url of the texture + * @return the protocol type + */ + static VisualUrl::ProtocolType GetProtocolType(const std::string& url); + + /** + * Helper to get a location from url + * @param url the location of the texture + * @return the location + */ + static std::string GetLocation(const std::string& url); private: std::string mUrl; Type mType;