Is it possible to create text with a clickable link in the middle of it? #4030
Replies: 1 comment
-
The demo app uses this trick with a horizontal_wrapped layout and spacing set to 0. egui/crates/egui_demo_lib/src/demo/about.rs Lines 48 to 53 in d22ee81 The EasyMark viewer also does something similar: egui/crates/egui_demo_lib/src/easy_mark/easy_mark_viewer.rs Lines 17 to 25 in d22ee81 egui/crates/egui_demo_lib/src/easy_mark/easy_mark_viewer.rs Lines 51 to 61 in d22ee81 So I'm guessing this is the only way to do it right now. But it works pretty well at least, especially now that you can select text across widgets, so it's hard to even tell that there are multiple items. |
Beta Was this translation helpful? Give feedback.
-
Can I embed a link in the middle of a LayoutJob? If not, is there some way for my code to know which character corresponds to the coordinates being moused over so I can implement that myself?
Beta Was this translation helpful? Give feedback.
All reactions