Skip to main content

register_hyperlink

Function register_hyperlink 

Source
pub fn register_hyperlink(x: f32, y: f32, w: f32, h: f32, url: &str) -> i32
Expand description

Register a rectangular region on the canvas as a clickable hyperlink.

When the user clicks inside the rectangle the browser navigates to url. Coordinates are in the same canvas-local space used by the drawing APIs. Returns 0 on success.