summaryrefslogtreecommitdiffstats
path: root/core/src/renderer
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-21 12:45:05 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-21 12:45:05 +0200
commit9bfaf2840cffe35d689bd115a308d21961ab082a (patch)
treec9a7b4fc04607c3315dabe3ad2527251b0a3dff8 /core/src/renderer
parent4b44079f34aa9e01977a7974e5f49ae79ff6cd90 (diff)
downloadiced-9bfaf2840cffe35d689bd115a308d21961ab082a.tar.gz
iced-9bfaf2840cffe35d689bd115a308d21961ab082a.tar.bz2
iced-9bfaf2840cffe35d689bd115a308d21961ab082a.zip
Add `Link` support to `rich_text` widget
Diffstat (limited to 'core/src/renderer')
-rw-r--r--core/src/renderer/null.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/src/renderer/null.rs b/core/src/renderer/null.rs
index f9d1a5b0..7aa3aafb 100644
--- a/core/src/renderer/null.rs
+++ b/core/src/renderer/null.rs
@@ -77,8 +77,8 @@ impl text::Paragraph for () {
fn with_text(_text: Text<&str>) -> Self {}
- fn with_spans(
- _text: Text<&[text::Span<'_, Self::Font>], Self::Font>,
+ fn with_spans<Link>(
+ _text: Text<&[text::Span<'_, Link, Self::Font>], Self::Font>,
) -> Self {
}
@@ -107,6 +107,10 @@ impl text::Paragraph for () {
fn hit_test(&self, _point: Point) -> Option<text::Hit> {
None
}
+
+ fn hit_span(&self, _point: Point) -> Option<usize> {
+ None
+ }
}
impl text::Editor for () {