pub struct Link { /* private fields */ }
Expand description
Clickable text, that looks like a hyperlink.
To link to a web page, use Hyperlink
, Ui::hyperlink
or Ui::hyperlink_to
.
See also Ui::link
.
// These are equivalent:
if ui.link("Documentation").clicked() {
// …
}
if ui.add(egui::Link::new("Documentation")).clicked() {
// …
}
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more