projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[dali_2.3.26] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
visuals
/
visual-url.h
diff --git
a/dali-toolkit/internal/visuals/visual-url.h
b/dali-toolkit/internal/visuals/visual-url.h
index
47aadd9
..
8caf716
100644
(file)
--- 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
/*
#define DALI_TOOLKIT_INTERNAL_VISUAL_URL_H
/*
- * Copyright (c) 202
2
Samsung Electronics Co., Ltd.
+ * Copyright (c) 202
4
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.
*
* 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.
*/
* limitations under the License.
*/
+// EXTERNAL INCLUDES
+#include <cstdint>
#include <string>
#include <string>
+#include <string_view>
namespace Dali
{
namespace Dali
{
@@
-102,6
+105,12
@@
public:
const std::string& GetUrl() const;
/**
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
*/
* Get the hash value of full URL
* @return The hash value of url
*/
@@
-141,6
+150,11
@@
public:
std::string GetLocation() const;
/**
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
* 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
/**
* 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
*/
* @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
/**
* Helper to get a ProtocolType from url
@@
-168,6
+183,13
@@
public:
*/
static std::string GetLocation(const std::string& url);
*/
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;
private:
std::string mUrl;
Type mType;