Static zng_wgt_scroll::cmd::ZOOM_TO_FIT_CMD

source ·
pub static ZOOM_TO_FIT_CMD: Command
Expand description

Represents the zoom to fit action.

The content is scaled to fit the viewport, the equivalent to ImageFit::Contain.

§Metadata

This command has the following default metadata:

metadatavalue
name "Zoom to Fit"
shortcut shortcut!(CTRL+'0')
shortcut_filter ShortcutFilter::FOCUSED | ShortcutFilter::CMD_ENABLED

Text metadata is localized.