Skip to main content

ContentZoom

Trait ContentZoom 

pub trait ContentZoom {
    // Required method
    fn zoom_content(&mut self, step: ZoomStep) -> Option<f32>;
}
Expand description

A widget whose content zooms by itself: a web page (per site), a document page. The host offers it every zoom gesture before it zooms the window; it answers with the factor it now shows (for the indicator), or None to leave the gesture to the window.

Required Methods§

fn zoom_content(&mut self, step: ZoomStep) -> Option<f32>

Implementors§

§

impl ContentZoom for DocumentViewport

A canvas viewport is a widget whose content zooms by itself: the window’s Zoom in, Zoom out and Actual size reach the content, and the window bar says the factor, instead of the whole window’s text growing.