Add Link support to rich_text widget
This commit is contained in:
parent
4b44079f34
commit
9bfaf2840c
9 changed files with 287 additions and 71 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue