aboutsummaryrefslogtreecommitdiff
path: root/include/Text.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-03 18:51:13 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-05 05:53:41 +0200
commita105630199bb4be80b3a8228a2c3e5b0c7347625 (patch)
treedbb50d356d6201085362250a2891c6ab22ae8e59 /include/Text.hpp
parent3ca7ed72c2f3a046e94213a8c26d80eafde9585c (diff)
Make url parsing better by using a list of valid tlds. Make urls blue in text
Diffstat (limited to 'include/Text.hpp')
-rw-r--r--include/Text.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Text.hpp b/include/Text.hpp
index 3981f13..c74607c 100644
--- a/include/Text.hpp
+++ b/include/Text.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include "NetUtils.hpp"
#include <SFML/Graphics/VertexArray.hpp>
#include <SFML/System/String.hpp>
#include <SFML/System/Clock.hpp>
@@ -160,5 +161,7 @@ namespace QuickMedia
sf::Vector2u renderTargetSize;
std::vector<VertexRef> vertices_linear; // TODO: Use textElements instead
+
+ std::vector<Range> url_ranges;
};
}