ui_image_link

Function ui_image_link 

Source
pub fn ui_image_link(
    ui: &mut Ui,
    texture: &TextureHandle,
    url: &str,
    _size: Option<Vec2>,
)
Expand description

Shows a texture as a link (opens URL when clicked).

ยงExample

if let Some(texture) = load_texture_from_path(ctx, "assets/example.png") {
    ui_image_link(ui, &texture, "https://github.com/", None);
}